Description of problem: unsupported flag 0x2 in function xendaemoncreatexml The problem is that the user's default hypervisor is Xen. libguestfs tries to open a default libvirt connection and then create a qemu domain, but this fails. libguestfs should parse the libvirt capabilities to check that qemu or kvm is actually supported, and bail with a better error message if not. Version-Release number of selected component (if applicable): libguestfs 1.19.66
I fixed libguestfs so it now parses the capabilities XML returned by libvirt and finds the valid domain types. If none of the domain types are "qemu" or "kvm" then it fails early with a useful error message: $ export LIBGUESTFS_ATTACH_METHOD=libvirt:test:///default $ libguestfs-test-tool libguestfs: error: libvirt hypervisor doesn't support qemu or KVM, so we cannot create the libguestfs appliance. The current attach-method is: libvirt:test:///default Try setting: export LIBGUESTFS_ATTACH_METHOD=libvirt:qemu:///session or if you want to have libguestfs run qemu directly, try: export LIBGUESTFS_ATTACH_METHOD=appliance or read the guestfs(3) man page Fixed in https://github.com/libguestfs/libguestfs/commit/11b6293d1bf7a6c0133c609e0e8067b4422dc794