<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi,<br /><br />I'm trying to use qemu native glusterfs integration with libvirt. It's all working well from the qemu side, but libvirt fails to start a domain with a gluster drive or attach a drive.<br />I have exactly the same error as this person: <a href="https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html">https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html</a><br /><br />I use qemu 1.5.1 with glusterfs 3.4 beta 4 and libvirt 1.0.6.<br /><br />[root@bbox ~]# virsh start test<br />error: Failed to start domain test<br />error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3 (label charserial0)<br />qemu-system-x86_64: -drive file=gluster://127.0.0.1/vol0/test0.img,if=none,id=drive-virtio-disk1,format=raw: Gluster connection failed for server=127.0.0.1 port=0 volume=vol0 image=test0.img transport=tcp<br />qemu-system-x86_64: -drive file=gluster://127.0.0.1/vol0/test0.img,if=none,id=drive-virtio-disk1,format=raw: could not open disk image gluster://127.0.0.1/vol0/test0.img: No data available<br /><br />Using this command to run qemu directly works like a charm:<br />[root@bbox ~]# qemu-system-x86_64 -name test -machine pc-i440fx-1.5,accel=kvm,usb=off -m 8G -smp 1,maxcpus=4 -drive file=/pool/st01/test_1.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=gluster://127.0.0.1/vol0/test0.img,if=none,id=drive-virtio-disk1,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk1,id=virtio-disk1 -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -monitor stdio -qmp unix:/tmp/qmp-sock,server,nowait<br /><br />Image has been created using qemu-img.<br />[root@bbox ~]# qemu-img info gluster://127.0.0.1/vol0/test0.img<br />image: gluster://127.0.0.1/vol0/test0.img<br />file format: raw<br />virtual size: 10G (10737418240 bytes)<br />disk size: 341K<br /><br /><br />Everything is run as root, libvirtd daemon as well. Running libvirtd in debug mode doesn't seem to log more relevant informations than the virsh error.<br /><br />Has anyone been able to use glusterfs disks with livbirt ??<br /><br /><br />Any help appreciated,<br />-O.</p>
<div> </div>
</body></html>