
27 Apr
2016
27 Apr
'16
6:22 p.m.
- there is an issue regarding libvirt socket permissions that make libguestfs fails when trying to access an image. If libguestfs access the same image directly, instead of using libvirt, it works. http://libguestfs.org/guestfs-faq.1.html Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> --- imageinfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/imageinfo.py b/imageinfo.py index 8874917..5a25bb7 100644 --- a/imageinfo.py +++ b/imageinfo.py @@ -50,6 +50,7 @@ def probe_image(image_path): g = guestfs.GuestFS(python_return_dict=True) g.add_drive_opts(image_path, readonly=1) + g.set_backend('direct') g.launch() try: roots = g.inspect_os() -- 2.7.4