All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore
@ 2014-11-13 22:12 Leen Keus
  2014-11-14  3:42 ` Gonglei
                   ` (32 more replies)
  0 siblings, 33 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-13 22:12 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
any more. Already tried to remove and attach the USB devices. I use 1
USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
virual FNAS machine and a USB 2camera to virtual Win7 machine. All these
devices are not working any more.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
@ 2014-11-14  3:42 ` Gonglei
  2014-11-14  8:47 ` [Qemu-devel] [Bug 1392504] " Leen Keus
                   ` (31 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Gonglei @ 2014-11-14  3:42 UTC (permalink / raw)
  To: Bug 1392504; +Cc: Leen Keus, qemu-devel

On 2014/11/14 6:12, Leen Keus wrote:

> Public bug reported:
> 
> After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
> QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
> any more. Already tried to remove and attach the USB devices. I use 1
> USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
> virual FNAS machine and a USB 2camera to virtual Win7 machine. All these
> devices are not working any more.
> 

What's your meaning "are not working any more", any details?

Regards,
-Gonglei

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
  2014-11-14  3:42 ` Gonglei
@ 2014-11-14  8:47 ` Leen Keus
  2014-11-14  9:03   ` Gonglei
  2014-11-14 11:57 ` Leen Keus
                   ` (30 subsequent siblings)
  32 siblings, 1 reply; 37+ messages in thread
From: Leen Keus @ 2014-11-14  8:47 UTC (permalink / raw)
  To: qemu-devel

Under Ubuntu 14.04 the USB devices where attached to the virtual
machines. After upgrading to Ubuntu 14.10 the USB devices are not
visible in the virtual machines anymore. Same issue appeard after
upgrading from Ubuntu 13.04 to 13.10, but I can not find that bug report
anymore.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-14  8:47 ` [Qemu-devel] [Bug 1392504] " Leen Keus
@ 2014-11-14  9:03   ` Gonglei
  0 siblings, 0 replies; 37+ messages in thread
From: Gonglei @ 2014-11-14  9:03 UTC (permalink / raw)
  To: Bug 1392504; +Cc: Leen Keus, qemu-devel

On 2014/11/14 16:47, Leen Keus wrote:

> Under Ubuntu 14.04 the USB devices where attached to the virtual
> machines. After upgrading to Ubuntu 14.10 the USB devices are not
> visible in the virtual machines anymore. Same issue appeard after
> upgrading from Ubuntu 13.04 to 13.10, but I can not find that bug report
> anymore.
> 

Please show your command line booting VM.
Or you can get the latest Qemu master code to reproduce your
problem. Maybe it is a resolved issue. :)

Best regards,
-Gonglei

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
  2014-11-14  3:42 ` Gonglei
  2014-11-14  8:47 ` [Qemu-devel] [Bug 1392504] " Leen Keus
@ 2014-11-14 11:57 ` Leen Keus
  2014-11-15  6:33   ` Gonglei
  2014-11-14 15:50 ` Iggy
                   ` (29 subsequent siblings)
  32 siblings, 1 reply; 37+ messages in thread
From: Leen Keus @ 2014-11-14 11:57 UTC (permalink / raw)
  To: qemu-devel

Command lines generated by virsh from the libvirt xml files (let me know if you also need the xml configuration files):
 
qemu-system-x86_64 -enable-kvm -name fsg -S -machine pc-1.2,accel=kvm,usb=off -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 30619811-d285-944a-026a-cdd4a753b77a -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/fsg.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device nec-usb-xhci,id=usb,bus=pci.0,addr=0x5 -drive file=/vm2/fsgorg/disk-sda2.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/vm2/fsgorg/disk-sdb.qcow2,if=none,id=drive-virtio-disk1,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk1,id=virtio-disk1 -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,bootindex=2 -netdev tap,fd=23,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:76:fd:b6,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 0.0.0.0:1 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-host,hostbus=1,hostaddr=4,id=hostdev0 -device usb-host,hostbus=4,hostaddr=2,id=hostdev1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -msg timestamp=on


