[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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 dhcp207-208 ~]$ virsh -c qemu:///system list
 Id    Name                           State
----------------------------------------------------
</snip>

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

<snip>

[juno 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


Attachment: pgpvUJ49uKZMK.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]