[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.] ** Changed in: libvirt (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
Hi, seeing this due to the move of upstream qemu->qemu(ubuntu). This is a libvirt issue, not qemu so marking this as that. Xenial was already better in this regard which also seems to match the report in comment #33. Furthermore I fixed quite some usb passthrough issues (4 I think) on the way from xenial to Bionic. Also I didn't hear about is anymore for years other than in the post-xenial context that I was driving with a few bug reporters since then. I'll mark the bug invalid, but if anyone really is still affected I would ask you to (also) test with Bionic (18.04) if possible. ** Changed in: qemu (Ubuntu) Status: New => Invalid ** Changed in: libvirt (Ubuntu) Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
** Project changed: qemu => qemu (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qemu (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264600 Mar 29 21:21:57 ivan-desktop kernel: [168754.666080] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264648 Mar 29 21:21:57 ivan-desktop kernel: [168754.666086] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264690 Mar 29 21:21:57 ivan-desktop kernel: [168754.666090] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a2646d8 Mar 29 21:21:57 ivan-desktop kernel: [168754.666095] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264720 Mar 29 21:21:57 ivan-desktop kernel: [168754.666099] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264768 libvirt-bin 1.2.8-0ubuntu11.4 qemu 2.1+dfsg-4ubuntu6.4 Ubuntu 14.103.19.2-031902-generic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264600 Mar 29 22:54:42 ivan-desktop kernel: [174324.769470] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264648 Mar 29 22:54:42 ivan-desktop kernel: [174324.769479] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264690 Mar 29 22:54:42 ivan-desktop kernel: [174324.769489] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a2646d8 Mar 29 22:54:42 ivan-desktop kernel: [174324.769497] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264720 Mar 29 22:54:42 ivan-desktop kernel: [174324.769506] xhci_hcd :00:10.0: xHCI xhci_drop_endpoint called with disabled ep 88010a264768 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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1392504] Re: libvirt not relabeling devices on USB Passthrough
...actually are you talking kernel or the full 15.04 pre-release? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1392504 Title: libvirt not relabeling devices on USB Passthrough To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1392504/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs