[Gluster-users] Can't run KVM Virtual Machines on a Gluster volume

Fernando Frediani (Qube) fernando.frediani at qubenet.net
Mon Jun 25 11:32:13 UTC 2012

Thanks for the reply. It was actually the bloody SElinux.
Disabling it allowed the VM to be powered on.

I am now still testing the write performance with both qcow2 and raw, cache none and writeback and as far as I can tell it's not good at all.


-----Original Message-----
From: Brian Candler [mailto:B.Candler at pobox.com] 
Sent: 25 June 2012 08:57
To: Fernando Frediani (Qube)
Cc: 'gluster-users at gluster.org'
Subject: Re: [Gluster-users] Can't run KVM Virtual Machines on a Gluster volume

On Sat, Jun 23, 2012 at 08:16:47PM +0000, Fernando Frediani (Qube) wrote:
>    I just built a 2 node(4 bricks), Distributed-Replicated and everything
>    mounts fine.
>    Each node mounts using GlusterFS client on its hostname (mount –t
>    glusterfs hostname:VOLUME /virtual-machines)
>    When creating a new Virtual Machine using virt-manager it creates the
>    file on the storage, but when trying to power it On, it doesn’t work
>    and gives back an error message.(See below. Yes the folder has full
>    permission to All to write.)

Failing to access something, when the something has permissions, usually implies a problem with apparmor / SElinux.

If this is an Ubuntu platform, then use libvirt to start the VM (i.e. define it using an XML file), and it should automatically create an apparmor policy dynamically.  Otherwise, try turning off apparmor / SElinux temporarily to see whether or that's the problem.  You could also try mounting your volume directly onto /var/lib/libvirt/images.

>    Has anyone actually was able to run it fine  on Gluster 3.3

I have. Ubuntu 12.04.

More information about the Gluster-users mailing list