libguestfs could not connect to libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I am trying to setup tripleo using RDO instack. I am using Fedora 20. I was able to set it up few weeks ago, but then I removed the undercloud and tried to deploy it again, and I am getting the following error:
+ virt-builder fedora-20 --size 30G --format qcow2 -o instack.qcow2 --install net-tools,
echo "stack ALL=(root) NOPASSWD:ALL" >> /etc/sudoers.
chmod 0700 /home/stack/.ssh;
chmod 0600 /home/stack/
cp /etc/skel/.* /home/stack/;
chown -R stack:stack /home/stack' --firstboot-command 'restorecon /etc/resolv.conf' --selinux-relabel
virt-builder: warning: cache /home/stack/
Unix.Unix_error(20, "mkdir", "/home/
virt-builder: warning: disabling the cache
|S-chain|
ProxyChains-3.1 (http://
|S-chain|
[ 6.0] Downloading: http://
|S-chain|
ProxyChains-3.1 (http://
|S-chain|
#######
[ 116.0] Planning how to build this image
[ 116.0] Uncompressing
[ 118.0] Resizing (using virt-resize) to expand the disk to 30.0G
libvirt: XML-RPC error : Failed to connect socket to '/run/user/
virt-resize: libguestfs error: could not connect to libvirt (URI = qemu:///session): Failed to connect socket to '/run/user/
[stack@llmvm02 ~]$ echo $LIBVIRT_
qemu:///system
The default URI for libvirt is qemu:///system, but libguestfs is still trying to connect to qemu:///session.
I then did a fresh install of Fedora 20 and ran the procedure again, still I am getting the same error.
Changed in tripleo: | |
status: | New → Invalid |
Just a note that /home/stack on the *host* is not writable, which may be a problem.
However I'd say in this case the specific problem is with libvirt:
libvirt: XML-RPC error : Failed to connect socket to '/run/user/ 0/libvirt/ libvirt- sock': Permission denied
You can tell libguestfs not to use libvirt, by setting the following environment variable:
export LIBGUESTFS_ BACKEND= direct
In this case virt-builder will just run qemu directly, and libvirt is not involved.