[Kimchi-devel] [PATCH] [Kimchi] Make libguestfs uses direct backend instead of libvirt

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Wed Apr 27 20:09:59 UTC 2016


Reviewed-by: Paulo Ricardo Paz Vital <pvital at linux.vnet.ibm.com>

On Apr 27 01:22PM, Jose Ricardo Ziviani wrote:
>  - 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
>
> _______________________________________________
> Kimchi-devel mailing list
> Kimchi-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/kimchi-devel
>

--
Paulo Ricardo Paz Vital
Linux Technology Center, IBM Systems
http://www.ibm.com/linux/ltc/




More information about the Kimchi-devel mailing list