qemu-system-x86_64 -enable-kvm -name fnas -S -machine pc-
i440fx-1.4,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp
2,sockets=2,cores=1,threads=1 -uuid 7c2703e5-b8b8-acd9-df8b-6284382fb58b
-no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/fnas.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-
shutdown -boot menu=off,strict=on -device ich9-usb-
ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-
uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6
-device ich9-usb-
uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9
-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -drive
file=/vm2/FreeNAS/fnas.qcow2,if=none,id=drive-ide0-0-0,format=qcow2
-device ide-hd,bus=ide.0,unit=0,drive=drive-
ide0-0-0,id=ide0-0-0,bootindex=1 -drive
file=/vm2/FreeNAS/fnas2.qcow2,if=none,id=drive-ide0-0-1,format=qcow2
-device ide-hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-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=23,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:d8:31:b5,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device isa-
serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:5 -device cirrus-
vga,id=video0,bus=pci.0,addr=0x2 -device intel-
hda,id=sound0,bus=pci.0,addr=0x4 -device hda-
duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-
host,hostbus=2,hostaddr=3,id=hostdev0 -device virtio-balloon-
pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on


qemu-system-x86_64 -enable-kvm -name win7 -S -machine pc-1.2,accel=kvm,usb=off -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 717d41d2-cfc9-5d70-e2f5-817c2ed1a90a -nouser-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -drive file=/vm/Windows7/win7.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/vm/Windows7/joespb.iso,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=23,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:3c:7b:7f,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 0.0.0.0:2 -device VGA,id=video0,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-host,hostbus=1,hostaddr=3,id=hostdev0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -usb -msg timestamp=on

