[libvirt-users] Libvirt and Glusterfs

Pierre-Gilles Mialon pmialon at gmail.com
Tue Apr 30 12:33:23 UTC 2013


Hi,

On a Fedora 18, I try to launch a VM with QEMU-GlusterFS native integration.

I have enable fedora-virt-preview repo, and gluster-alpha3 repo.

Below the list of installed package :
glusterfs-3.4.0-0.3.alpha3.fc18.x86_64
glusterfs-devel-3.4.0-0.3.alpha3.fc18.x86_64
glusterfs-fuse-3.4.0-0.3.alpha3.fc18.x86_64
glusterfs-server-3.4.0-0.3.alpha3.fc18.x86_64
ipxe-roms-qemu-20130103-2.git717279a.fc18.noarch
libvirt-1.0.4-1.fc18.x86_64
libvirt-client-1.0.4-1.fc18.x86_64
libvirt-daemon-1.0.4-1.fc18.x86_64
libvirt-daemon-config-network-1.0.4-1.fc18.x86_64
libvirt-daemon-config-nwfilter-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-interface-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-libxl-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-lxc-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-network-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-nodedev-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-nwfilter-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-qemu-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-secret-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-storage-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-uml-1.0.4-1.fc18.x86_64
libvirt-daemon-driver-xen-1.0.4-1.fc18.x86_64
libvirt-python-1.0.4-1.fc18.x86_64
qemu-common-1.4.1-2.fc18.x86_64
qemu-img-1.4.1-2.fc18.x86_64
qemu-kvm-1.4.1-2.fc18.x86_64
qemu-system-arm-1.4.1-2.fc18.x86_64
qemu-system-x86-1.4.1-2.fc18.x86_64

I have recompiled Qemu with –enable-glusterfs .

Here the content of my /etc/glusterfs/glusterd.vol

volume management
    type mgmt/glusterd
    option working-directory /var/lib/glusterd
    option transport-type socket
    option transport.socket.nodelay on
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2
    option transport.socket.read-fail-log off
    option rpc-auth.ports.insecure yes
    option rpc-auth-allow-insecure on
end-volume


I have defined the following line in my domain.xml

    <disk type='network' device='disk'>
      <driver name='qemu' cache='none'/>
      <source protocol='gluster' name='gv1/test.img'>
        <host name='127.0.0.1' transport='tcp' />
      </source>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
    </disk>


# virsh start test

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -name test -S -M pc-i440fx-1.4 -m
1024 -smp 1,sockets=1,cores=1,threads=1 -uuid
4c8686bc-9da9-c61d-cd85-8b2865ea4124 -no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-boot order=dc,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive
file=gluster://
127.0.0.1:24007/gv1/test.img,if=none,id=drive-virtio-disk0,cache=none-device
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0
-netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27 -device
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:cf:d2:62,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -chardev
spicevmc,id=charchannel0,name=vdagent -device
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
-device usb-tablet,id=input0 -spice
port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -vga qxl
-global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=67108864
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
char device redirected to /dev/pts/4 (label charserial0)
qemu-system-x86_64: -drive file=gluster://
127.0.0.1:24007/gv1/test.img,if=none,id=drive-virtio-disk0,cache=none:
Gluster connection failed for server=127.0.0.1 port=24007 volume=gv1
image=test.img transport=tcp
qemu-system-x86_64: -drive file=gluster://
127.0.0.1:24007/gv1/test.img,if=none,id=drive-virtio-disk0,cache=none:
could not open disk image gluster://127.0.0.1:24007/gv1/test.img: No data
available
2013-04-30 10:39:44.466+0000: shutting down

but launching qemu with commant line work great :
# qemu-system-x86_64  -name test  -M pc-i440fx-1.4 -m 1024 -smp 1 -drive
file=gluster://
127.0.0.1:24007/gv1/test.img,if=none,id=drive-virtio-disk0,cache=none-device
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0


Am I missing something ?

Regards,



-- 
Pierre-Gilles Mialon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130430/5c3e3fe2/attachment.htm>


More information about the libvirt-users mailing list