[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-03-26 Thread Serge Hallyn
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)

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-03-24 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-03-21 Thread Kelvin Middleton
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:

Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-02-24 Thread Serge Hallyn
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.

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-02-24 Thread Serge Hallyn
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-02-09 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-02-09 Thread Serge Hallyn
@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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2015-02-01 Thread zebul666
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-12-10 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-12-10 Thread Serge Hallyn
** 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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-29 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-29 Thread Joe Hickey
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-28 Thread Joe Hickey
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-23 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-22 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-22 Thread Joe Hickey
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-21 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-20 Thread Serge Hallyn
@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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-17 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-14 Thread Leen Keus
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

Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-14 Thread Gonglei
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-14 Thread Leen Keus
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

[Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-14 Thread Paolo Bonzini
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

Re: [Qemu-devel] [Bug 1392504] Re: USB Passthrough is not working anymore

2014-11-14 Thread Gonglei
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