Jump to content
XPEnology Community

RobbieT

Rookie
  • Posts

    5
  • Joined

  • Last visited

Posts posted by RobbieT

  1. On 4/8/2021 at 4:59 PM, ontljoshi said:

    Hi, thanks for the reply.

     

    I tried to create the folder but there was a permission issue. so i  created a folder using shell commands. but i am facing another issue.. i can't copy .img file from my pc to the .../101/

    so  What I did :
    1. allow ssh in the DSM web page configuration
    2. Putty's login with an admin account (access dsm 6.2.xxxx using ssh)
    3. sudo -i + pwd to become root
    4. change the root pwd : synouer --setpwd root (+choosen password)
    5. edit (vi or any) /etc/ssh/sshd_config and make sure there is a line "PermitRootLogin yes" and it's not commented
    6. REBOOT
    7. connect the DSM with an SCP tool using SCP protocol and the root + password you've just enabled before

     

    but no luck,  infact in sftp logon what i could see root folder structure no longer visible and can only see /homes and /home folders in sftp connection.

     

    so i am stuck here that i can't connect over SFTP using root account and missing root file structure. any thoughts?

    Well you should'nt be in dsm since this file (synoboot.img) has to be copied inside the proxmox storage. (the drive you have installed proxmox). 

    You can use the ip of proxmox with username root and your password.

  2. On 4/2/2021 at 10:12 PM, ontljoshi said:

    Hi

     

    i have the same problem. so looking for answers.

     

    You should set the bootloader as a usb drive and update your pid and vid. After that you can succesfully update.

    To do this; detach the 50m drive within proxmox.

    Then ssh to your proxmox setup and place the synoboot.img file in the following folder:

    /var/lib/vz/images/107/synoboot.img

     

    Replace 107 with the id of your xpenology install.

     

    When that is done adjust your vm conf file within:

    /etc/pve/qemu-server/<VMID>.conf

    VMID is the ID of your vm.

     

    On the top of the file add: 

    args: -device 'nec-usb-xhci,id=usb-bus0,multifunction=on' -drive 'file=/var/lib/vz/images/107/synoboot.img,media=disk,format=raw,if=none,id=drive-disk-bootloader' -device 'usb-storage,bus=usb-bus0.0,port=1,drive=drive-disk-bootloader,id=usb-disk-bootloader,bootindex=999,removable=on'

    Replace 107 with the ID of your xpenology install in Proxmox.

     

    Reboot the xpenology VM and start a ssh session to your xpenology and follow the steps below:

     

    - Start a root session with: sudo -i and reenter the password

     

    Find vendor ID;

     

    # Find vendor id and product id of bootloader usb disk
     lsusb
    |__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:1a.7) hub
    [ ... ]
    |__usb9          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (xhci_hcd 0000:00:01.0) hub
    |__usb10         1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (xhci_hcd 0000:00:01.0) hub
    |__10-1        46f4:0001:0000 00  3.00 5000MBit/s 0mA 1IF  (QEMU QEMU USB HARDDRIVE 1-0000:00:01.0-1)
     
     
    # Vendor id (46f4) and product id (0001) is found
    # Set these in grub.cfg
    # In order to not be automaticaly mount in dsm 
     sed -i \
    -e "s/\(set vid=\)\(.*\)/\10x46f4/g" \
    -e "s/\(set pid=\)\(.*\)/\10x0001/g" \
    /volumeUSB1/usbshare1-1/grub/grub.cfg
     
     
    # (Optional) Set different serial number or mac
     mySN="1330LWN023501"
     myMAC1="DE0C1A817DE8"
     sed -i \
    -e "s/\(set sn=\)\(.*\)/\1${mySN}/g" \
    -e "s/\(set mac1=\)\(.*\)/\1${myMAC1}/g" \
    /volumeUSB1/usbshare1-1/grub/grub.cfg

     

    Reboot the xpenology and update!

    • Like 1
    • Thanks 1
×
×
  • Create New...