On 06.04.2018 20:41, Narcis Garcia wrote:
> I know the "-boot d" parameter for Qemu, but it only works when optical
> media is declared.
> If I boot a virtual machine with primary and secondary disk imatges
> (e.g. disk1.img and disk2.img in this order), how can I force Qemu
> (included BIOS) to boot from second disk?
> Example scenario: disk1.img is a formatted hard disk image, and
> disk2.img is an image (dd) from USB installer stick.

With certain firmware implementations, you can use the bootindex
property, e.g.:

 qemu-system-... -drive if=none,id=dr1,file=... \
    -device usb-storage,bootindex=1,drive=dr1,...


Reply via email to