Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-07-06 Thread Royston Carter
Serge, Thanks again for your assistance with this. I will leave cgroup un-mounted for now as I do not believe I lose anything by doing so. After all this effort I suspect the lack of qemu USB2 support will be a show stopper anyway Best regards Roy Sent from my iPad On 6 Jul 2011, at 00:08,

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-22 Thread Royston Carter
Serge, Any more thoughts on this one, it causes me some significant issues so I would really like to get to the bottom of it if possible. Regards Roy Sent from my iPad On 17 Jun 2011, at 22:22, Serge Hallyn 787...@bugs.launchpad.net wrote: Since KVM is running as root and the device is

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-22 Thread Serge Hallyn
Do you have a system on which you could test either with natty or with lucid with backported packages (which I would create)? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/787091

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-22 Thread Royston Carter
Serge, Unfortunately I have only one vm capable host which is my main machine, firewall, PBS, family desktop etc. It is an AMD Phenom II, the only other kit I have is not 64bit and has no virtualisation capabilities. I am reluctant therefore to risk this unless there in no other way forward.

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-22 Thread Royston Carter
Serge, I would add that the system runs on software raid with LVM2 and it would seem that simply taking a full backup and restoring after trying alternative Kernel. is also non-trivial. Roy On 22/06/2011 14:02, Serge Hallyn wrote: Do you have a system on which you could test either with

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-19 Thread Royston Carter
Serge, Done but no difference. Apparmor_status reports: apparmor module is loaded. apparmor file system not loaded Still get not permitted error. Did this with android phone in debug mode to avoid any cups related issue. Regards Roy Sent from my iPad On 17 Jun 2011, at 22:22, Serge Hallyn

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-17 Thread Royston Carter
Serge, I will give it a go and get back to you Regards Roy Sent from my iPad On 17 Jun 2011, at 22:22, Serge Hallyn 787...@bugs.launchpad.net wrote: Since KVM is running as root and the device is owned by root (and ACL gives 'user:rw' perms), I don't think the ACLs are to blame. Could

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-08 Thread Royston Carter
Serge, I nite this device has extended attributes (ACL), any relevance? ls -l /dev/bus/usb/001/004 crw-rw-r--+ 1 root root 189, 3 2011-06-07 11:31 /dev/bus/usb/001/004 getfacl /dev/bus/usb/001/004 # file: dev/bus/usb/001/004 # owner: root # group: root user::rw- user:rpcarter:rw- group::rw-

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Serge, Done as requested but no change. I no longer get my host reporting that it has seen a new printer but the KVM guest still does not see the device. The log file is still showing operation not permitted on a regular basis. Any other thoughts? Regards Roy Sent from my iPad On 1 Jun

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Serge Hallyn
Quoting Royston Carter (787...@bugs.launchpad.net): Serge, Done as requested but no change. I no longer get my host reporting that it has seen a new printer but the KVM guest still does not see the device. The log file is still showing operation not permitted on a regular basis. Any other

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Serge, I already have rapper in place to give me multi-core capability so I will edit this to add the strace as requested. Regards Roy Sent from my iPad On 7 Jun 2011, at 15:57, Serge Hallyn 787...@bugs.launchpad.net wrote: Quoting Royston Carter (787...@bugs.launchpad.net): Serge, Done

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Serge, Done and I will attach the trace. We appear to get the following extract at regular intervals. By the way I had to update apparmor to allow execution of strace and writing to /tmp. Regards Roy 8865 munmap(0x7eff052c7000, 4096) = 0 8865 write(1, husb: open device 1.4\n, 22) =

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Serge, My wrap is similar to the one you had suggested. I use virt-manager which lacks some capability in particular i wanted to pass multiple core to guests. The wrap makes no odds though as I have the same result when I do nots use it. Regards Roy Sent from my iPad On 7 Jun 2011, at

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Jamie, Attached to call as requested. Is there not a way to put apparmor into a complain mode rather than enforce to rule this out once and for all? Regards Roy Sent from my iPad On 7 Jun 2011, at 21:24, Jamie Strandboge ja...@ubuntu.com wrote: Roysten, Can you provide the output of the

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-06-07 Thread Royston Carter
Serge, I do not see anything different i'm afraid. Regards Roy Sent from my iPad On 7 Jun 2011, at 21:30, Serge Hallyn 787...@bugs.launchpad.net wrote: Please also disable kernel print rate limiting (just to be sure) by doing sysctl -w kernel.printk_ratelimit=0 -- You received this

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-27 Thread Royston Carter
Serge, I will rerun tests and send results this morning. Regards Roy Roy Carter - Sent from mobile phone - - Reply message - From: Serge Hallyn 787...@bugs.launchpad.net Date: Fri, May 27, 2011 04:37 Subject: [Bug 787091] Re: Unable to use USB device in KVM quest To: rpcar

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-27 Thread Royston Carter
Serge, No good I'm afraid. I am still getting repeated /dev/bus/usb/001/002: Operation not permitted in the VM log file. Is it perhaps possible that something else (e.g. the linux printing system) already has exclusive access to these devices? Regards Roy On 27/05/2011 14:43, Serge

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-27 Thread Serge Hallyn
Quoting Royston Carter (787...@bugs.launchpad.net): Serge, No good I'm afraid. I am still getting repeated /dev/bus/usb/001/002: Operation not permitted in the VM log file. Is it perhaps possible that something else (e.g. the linux printing system) already has exclusive access

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-27 Thread Royston Carter
Serge, I get the following, not sure if this is useful. lsof /dev/bus/usb/001/002 lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/rpcarter/.gvfs Output information may be incomplete. Regards Roy On 27/05/2011 15:59, Serge Hallyn wrote: Quoting Royston Carter

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-27 Thread Serge Hallyn
Quoting Royston Carter (787...@bugs.launchpad.net): Serge, I get the following, not sure if this is useful. lsof /dev/bus/usb/001/002 lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/rpcarter/.gvfs Output information may be incomplete. That's odd. Can

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-26 Thread Royston Carter
Serge, Have added attachments as requested Regards Roy Roy Carter - Sent from mobile phone - - Reply message - From: Serge Hallyn 787...@bugs.launchpad.net Date: Thu, May 26, 2011 01:10 Subject: [Bug 787091] Re: Unable to use USB device in KVM quest To: rpcar...@blueyonder.co.uk

Re: [Bug 787091] Re: Unable to use USB device in KVM quest

2011-05-26 Thread Royston Carter
Serge, I believe I have now added the additional items requested. The ID of the device and the connected point is now different, let me know if this confuses things. Regards Roy On 26/05/2011 16:53, Serge Hallyn wrote: Finally (and perhaps most usefully) please do: strace -f -ooutout2