[Libguestfs] How to make virt-builder use qemu:///system instead of qemu:///session

Niranjan niranjan at ashoo.in
Tue Nov 18 06:07:31 UTC 2014


Greetings

I am trying to create quick fedora20 vm's and using virt-builder for it.
Currently when i run virt-builder on Fedora 21 it fails with below errors:

<snip>

[juno at dhcp207-208 ~]$ virt-builder fedora-20 --cache ~/.cache/virt-builder
[   1.0] Downloading: http://libguestfs.org/download/builder/fedora-20.xz
[   1.0] Planning how to build this image
[   1.0] Uncompressing
[   9.0] Opening the new disk
libvirt: XML-RPC error : Cannot recv data: Connection reset by peer
virt-builder: error: libguestfs error: could not connect to libvirt (URI =
qemu:///session): Cannot recv data: Connection reset by peer [code=38
domain=7]

If reporting bugs, run virt-builder with debugging enabled and include the
complete output:

  virt-builder -v -x [...]

</snip>

Versions used:

libguestfs-tools-c-1.28.2-3.fc21.x86_64
Fedora release 21 (Twenty One)[Host]
libvirt-1.2.9.1-1.fc21.x86_64


I am trying virt-builder as non-root user. This user can connect through libvirt
using qemu:///system. 

<snip>

[juno at dhcp207-208 ~]$ virsh -c qemu:///system list
 Id    Name                           State
----------------------------------------------------
</snip>

but can't connect using qemu:///session

<snip>

[juno at dhcp207-208 ~]$ virsh -c qemu:///session
error: failed to connect to the hypervisor
error: Cannot recv data: Connection reset by peer

</snip>


Any help in this regard would be helpful.

Regards
Niranjan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 311 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20141118/151ad487/attachment.sig>


More information about the Libguestfs mailing list