[Libguestfs] [PATCH] launch: show hint to resolve authentication failure from libvirt

Richard W.M. Jones rjones at redhat.com
Thu Oct 11 11:54:44 UTC 2012


On Thu, Oct 11, 2012 at 01:10:16PM +0200, Olaf Hering wrote:
> However, adding 'olaf' into group 'kvm' does not help to run
> libguestfs-test-tool, its still a 'qemu' guest.

libguestfs-test-tool just tests the library.

In the library (src/launch-libvirt.c) we use a hack to detect if
kvm is supported:

  /* Big hack, instead of actually parsing the capabilities XML (XXX). */
  type = strstr (capabilities_xml, "'kvm'") != NULL ? "kvm" : "qemu";

and 'type' is directly used in the <domain type=...> field in the XML.

FWIW I see that the substring "'kvm'" does not appear in the
capabilities XML you pasted.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list