
On 10/23/2012 08:53 AM, Heiher wrote:
Hello,
Currently, libvirt is not support device operations for lxc.
This is a patch that add device operations support for libvirt 0.10.2. 1. lxcDomainAttachDevice 2. lxcDomainAttachDeviceFlags 3. lxcDomainDetachDevice 4. lxcDomainDetachDeviceFlags 5. lxcDomainUpdateDeviceFlags
In live mode, set devices.allow/deny to instance's cgroup and insert disk config into current domain. In config mode, just insert disk config into current domain.
This is part of 'Fix up attach/detach volume for nova (openstack)'.
Thanks for the patch! Actually posting the patch in your mail is expected though. Using git send-email to get an inline patch is preferred, but I think people would be okay with an attachment. There's more details here: http://libvirt.org/hacking.html#patches Thanks, Cole