[Top][All Lists]

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

Re: Unable to boot Fedora LiveCD from USB pendrive with qemu-system

From: Thomas Huth
Subject: Re: Unable to boot Fedora LiveCD from USB pendrive with qemu-system
Date: Mon, 8 Nov 2021 17:23:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

On 07/11/2021 16.30, Marcin Zajączkowski wrote:
Hi. Having some (dracut-related) issues with a Fedora LiveCD installed
on a pendrive, I wanted to play with it using qemu instead of a real
computer. Unfortunately, while the pendrive boot fine in real, with
qemu, I ended up with "Booting from Hard Drive..." displayed and 2
vCores working on 100% for several minutes (until I interrupted it).
Most likely, it is a problem with the way I try to achieve that:

sudo qemu-system-x86_64 -enable-kvm -m 4196 -drive 
file=/dev/sdb,format=raw,index=0,media=disk -boot menu=on

or more "dangerous" variant:
sudo qemu-system-x86_64 -enable-kvm -m 4196 -hda /dev/sdb -boot menu=on

IIRC that will attach the disk as an IDE drive to your guest. And I guess the initrd of your guest does not contain the right kernel modules for this interface.

What could be wrong with that approach? What is the best way to boot a
VM using a bootable disk connected as a USB device (here recognized as

Not sure, but you could try to attach it as (emulated) USB device to your guest, too, by using something like:

 -drive if=none,id=d1,file=... -device usb-storage,drive=d1


reply via email to

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