qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot boot from emulated usb key if machine contains an emualted hard d


From: Paul Dufresne
Subject: Cannot boot from emulated usb key if machine contains an emualted hard disk
Date: Mon, 17 May 2021 16:10:49 -0400
User-agent: Zoho Mail

If I do:
qemu-system-i386 -m 64M -drive node-name=erika,file=FD13FULL.img,format=raw -usb -device usb-storage,drive=erika
I get:
qemu-system-i386: -device usb-storage,drive=erika: Conflicts with use by ide0-hd0 as 'root', which does not allow 'write' on erika

I am able to boot from my emulated usb key (as if it is an hard drive) by doing:
qemu-system-i386 -m 64M -blockdev node-name=erika,driver=file,filename=FD13FULL.img -usb -device usb-storage,drive=erika

If I do:
qemu-system-i386 -m 64M -blockdev node-name=erika,driver=file,filename=FD13FULL.img -usb -device usb-storage,drive=erika -drive file=hd.img,format=raw
boot failed, not a bootable disk... I think because it try to boot from hd.img, which is a freshly created disk image (so with no system yet).

I may try to change index:
qemu-system-i386 -m 64M -blockdev node-name=erika,driver=file,filename=FD13FULL.img -usb -device usb-storage,drive=erika -drive file=hd.img,format=raw,index=3
Same error: boot failed, not a bootable disk

I would like to have -boot u  (for usb) but it does not seems to exist.

[paul@fedora myfreedos]$ qemu-system-i386 --version
QEMU emulator version 5.2.0 (qemu-5.2.0-5.fc34.1)

A suggestion to what to do?

I do not think this is relevant, but FD13FULL.img come from:
https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.3/previews/1.3-rc4/FD13-FullUSB.zip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]