Richard W.M. Jones wrote:
On Tue, Nov 18, 2014 at 11:37:31AM +0530, Niranjan wrote:
> 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]
This is a libvirt bug. Possibly:
https://bugzilla.redhat.com/show_bug.cgi?id=1164773
or:
https://bugzilla.redhat.com/show_bug.cgi?id=886454
Easiest thing is to ditch libvirt and have virt-builder run qemu
directly:
export LIBGUESTFS_BACKEND=direct
Thanks that worked.
<snip>
[juno@dhcp207-208 ~]$ export LIBGUESTFS_BACKEND=direct
[juno@dhcp207-208 ~]$ virt-builder fedora-20 --cache ~/.cache/virt-builder
[ 1.0] Downloading:
http://libguestfs.org/download/builder/fedora-20.xz
[ 2.0] Planning how to build this image
[ 2.0] Uncompressing
[ 10.0] Opening the new disk
[ 15.0] Setting a random seed
[ 15.0] Setting passwords
virt-builder: Setting random password of root to fDn0pqBwSdFUD28f
[ 16.0] Finishing off
Output file: fedora-20.img
Output size: 4.0G
Output format: raw
Total usable space: 5.2G
Free space: 4.5G (86%)
</snip>
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW