[Libguestfs] How to use libguestfs access LVM as non-root user?

Qiu Yu unicell at gmail.com
Thu May 30 14:21:42 UTC 2013


Following code snippet, running as non-root user, will throw up a
'Permission denied' RuntimeError.

Could someone kindly guide me the correct way to handle LVM disk as
non-root user? Cause as http://libguestfs.org homepage claims, "libguestfs
doesn't need root permissions."  A little confused somehow.

import guestfs
g = guestfs.GuestFS()
g.add_drive_opts("/dev/vg0/disk1", format="raw")


Qiu Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20130530/3daf90a5/attachment.htm>

More information about the Libguestfs mailing list