can't boot a VM automatically

lordcroci

New Member
Feb 6, 2018
7
0
1
32
Hi there,
I have a VM with xpenology 6.0 installed, I managed to copy from usb into /var/lib/vz/images/100/ the synoboot.img

then I edited the 100.conf file, with nano /etc/pve/qemu-server/100.conf adding:

args: -device 'piix3-usb-uhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/100/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'

and specifying the boot number before with:
boot synoboot
then trying with:
boot: 4

with synoboot, nothing to do.. The VM Does not boot automatically, but i have to press esc and select number 4
with number 4 specified, the VM stuck on Booting from hard disk.... but does not do anything!

I spent literally 4 hours looking for a solution.. but on the web there is nothing.
Can anyone be so kind to help me please?
Thanks a lot!

Lordcroci
 
args: -device 'piix3-usb-uhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/100/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'
add the 'bootindex=99' to your drive config, so qemu knows to boot from this device first.

Code:
qm showcmd <vmid>
Check how the qemu command line would look like.