[Libguestfs] How to use libguestfs access LVM as non-root user?
Richard W.M. Jones
rjones at redhat.com
Fri May 31 08:17:07 UTC 2013
On Fri, May 31, 2013 at 04:03:32PM +0800, Qiu Yu wrote:
> Actually I'm looking into an issue with OpenStack / Libvirt manipulating
> LVM as an image backend. When the logical volume is created, udev rules
> will set the ownership to root:disk. After libvirt actually starting an
> instance, device node ownership will change to qemu:qemu by libvirt. Then,
> if you stop an instance, the device node ownership will change back to
> root:root. Seems there's some inconsistency here.
This is actually a well-known bug in libvirt.
(marked as a duplicate of a private bug 547546 for some reason --
I will try to get this made non-private)
You can turn off libvirt's ownership management (set dynamic_ownership
= 0 in /etc/libvirt/qemu.conf) however this will cause other problems.
I don't think there is a proper solution to this yet.
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
More information about the Libguestfs