Regards,
Leen

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (2 preceding siblings ...)
  2014-11-14 11:57 ` Leen Keus
@ 2014-11-14 15:50 ` Iggy
  2014-11-14 16:16 ` Paolo Bonzini
                   ` (28 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Iggy @ 2014-11-14 15:50 UTC (permalink / raw)
  To: qemu-devel

At first glance I see "-machine pc-1.2,accel=kvm,usb=off" and then
"-device nec-usb-xhci,id=usb,bus=pci.0,addr=0x5"... I'm not sure if
those should be used together.

Can you look in your libvirt logs from before the upgrade to see if it
was using the usb=off option before?

@kraxel-redhat do you know if that's a legitimate set of options?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (3 preceding siblings ...)
  2014-11-14 15:50 ` Iggy
@ 2014-11-14 16:16 ` Paolo Bonzini
  2014-11-17  8:59 ` Leen Keus
                   ` (27 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Paolo Bonzini @ 2014-11-14 16:16 UTC (permalink / raw)
  To: qemu-devel

Yes, it is valid. libvirt is disabling the automagic UHCI controller,
which makes sense since he is using XHCI.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-14 11:57 ` Leen Keus
@ 2014-11-15  6:33   ` Gonglei
  0 siblings, 0 replies; 37+ messages in thread
From: Gonglei @ 2014-11-15  6:33 UTC (permalink / raw)
  To: Bug 1392504; +Cc: Leen Keus, qemu-devel

On 2014/11/14 19:57, Leen Keus wrote:

> Command lines generated by virsh from the libvirt xml files (let me know if you also need the xml configuration files):
>  
Does this below patch fix your problem?

http://git.qemu.org/?p=qemu.git;a=commitdiff;h=79ae25af1569a50a0ec799901a1bb280c088f121

Regards,
-Gonglei

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (4 preceding siblings ...)
  2014-11-14 16:16 ` Paolo Bonzini
@ 2014-11-17  8:59 ` Leen Keus
  2014-11-21  4:38 ` Serge Hallyn
                   ` (26 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-17  8:59 UTC (permalink / raw)
  To: qemu-devel

I greatly appriciate your help to find a solution for this issue, but I have used apt-get to installed QEMU already since version 12.10. I never used the QEMU source code for something. Is it possible that you provide an updated executable or library?
Regards,
Leen

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (5 preceding siblings ...)
  2014-11-17  8:59 ` Leen Keus
@ 2014-11-21  4:38 ` Serge Hallyn
  2014-11-21 20:59 ` Leen Keus
                   ` (25 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2014-11-21  4:38 UTC (permalink / raw)
  To: qemu-devel

@Leen,

I am pushing qemu 2.1+dfsg-4ubuntu6.3~ppa1 (which includes the fix
proposed by Gonglei in comment #7) to ppa:serge-hallyn/libvirt-testing.
Please let us know whether it does in fact solve your issue.

** Also affects: qemu (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (6 preceding siblings ...)
  2014-11-21  4:38 ` Serge Hallyn
@ 2014-11-21 20:59 ` Leen Keus
  2014-11-22 14:06 ` Leen Keus
                   ` (24 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-21 20:59 UTC (permalink / raw)
  To: qemu-devel

Hi Serge, just tested your solution but unfortunately with no success. I
also removed a vm and created it again, also with no luck. Sorry ...

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (7 preceding siblings ...)
  2014-11-21 20:59 ` Leen Keus
@ 2014-11-22 14:06 ` Leen Keus
  2014-11-22 14:23 ` Joe Hickey
                   ` (23 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-22 14:06 UTC (permalink / raw)
  To: qemu-devel

Same issue appeard after upgrading from Ubuntu 13.04 to 13.10; bug:
1245251 (Apparmor blocks usb devices in libvirt in Saucy). Could it be
related to this issue? Maybe a new or other line in
/etc/apparmor.d/abstractions/libvirt-qemu?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (8 preceding siblings ...)
  2014-11-22 14:06 ` Leen Keus
@ 2014-11-22 14:23 ` Joe Hickey
  2014-11-23 20:40 ` Leen Keus
                   ` (22 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Joe Hickey @ 2014-11-22 14:23 UTC (permalink / raw)
  To: qemu-devel

I just wanted to add another data point -- I migrated my old WinXP VM
from my 14.04 install to my new 14.10 install and found out that the USB
passthrough is not working -- Same libvirt XML definition file.   Tried
removing and re-adding with no luck.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (9 preceding siblings ...)
  2014-11-22 14:23 ` Joe Hickey
@ 2014-11-23 20:40 ` Leen Keus
  2014-11-29  2:49 ` Joe Hickey
                   ` (21 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-23 20:40 UTC (permalink / raw)
  To: qemu-devel

I think it is related to Apparmor, I see the following lines in
/etc/syslog:

Nov 22 14:36:23 uvir kernel: [18882.602278] audit: type=1400 audit(1416663383.171:69): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/uevent" pid=14279 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 22 14:36:23 uvir kernel: [18882.602295] audit: type=1400 audit(1416663383.171:70): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/3-0:1.0/uevent" pid=14279 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 22 14:36:23 uvir kernel: [18882.602306] audit: type=1400 audit(1416663383.171:71): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/uevent" pid=14279 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 22 14:36:23 uvir kernel: [18882.602318] audit: type=1400 audit(1416663383.171:72): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/4-0:1.0/uevent" pid=14279 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 22 14:36:23 uvir kernel: [18882.602330] audit: type=1400 audit(1416663383.171:73): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/4-2/uevent" pid=14279 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 00:28:39 uvir kernel: [35109.848778] audit: type=1400 audit(1416698919.255:181): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/uevent" pid=25427 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 00:28:39 uvir kernel: [35109.848799] audit: type=1400 audit(1416698919.255:182): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/3-0:1.0/uevent" pid=25427 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 00:28:39 uvir kernel: [35109.848815] audit: type=1400 audit(1416698919.255:183): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/uevent" pid=25427 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 00:28:39 uvir kernel: [35109.848831] audit: type=1400 audit(1416698919.255:184): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/4-0:1.0/uevent" pid=25427 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 00:28:39 uvir kernel: [35109.848847] audit: type=1400 audit(1416698919.255:185): apparmor="DENIED" operation="open" profile="libvirt-30619811-d285-944a-026a-cdd4a753b77a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/4-2/uevent" pid=25427 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 09:07:11 uvir kernel: [   33.270565] audit: type=1400 audit(1416730031.240:59): apparmor="DENIED" operation="open" profile="libvirt-717d41d2-cfc9-5d70-e2f5-817c2ed1a90a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/uevent" pid=3599 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 09:07:11 uvir kernel: [   33.270588] audit: type=1400 audit(1416730031.240:60): apparmor="DENIED" operation="open" profile="libvirt-717d41d2-cfc9-5d70-e2f5-817c2ed1a90a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb3/3-0:1.0/uevent" pid=3599 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 09:07:11 uvir kernel: [   33.270606] audit: type=1400 audit(1416730031.240:61): apparmor="DENIED" operation="open" profile="libvirt-717d41d2-cfc9-5d70-e2f5-817c2ed1a90a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/uevent" pid=3599 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0
Nov 23 09:07:11 uvir kernel: [   33.270625] audit: type=1400 audit(1416730031.240:62): apparmor="DENIED" operation="open" profile="libvirt-717d41d2-cfc9-5d70-e2f5-817c2ed1a90a" name="/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/usb4/4-0:1.0/uevent" pid=3599 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=106 ouid=0

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (10 preceding siblings ...)
  2014-11-23 20:40 ` Leen Keus
@ 2014-11-29  2:49 ` Joe Hickey
  2014-11-29 15:42 ` Leen Keus
                   ` (20 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Joe Hickey @ 2014-11-29  2:49 UTC (permalink / raw)
  To: qemu-devel

I just noticed that after I applied the latest updates (apt-get dist-
ugrade) to my Ubuntu 14.04 system that USB redirection is now failing on
THIS system as well - just like the 14.10 system failed.

FWIW, I do not see any apparomor denial messages in /var/log/syslog or
anywhere else.  So far I've not found anything to indicate why
passthrough failed, seems like a silent failure whatever it is.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (11 preceding siblings ...)
  2014-11-29  2:49 ` Joe Hickey
@ 2014-11-29 15:42 ` Leen Keus
  2014-11-29 17:38 ` Joe Hickey
                   ` (19 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-11-29 15:42 UTC (permalink / raw)
  To: qemu-devel

I don't know if it is relevant, but in the error message of apparmor is
says: comm="qemu-system-x86"; while libvirt starts qemu-system-x86_64.
Anybody searching for a solution? I am not able to make backups since
the upgrade to 14.10...

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (12 preceding siblings ...)
  2014-11-29 15:42 ` Leen Keus
@ 2014-11-29 17:38 ` Joe Hickey
  2014-12-10  9:51 ` Leen Keus
                   ` (18 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Joe Hickey @ 2014-11-29 17:38 UTC (permalink / raw)
  To: qemu-devel

Please disregard my previous comment about being broken in 14.04 -- In
fact I was running 14.10 and didn't realize it (a reboot and 14.10 being
the grub default).  In fact the passthrough still works in 14.04 just
fine, and still fully broken in 14.10.

I did confirm, however, that there are NO apparmor messages regarding
qemu on my 14.10 system.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (13 preceding siblings ...)
  2014-11-29 17:38 ` Joe Hickey
@ 2014-12-10  9:51 ` Leen Keus
  2014-12-10 16:26 ` Serge Hallyn
                   ` (17 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2014-12-10  9:51 UTC (permalink / raw)
  To: qemu-devel

Found the following lines in /var/log/libvirt/qemu/<machine>.log
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/001/004: Permission denied
libusbx: error [_get_usbfs_fd] libusbx requires write access to USB device nodes.
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/001/004: Permission denied
libusbx: error [_get_usbfs_fd] libusbx requires write access to USB device nodes.
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/001/004: Permission denied
libusbx: error [_get_usbfs_fd] libusbx requires write access to USB device nodes.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (14 preceding siblings ...)
  2014-12-10  9:51 ` Leen Keus
@ 2014-12-10 16:26 ` Serge Hallyn
  2015-02-01 21:15 ` zebul666
                   ` (16 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2014-12-10 16:26 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu (Ubuntu)
       Status: Incomplete => Confirmed

** Changed in: qemu (Ubuntu)
   Importance: Undecided => High

** Changed in: qemu (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (15 preceding siblings ...)
  2014-12-10 16:26 ` Serge Hallyn
@ 2015-02-01 21:15 ` zebul666
  2015-02-09 18:27 ` Serge Hallyn
                   ` (15 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: zebul666 @ 2015-02-01 21:15 UTC (permalink / raw)
  To: qemu-devel

I just installed libvirt 1.2.8 on ubuntu utopic and usb passthrough does not work on a linux vm
I got the libusbx error in the livert VM log

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (16 preceding siblings ...)
  2015-02-01 21:15 ` zebul666
@ 2015-02-09 18:27 ` Serge Hallyn
  2015-02-09 19:52 ` Leen Keus
                   ` (14 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2015-02-09 18:27 UTC (permalink / raw)
  To: qemu-devel

@lj-keus

if you turn off apparmor

sudo /etc/init.d/apparmor stop
sudo /etc/init.d/apparmor teardown

does that fix the issue for you?

(Please re-enable apparmor immediately after the test using

sudo /etc/init.d/apparmor start
sudo stop libvirt-bin
sudo start libvirt-bin
)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (17 preceding siblings ...)
  2015-02-09 18:27 ` Serge Hallyn
@ 2015-02-09 19:52 ` Leen Keus
  2015-02-25  6:07 ` Serge Hallyn
                   ` (13 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2015-02-09 19:52 UTC (permalink / raw)
  To: qemu-devel

Hi Serge,

Following error message appears after I teared down apparmor and when I
tried to start the vm:

$sudo virsh start <vm>
error: Failed to start domain <vm>
error: error from service: ListActivatableNames: Failed to query AppArmor policy: No such file or directory

Can anybody provide me a list of settings, for the OS, apparmor,
libvirt, qemu, etc., etc. that can I check for this issue?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (18 preceding siblings ...)
  2015-02-09 19:52 ` Leen Keus
@ 2015-02-25  6:07 ` Serge Hallyn
  2015-02-25  6:30   ` Serge Hallyn
  2015-03-21 10:18 ` Kelvin Middleton
                   ` (12 subsequent siblings)
  32 siblings, 1 reply; 37+ messages in thread
From: Serge Hallyn @ 2015-02-25  6:07 UTC (permalink / raw)
  To: qemu-devel

I haven't seen an error like that, and cannot reproduce it here.

Another way to test that apparmor is causing the problem would be to add

 /dev/** rw,

at the bottom of the file /etc/apparmor.d/abstractions/libvirt-qemu.
When you next start the vm apparmor should allow it full access to all
devices.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2015-02-25  6:07 ` Serge Hallyn
@ 2015-02-25  6:30   ` Serge Hallyn
  0 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2015-02-25  6:30 UTC (permalink / raw)
  To: qemu-devel

You also should be able to do

 aa-audit /usr/sbin/libvirtd

which should put informative messages into /var/log/syslog or
/var/log/audit/audit.log as well.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (19 preceding siblings ...)
  2015-02-25  6:07 ` Serge Hallyn
@ 2015-03-21 10:18 ` Kelvin Middleton
  2015-03-24 21:36 ` Leen Keus
                   ` (11 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Kelvin Middleton @ 2015-03-21 10:18 UTC (permalink / raw)
  To: qemu-devel

I don't run apparmor.

Ubuntu 14.10 host

Have this same issue with USB Host Attachment on Windows and Linux guests.
USB Redirection using SPICE is unaffected and works as expected.

Libvirt logs show...
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/003/006: Permission denied
libusbx: error [_get_usbfs_fd] libusbx requires write access to USB device nodes.

'chown libvirt-qemu:kvm /dev/bus/usb/003/006' solves the problem and USB
Host Attachment now works again.

Host dmesg shows...
usb 3-13: reset high-speed USB device number 9 using xhci_hcd
[ 3346.483029] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8807ba9beb40
...USB device needs to be physically detached and re-attached for host to see again.

Tested this with a Sandisk Cruzer Blade 16GB and a Logitech HD C525.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (20 preceding siblings ...)
  2015-03-21 10:18 ` Kelvin Middleton
@ 2015-03-24 21:36 ` Leen Keus
  2015-03-27  3:24 ` Serge Hallyn
                   ` (10 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2015-03-24 21:36 UTC (permalink / raw)
  To: qemu-devel

Hi Kevin, finally somebody that found a solution. Great, thank you very
much! It is working now.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  USB Passthrough is not working anymore

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (21 preceding siblings ...)
  2015-03-24 21:36 ` Leen Keus
@ 2015-03-27  3:24 ` Serge Hallyn
  2015-03-27 13:18 ` [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough Kelvin Middleton
                   ` (9 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2015-03-27  3:24 UTC (permalink / raw)
  To: qemu-devel

Has anyone tested whether this is still broken in 15.04?

** Also affects: libvirt (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: libvirt (Ubuntu)

** Also affects: libvirt (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: libvirt (Ubuntu)
   Importance: Undecided => Medium

** Changed in: libvirt (Ubuntu)
       Status: New => Triaged

** No longer affects: qemu (Ubuntu)

** Summary changed:

- USB Passthrough is not working anymore
+ libvirt not relabeling devices on USB Passthrough

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (22 preceding siblings ...)
  2015-03-27  3:24 ` Serge Hallyn
@ 2015-03-27 13:18 ` Kelvin Middleton
  2015-03-27 13:21 ` Kelvin Middleton
                   ` (8 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Kelvin Middleton @ 2015-03-27 13:18 UTC (permalink / raw)
  To: qemu-devel

I'm running an ACS patched linux mainline 3.18 as well as Ubuntu 14.10
stock.  Haven't tested the Ubuntu 15.04 stock but will grab the debs and
confirm.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (23 preceding siblings ...)
  2015-03-27 13:18 ` [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough Kelvin Middleton
@ 2015-03-27 13:21 ` Kelvin Middleton
  2015-03-29  2:32 ` Serge Hallyn
                   ` (7 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Kelvin Middleton @ 2015-03-27 13:21 UTC (permalink / raw)
  To: qemu-devel

...actually are you talking kernel or the full 15.04 pre-release?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (24 preceding siblings ...)
  2015-03-27 13:21 ` Kelvin Middleton
@ 2015-03-29  2:32 ` Serge Hallyn
  2015-03-29 20:29 ` nickmaelao
                   ` (6 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Serge Hallyn @ 2015-03-29  2:32 UTC (permalink / raw)
  To: qemu-devel

Actually I was talking about just libvirt.  cmment #23 (and 24) suggests
that the problem is libvirt not re-labeling the devices, so i'm
wondering whether 1.2.12 fixes it.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (25 preceding siblings ...)
  2015-03-29  2:32 ` Serge Hallyn
@ 2015-03-29 20:29 ` nickmaelao
  2015-03-29 20:45 ` Kelvin Middleton
                   ` (5 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: nickmaelao @ 2015-03-29 20:29 UTC (permalink / raw)
  To: qemu-devel

I have done the suggested in comment 23 , but the problem persist, after
i lunch the guest, i receive the following erros, and lsusb in the guest
doesnt show the attached usb device:

Host:

 ll  /dev/bus/usb/001/
crw-rw-r--  1 libvirt-qemu kvm  189, 9 Mar 29 21:21 010

lsusb: 
Bus 001 Device 010: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n

syslog

Mar 29 21:21:57 ivan-desktop kernel: [168754.517390] usb 1-1: reset high-speed USB device number 10 using xhci_hcd
Mar 29 21:21:57 ivan-desktop kernel: [168754.666064] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264600
Mar 29 21:21:57 ivan-desktop kernel: [168754.666080] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264648
Mar 29 21:21:57 ivan-desktop kernel: [168754.666086] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264690
Mar 29 21:21:57 ivan-desktop kernel: [168754.666090] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a2646d8
Mar 29 21:21:57 ivan-desktop kernel: [168754.666095] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264720
Mar 29 21:21:57 ivan-desktop kernel: [168754.666099] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264768


libvirt-bin                                           1.2.8-0ubuntu11.4 
qemu                                                  2.1+dfsg-4ubuntu6.4 
Ubuntu 14.10    3.19.2-031902-generic

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (26 preceding siblings ...)
  2015-03-29 20:29 ` nickmaelao
@ 2015-03-29 20:45 ` Kelvin Middleton
  2015-03-29 22:02 ` nickmaelao
                   ` (4 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Kelvin Middleton @ 2015-03-29 20:45 UTC (permalink / raw)
  To: qemu-devel

Hey nickmaelao, your outputs show you've only changed the ownership of
the USB bus and not the USB device itself...I'd suspect if you looked at
'ls -la /dev/bus/usb/001/' then the actual USB device will still have
root ownership.  Ergo if libvirtd is still creating the vm's with qemu
and a non-root user you will still have the problem.

chmod libvirt-qemu:kvm /dev/bus/usb/001/xxx (xxx being the USB device
numeber) should resolve.

Alternatively you could change /etc/libvirtd/qemu.conf and make libvirtd
create guests with qemu as the root user, look for the 'user = ' and
'group = ' lines.  I can't comment on the risk associated to this so
you'll need to look into that yourself but I've taken this approach and
have no problems with USB attachment and I don't need to manually change
device ownerships.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (27 preceding siblings ...)
  2015-03-29 20:45 ` Kelvin Middleton
@ 2015-03-29 22:02 ` nickmaelao
  2015-03-29 22:37 ` Kelvin Middleton
                   ` (3 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: nickmaelao @ 2015-03-29 22:02 UTC (permalink / raw)
  To: qemu-devel

Sorry, i posted the wrong output, i had modified the ownership of usb
the device /dev/bus/usb/001/010 to libvirt-qemu:kvm, but the problem
persists.

I configured libvirt to run as root, but the problem is the same, in
syslog im still receiving

Mar 29 22:54:42 ivan-desktop kernel: [174324.769452] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264600
Mar 29 22:54:42 ivan-desktop kernel: [174324.769470] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264648
Mar 29 22:54:42 ivan-desktop kernel: [174324.769479] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264690
Mar 29 22:54:42 ivan-desktop kernel: [174324.769489] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a2646d8
Mar 29 22:54:42 ivan-desktop kernel: [174324.769497] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264720
Mar 29 22:54:42 ivan-desktop kernel: [174324.769506] xhci_hcd 0000:00:10.0: xHCI xhci_drop_endpoint called with disabled ep ffff88010a264768
Mar 29 22:54:42 ivan-desktop kernel: [174324.981362] usb 1-1: reset high-speed USB device number 10 using xhci_hcd

Heres the portion of the qemu xml of the guest:

<hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x0cf3'/>
        <product id='0x9271'/>
        <address bus='1' device='10'/>
      </source>
      <alias name='hostdev0'/>
 </hostdev>

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (28 preceding siblings ...)
  2015-03-29 22:02 ` nickmaelao
@ 2015-03-29 22:37 ` Kelvin Middleton
  2015-06-23  7:37 ` Leen Keus
                   ` (2 subsequent siblings)
  32 siblings, 0 replies; 37+ messages in thread
From: Kelvin Middleton @ 2015-03-29 22:37 UTC (permalink / raw)
  To: qemu-devel

The syslog output looks like its from the Host not the guest?

What does the libvirtd log say for the guest...typically at
/var/log/libvirt/qemu/XXX (XXX being the name of the guest).

There are 2 separate issues/related in this thread, first being USB
attachment to guests not working which is believed ownership related
hence my *workaround* in post #23. The second is about how the USB
device is re-atrached to the Host once the guest has been
destroyed...this is what the syslog/dmesg outputs are about and why
Serge has renamed the bug report.

Your posts say you are having problem with both which seems odd and not
possible?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (29 preceding siblings ...)
  2015-03-29 22:37 ` Kelvin Middleton
@ 2015-06-23  7:37 ` Leen Keus
  2015-06-30 10:32 ` jim
  2018-02-13 13:12 ` Thomas Huth
  32 siblings, 0 replies; 37+ messages in thread
From: Leen Keus @ 2015-06-23  7:37 UTC (permalink / raw)
  To: qemu-devel

Hi all, recently upgraded to 15.04 and the issue is solved in this
version.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (30 preceding siblings ...)
  2015-06-23  7:37 ` Leen Keus
@ 2015-06-30 10:32 ` jim
  2018-02-13 13:12 ` Thomas Huth
  32 siblings, 0 replies; 37+ messages in thread
From: jim @ 2015-06-30 10:32 UTC (permalink / raw)
  To: qemu-devel

Hi, same problem on my machine ... Comment #23 does not work for me. In
my VM log I found this line:

libusb_set_configuration: -6 [BUSY]

I'm running 14.04 (fresh install), QEMU 2.0.0. Any suggestions?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in QEMU:
  New
Status in libvirt package in Ubuntu:
  Triaged

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

* [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
  2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
                   ` (31 preceding siblings ...)
  2015-06-30 10:32 ` jim
@ 2018-02-13 13:12 ` Thomas Huth
  32 siblings, 0 replies; 37+ messages in thread
From: Thomas Huth @ 2018-02-13 13:12 UTC (permalink / raw)
  To: qemu-devel

** Project changed: qemu => qemu (Ubuntu)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1392504

Title:
  libvirt not relabeling devices on USB Passthrough

Status in libvirt package in Ubuntu:
  Triaged
Status in qemu package in Ubuntu:
  New

Bug description:
  After upgrading from Ubuntu 14.04 to Ubuntu 14.10 USB passthrough in
  QEMU (version is now 2.1.0 - Debian2.1+dfsg-4ubuntu6.1) is not working
  any more. Already tried to remove and attach the USB devices. I use 1
  USB2 HDD  +  1 USB3 HDD to a virtual linux machine; 1 USB2 HDD to a
  virual FNAS machine and a USB 2camera to virtual Win7 machine. All
  these devices are not working any more.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1392504/+subscriptions

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2018-02-13 13:24 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 22:12 [Qemu-devel] [Bug 1392504] [NEW] USB Passthrough is not working anymore Leen Keus
2014-11-14  3:42 ` Gonglei
2014-11-14  8:47 ` [Qemu-devel] [Bug 1392504] " Leen Keus
2014-11-14  9:03   ` Gonglei
2014-11-14 11:57 ` Leen Keus
2014-11-15  6:33   ` Gonglei
2014-11-14 15:50 ` Iggy
2014-11-14 16:16 ` Paolo Bonzini
2014-11-17  8:59 ` Leen Keus
2014-11-21  4:38 ` Serge Hallyn
2014-11-21 20:59 ` Leen Keus
2014-11-22 14:06 ` Leen Keus
2014-11-22 14:23 ` Joe Hickey
2014-11-23 20:40 ` Leen Keus
2014-11-29  2:49 ` Joe Hickey
2014-11-29 15:42 ` Leen Keus
2014-11-29 17:38 ` Joe Hickey
2014-12-10  9:51 ` Leen Keus
2014-12-10 16:26 ` Serge Hallyn
2015-02-01 21:15 ` zebul666
2015-02-09 18:27 ` Serge Hallyn
2015-02-09 19:52 ` Leen Keus
2015-02-25  6:07 ` Serge Hallyn
2015-02-25  6:30   ` Serge Hallyn
2015-03-21 10:18 ` Kelvin Middleton
2015-03-24 21:36 ` Leen Keus
2015-03-27  3:24 ` Serge Hallyn
2015-03-27 13:18 ` [Qemu-devel] [Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough Kelvin Middleton
2015-03-27 13:21 ` Kelvin Middleton
2015-03-29  2:32 ` Serge Hallyn
2015-03-29 20:29 ` nickmaelao
2015-03-29 20:45 ` Kelvin Middleton
2015-03-29 22:02 ` nickmaelao
2015-03-29 22:37 ` Kelvin Middleton
2015-06-23  7:37 ` Leen Keus
2015-06-30 10:32 ` jim
2018-02-13 13:12 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.