[libvirt-users] LXC + USB passthrough = Operation not permitted

Daniel P. Berrange berrange at redhat.com
Tue Apr 15 08:30:48 UTC 2014


On Mon, Apr 14, 2014 at 10:56:42AM -0700, Filip Maj wrote:
> I'd also like to point out that, when setting up a linux container with
> _just_ the lxc tools available in ubuntu, all that was needed to be done
> was whitelist the appropriate cgroups for the Android devices. The lxc
> tools seem to create the appropriate character devices when you
> detach/attach the Android device via USB, and the Android `adb` tool
> recognized the devices.
> 
> So, a tangential question would be, what libvirt domain XML ends up
> "converting" into a cgroup whitelist line in the LXC configuration file?
> (see
> https://wiki.archlinux.org/index.php/Linux_Containers#Host_device_access_settingsfor
> examples of cgroups configuration in a vanilla LXC config file).

You don't need to specify anything related to cgroups in libvirt. We will
automatically set the device ACL correctly to allow any devices listed
in the XML config.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list