Received: from eggs.gnu.org ([140.186.70.92]:39867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <8SScqsnYX8tr@dyweni.com>) id 1RoDWu-0003Q4-C2 for qemu-devel@nongnu.org; Fri, 20 Jan 2012 07:25:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <8SScqsnYX8tr@dyweni.com>) id 1RoDWt-0004iF-7W for qemu-devel@nongnu.org; Fri, 20 Jan 2012 07:25:16 -0500 Received: from pl1.haspere.com ([208.111.35.220]:58648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <8SScqsnYX8tr@dyweni.com>) id 1RoDWs-0004hj-V3 for qemu-devel@nongnu.org; Fri, 20 Jan 2012 07:25:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 20 Jan 2012 06:25:12 -0600 From: Dyweni - Qemu-Devel <8SScqsnYX8tr@dyweni.com> In-Reply-To: <20120120015711.GD16304@morn.localdomain> References: <51092a88452ccdae81de9fa5e5aa3b55@pl1.haspere.com> <20120120015711.GD16304@morn.localdomain> Message-ID: Subject: Re: [Qemu-devel] [SeaBIOS] Error booting from USB Storage Device in QEMU-KVM GIT MASTER Reply-To: 8SScqsnYX8tr@dyweni.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor , seabios@seabios.org, Qemu Devel , Gerd Hoffmann 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