[SOLVED] Proxmox4 : LXC Bind Mounts (read only)

belette_fr

New Member
Feb 11, 2016
7
0
1
37
Hello,

In Proxmox 4, they are two method to mount a directory in a container "lxc.mount.entry" and "mpX" (https://pve.proxmox.com/wiki/LXC_Bind_Mounts).

My problem :
-mpX : Method doesn't support read only.
-lxc.mount.entry : Method can only be used one time and it's doesn't recommanded option in manual.

My question, is it possible to add a read only "r" option to mpX method?

Regards.
 
Last edited:
Hello Dietmar,

Thanks you for your quick response.

For precision and example, it's possible to mount an readonly lvm logical volume :
->mp0: pve_storage_name:lvm_logical_volume_name,/mnt/example,r

But not possible mount directory (bind) from host :
->mp0: /mnt/host_directory,/mnt/example,r

Is it good comprehension?

Regards.
 
#pct start 1228
vm 1228 - unable to parse value of 'mp0' - duplicate key in comma-separated list property: volume

#dpkg -l | grep pve-container
ii pve-container 1.0-41 all Proxmox VE Container management tool

#grep mp0 /etc/pve/lxc/1228.conf
mp0: container:vm-100-disk-1,/mnt/test,ro=1

My syntax is correct?