FS#36779 - [qemu] fails to start with usb host device attached

Attached to Project: Arch Linux
Opened by Carlos Silva (r3pek) - Monday, 02 September 2013, 21:40 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 16 September 2013, 12:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I'm using libvirt to start the guest os but when it start it only shows the seabios and then the VM crashes.
It doesn't happen with all usb devices. I this case it's a Logitech usb wireless receiver from G700S.
According to this debian bug [1], this patch [2] should fix the issue, but it looks like it doesn't since it was applied in 1.5.1 of qemu.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718016
[2] http://git.qemu.org/?p=qemu.git;a=commitdiff;h=628e54857a82a3cb65ef96c12640c30d6307a064


Additional info:
* package version(s)
# pacman -Q qemu libvirt
qemu 1.5.2-1
libvirt 1.1.1-2


* config and/or log files etc.
2013-09-02 21:34:44.867+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/sbin/qemu-system-x86_64 -name Windows -S -machine pc-i440fx-1.5,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 2d982db5-baa3-ab44-c897-0ab40411ba03 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Windows.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/home/r3pek/VMs Storage/Windows.img,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e0:2f:46,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device usb-host,hostbus=4,hostaddr=69,id=hostdev0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/0 (label charserial0)
qemu-system-x86_64: hw/usb/core.c:413: usb_handle_packet: Assertion `p->ep->type != 3 || (dev->flags & (1 << USB_DEV_FLAG_IS_HOST))' failed.
2013-09-02 21:34:47.658+0000: shutting down
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 16 September 2013, 12:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.6.0
Comment by Tobias Powalowski (tpowa) - Monday, 09 September 2013, 06:32 GMT
Please try qemu 1.6 from testing.
Comment by Carlos Silva (r3pek) - Monday, 16 September 2013, 11:39 GMT
It works fine with qemu 1.6. Any info on when it will be moved out from [testing]?
Comment by Tobias Powalowski (tpowa) - Monday, 16 September 2013, 12:10 GMT
When it works with ovmf again.

Loading...