[libvirt-users] Mounting directory as readonly within LXC

Michal Privoznik mprivozn at redhat.com
Mon Apr 20 11:13:22 UTC 2015


On 20.04.2015 12:58, Harish Vishwanath wrote:
> Hello
> 
> Is there a way to mount a directory as readonly when using LXC with libvirt?
> 
> Something like:
> 
>                 <filesystem type="mount">
>                     <source dir="/sw/py27/python2.7_x86_64"/>
>                     <target dir="/opt//py27"/>
>                     <readonly/>
>                 </filesystem>
> 
> 
> The documentation says readonly only works with KVM/QEMU.

That's a bug in our docs. Going through the code it seems like it should
work on LXC too. Mind trying out and posting a documentation patch?

Michal




More information about the libvirt-users mailing list