Qemu XML file problem

Hi all,

I recently configured GlusterFS cluster as a datastore. Everything is OK, but Virtual Machine Definition File (deployment file) do not contain glusterfs protocol in disk section.

It deploys VMs like this. -

disk type=‘file’ device=‘disk’>
source file=‘/var/lib/one//datastores/112/25/disk.1’/>
target dev=‘hdc’/>
driver name=‘qemu’ type=‘raw’ cache=‘none’/>
/disk>

Despite it works and I can install and use VM, i would like to fix that so VM disks will be deployes as gluster protocol disks. So like this -

            <disk type='network' device='disk'>
                    <source protocol='gluster' name='/25/disk.2'/>
                    <target dev='hda'/>
                    <driver name='qemu' type='raw' cache='none'/>
            </disk>  

what should I fix ?

Thanks

Hi

You have to define the Images as DISK_TYPE=GLUSTER, If you take a look to
the full vm template (sunstone in template tab or onvm show -x) the DISK
should include TYPE=GLUSTER.

You may want to take a look to
http://docs.opennebula.org/4.14/administration/storage/gluster_ds.html

Also note that we are favoring the POSIX interface vs the libgfapi for 5.0.

Cheers

1 Like