[Kimchi-devel] [PATCH] [Kimchi] Make libguestfs uses direct backend instead of libvirt
Jose Ricardo Ziviani
joserz at linux.vnet.ibm.com
Wed Apr 27 16:22:04 UTC 2016
- 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 at 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
More information about the Kimchi-devel
mailing list