[libvirt-users] Libvirt and Glusterfs

Olivier Mauras olivier at core-hosting.net
Sun Jul 7 09:50:01 UTC 2013


 

Hi,

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.
I have exactly
the same error as this person:
https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html
[1]

I use qemu 1.5.1 with glusterfs 3.4 beta 4 and libvirt
1.0.6.

[root at bbox ~]# virsh start test
error: Failed to start domain
test
error: internal error process exited while connecting to monitor:
char device redirected to /dev/pts/3 (label
charserial0)
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
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

Using this command to run qemu directly works like a
charm:
[root at 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

Image has been created using
qemu-img.
[root at bbox ~]# qemu-img info
gluster://127.0.0.1/vol0/test0.img
image:
gluster://127.0.0.1/vol0/test0.img
file format: raw
virtual size: 10G
(10737418240 bytes)
disk size: 341K

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.

Has anyone been able to use
glusterfs disks with livbirt ??

Any help appreciated,
-O. 



Links:
------
[1]
https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130707/b41f668e/attachment.htm>


More information about the libvirt-users mailing list