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 \ $*
Here's the debugging output from SeaBIOS. (Notice the 'Unable to configure USB MSC device.' message):
+ qemu-system-x86_64 -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=00:AA:00:AA:62:AA,vlan=0 -net tap,vlan=0,ifname=tap0,script=no -net nic,macaddr=00:AA:00:D2:D1:BB,vlan=1 -net tap,vlan=1,ifname=tap1,script=no -chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios qemu-kvm: boot=on|off is deprecated and will be ignored. Future versions will reject this parameter. Please update your scripts. Start bios (version 1.6.3) Ram Size=0x20000000 (0x0000000000000000 high) Relocating init from 0x000e3b20 to 0x1ffe12e0 (size 60412) CPU Mhz=3601 === PCI bus & bridge init === PCI: pci_bios_init_bus_rec bus = 0x0 === PCI device probing === Found 8 PCI devices (max PCI bus is 00) === PCI new allocation pass #1 === PCI: check devices bus 0 === PCI new allocation pass #2 === PCI: init bases bus 0 (primary) type io max 100 sum 230 base c000 size 100: 2 bar(s), c000 -> c1ff size 20: 1 bar(s), c200 -> c21f size 10: 1 bar(s), c220 -> c22f type mem max 10000 sum 33000 base febc0000 size 10000: 3 bar(s), febc0000 -> febeffff size 1000: 3 bar(s), febf0000 -> febf2fff type prefmem max 2000000 sum 2000000 base fc000000 size 2000000: 1 bar(s), fc000000 -> fdffffff PCI: map device bus 0, bfd 0x0 PCI: map device bus 0, bfd 0x8 PCI: map device bus 0, bfd 0x9 bar 4, addr c220, size 10 [io] PCI: map device bus 0, bfd 0xb PCI: map device bus 0, bfd 0x10 bar 0, addr fc000000, size 2000000 [mem] bar 1, addr febf0000, size 1000 [mem] bar 6, addr febc0000, size 10000 [mem] PCI: map device bus 0, bfd 0x18 bar 0, addr c000, size 100 [io] bar 1, addr febf1000, size 100 [mem] bar 6, addr febd0000, size 10000 [mem] PCI: map device bus 0, bfd 0x20 bar 0, addr c100, size 100 [io] bar 1, addr febf2000, size 100 [mem] bar 6, addr febe0000, size 10000 [mem] PCI: map device bus 0, bfd 0x28 bar 4, addr c200, size 20 [io] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 PCI: bus=0 devfn=0x10: vendor_id=0x1013 device_id=0x00b8 PCI: bus=0 devfn=0x18: vendor_id=0x10ec device_id=0x8139 PCI: bus=0 devfn=0x20: vendor_id=0x10ec device_id=0x8139 PCI: bus=0 devfn=0x28: vendor_id=0x8086 device_id=0x7020 PIIX3/PIIX4 init: elcr=00 0c
Found 1 cpu(s) max supported 1 cpu(s) MP table addr=0x000fd620 MPC table addr=0x000fd630 size=240 SMBIOS ptr=0x000fd600 table=0x000fd4f0 size=263 ACPI tables: RSDP=0x000fd4c0 RSDT=0x1fffd7b0 Scan for VGA option rom Running option rom at c000:0003 Turning on vga text mode console SeaBIOS (version 1.6.3)
UHCI init on dev 00:05.0 (io=c200) Found 1 lpt ports Found 1 serial ports ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9) ATA controller 2 at 170/374/0 (irq 15 dev 9) DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0 ebda moved from 9fc00 to 9f800 USB MSC vendor='QEMU' product='QEMU HARDDISK' rev='1.0.' type=0 removable=0 Unable to configure USB MSC device. PS2 keyboard initialized All threads complete. Scan for option roms Running option rom at c900:0003 pmm call arg1=1 pmm call arg1=0 pmm call arg1=1 pmm call arg1=0 Running option rom at ca00:0003 pmm call arg1=1 pmm call arg1=1 Searching bootorder for: /pci@i0cf8/*@3 Searching bootorder for: /pci@i0cf8/*@4 Searching bootorder for: /rom@genroms/vapic.bin Running option rom at cb00:0003 ebda moved from 9f800 to 9f000 Returned 53248 bytes of ZoneHigh e820 map has 7 items: 0: 0000000000000000 - 000000000009f000 = 1 RAM 1: 000000000009f000 - 00000000000a0000 = 2 RESERVED 2: 00000000000f0000 - 0000000000100000 = 2 RESERVED 3: 0000000000100000 - 000000001fffd000 = 1 RAM 4: 000000001fffd000 - 0000000020000000 = 2 RESERVED 5: 00000000feffc000 - 00000000ff000000 = 2 RESERVED 6: 00000000fffc0000 - 0000000100000000 = 2 RESERVED enter handle_19: NULL Booting from DVD/CD... Device reports MEDIUM NOT PRESENT atapi_is_ready returned -1 Boot failed: Could not read from CDROM (code 0003) enter handle_18:
NULL Booting from ROM... Booting from c900:0372 enter handle_18: NULL Booting from ROM... Booting from ca00:0372 In resume (status=0) In 32bit resume Attempting a hard reboot