On 08.05.2017 06:22, Carl Karsten wrote: > neat. missed that. > > except it doesn't work. > > juser@gator:~/temp$ qemu-system-x86_64 -drive > file=boot.img,format=raw,bootindex=1 > qemu-system-x86_64: -drive file=boot.img,format=raw,bootindex=1: Block > format 'raw' does not support the option 'bootindex'
bootindex is a property of the "-device" parameter, not of "-drive", so you've got to specify both parameters here (with "if=none" for -drive). See bootindex.txt for details. Thomas > On Sun, May 7, 2017 at 9:02 PM, Thomas Huth <h...@tuxfamily.org> wrote: > >> On 07.05.2017 07:42, Carl Karsten wrote: >>> In the real world I will have a machine with a sata hd and boot the >>> installer from a usb stick. I want to test this with 2 disk image files. >>> >>> The usb stick will be built like so: >>> https://github.com/CarlFK/video-stack-deploy/blob/ >> usbstick/scripts/mk_usb_installer.sh >>> >>> but this will demo the problem I have run into with qemu: how do I boot >>> from boot.img without using boot=menu? >> >> Have you already tried to use the bootindex property? See: >> >> http://git.qemu.org/?p=qemu.git;a=blob;f=docs/bootindex.txt >> >> Thomas >> >> > >