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

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to