[SeaBIOS] [Qemu-devel] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

Dyweni - Qemu-Devel 8SScqsnYX8tr at dyweni.com
Fri Jan 20 13:25:12 CET 2012


 Hi All,

 I have good and bad news...

 I tested QEMU-KVM using branches 'master'
 (9501d0f1b6efc83f69d06b27a625bad71d30d58b) and 'uq/master'
 (6a48ffaaa732b2142c1b5030178f2d4a0fa499fe). Seabios used was the 
 version
 included in those branches (no -L switch). Both branches failed to 
 detect
 the USB Flash Drive (error message: 'Unable to configure USB MSC 
 device.').

 I checked out SeaBios branch 'master'
 (b3df857fe6d3fffb108379637ea4a456ce6e09ba) and passed that to QEMU-KVM
 using the -L switch. Both branches don't fail as bad. Both versions 
 detect
 the USB Flash Drive (message: 'USB MSC blksize=512 sectors=204800') and
 then indicate they are booting from hard disk.

 In order to see the console, I had to copy the following files into the
 directory specified by the -L switch in order to see the screen:
 - vgabios-cirrus.bin
 - pxe-rtl8139.rom
 - vapic.bin

 I also noticed one new regression: booting runs REALLY REALLY slow. The
 upgrade from 0.14 w/ USB to git master w/ IDE slowed down a little bit.
 But this is magnitudes slower.  While I'm waiting, I see one of my 
 cores
 at 100% usage.

 ---
 Thanks,
 Dyweni

 On Thu, 19 Jan 2012 20:57:11 -0500, Kevin O'Connor wrote:

> On Thu, Jan 19, 2012 at 06:57:59AM -0600, Dyweni - Qemu-Devel wrote:
>> Hi, I am unable to boot KVM using a usb flash drive. I'm using 
>> QEMU-KVM
>> built from GIT MASTER as of this morning. Here's my QEMU-KVM startup
>> options: qemu-system-x86_64 -curses -m 512 -snapshot -device
>> piix3-usb-uhci -drive
>> id=usbflash,file=flash.img,if=none,boot=on,cache=writeback -device
>> usb-storage,drive=usbflash -net nic,macaddr=$(getmacpublic),vlan=0 
>> -net
>> tap,vlan=0,ifname=$publictap,script=no -net
>> nic,macaddr=$(getmacprivate),vlan=1 -net
>> tap,vlan=1,ifname=$privatetap,script=no $*
> I tried a modifed version of the above, and it worked fine for me.
> qemu-system-x86_64 -snapshot -L test -device piix3-usb-uhci -drive
> id=usbflash,file=dos-drivec-new,if=none,cache=writeback -device
> usb-storage,drive=usbflash -chardev stdio,id=seabios -device
> isa-debugcon,iobase=0x402,chardev=seabios What version of qemu are 
> you
> using? There are a few known quirks in the seabios code that were 
> fixed
> recently, but I did not think they impacted the qemu emulation. 
> -Kevin



More information about the SeaBIOS mailing list