How to set the boot order to boot from an image added as USB drive on Proxmox VE 6.3-3?

prolab

New Member
Aug 11, 2020
21
2
3
I'm following this tutorial (https://xpenology.com/forum/topic/7387-tutorial-dsm-6x-on-proxmox/) to set up Xpenology DSM on Proxmox VE 6.3-3.

Basically it's adding an image as USB drive to a VM, and booting from this USB drive. However in the last step things have changed on newer Proxmox VE like 6.3-3.
I followed their tutorials and discussions and added the "synoboot-usb.img" to the VM's conf (/etc/pve/qemu-server/131.conf). Now my conf looks like this:

Code:
args: -device 'qemu-xhci,addr=0x18' -drive 'id=synoboot,file=/zfstest5/enc/dir/files/synoboot-usb.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'
boot: order=net0;sata2
cores: 4
memory: 4096
name: DSM11
net0: e1000=00:11:32:B0:C8:30,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata2: zfstest5-enc-vol:vm-131-disk-0,size=200G
scsihw: virtio-scsi-pci
smbios1: uuid=4e4d1255-6d57-4018-8537-4e0dbda595f4
sockets: 1
vmgenid: 33d47b36-40b8-4ce8-baad-f6cdbbba7c5f

In that post which should be an earlier version of Proxmox VE, the last step is to edit the boot line as boot: synoboot to let it boot from the "synoboot-usb.img" image. However, in this new version, that doesn't work. I tried to tweak the boot: order=net0;sata2 line as followings:

Code:
boot: order=synoboot;net0;sata2
boot: order=usb0;net0;sata2

But these still doesn't work. I have looked at the wiki (https://pve.proxmox.com/wiki/Manual:_qm.conf) but it does not say what can be put after the "order=". So how to set the boot order to boot from the image on Proxmox VE 6.3-3?
 
I doubt boot: synoboot was ever intended to work, that probably did more out of sheer luck than anything.

Regardless, you got the syntax right for your new-style order= entry, but it's invalid since it can only refer to devices specified in our config format. You have neither a 'synoboot' nor a 'usb0' device, only a custom 'args' entry, which is not parsed.

You should be able to tell QEMU directly to boot the device though, try adding 'bootindex=5' to the end of the -device part of the command, i.e. -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=5'
 
I doubt boot: synoboot was ever intended to work, that probably did more out of sheer luck than anything.

Regardless, you got the syntax right for your new-style order= entry, but it's invalid since it can only refer to devices specified in our config format. You have neither a 'synoboot' nor a 'usb0' device, only a custom 'args' entry, which is not parsed.

You should be able to tell QEMU directly to boot the device though, try adding 'bootindex=5' to the end of the -device part of the command, i.e. -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=5'
This method seems to no longer work with proxmox ve 6.4-13, is there a new method?

EDIT: after many tries it does seem to be working now, i did delete the "boot" line, perhaps that was it?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!