[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] How to boot from D (not cdrom)?
From: |
Thomas Huth |
Subject: |
Re: [Qemu-discuss] How to boot from D (not cdrom)? |
Date: |
Mon, 9 Apr 2018 10:00:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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,...
HTH,
Thomas