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!