NFS Mount in LXC, v4.0 beta.

noisufnoc

Member
Aug 23, 2015
18
0
21
I'm trying to wrap my mind around mounting NFS file systems to LXC containers running under Proxmox 4.0b. I tried adding the following to /etc/pve/lxc/<container id>/config

Code:
lxc.mount = /var/lib/lxc/<container id>/fstab

and then using standard fstab entries in that file for mounting the NFS file systems. No such luck.

Is this possible in proxmox's implementation of LXC at this time? Documented anywhere?
 
Note, that in last git, it's already possible to define

local:100/vm-100-disk-1.subvol

This will map to this directory

/var/lib/vz/images/100/vm-100-disk-1.subvol

So, if you mount your nfs in this directory, it should work.

Other mountpoint can be define like this

mp0: local:100/vm-100-disk-2.subvol,size=0,mp=/home
mp1: local:100/vm-100-disk-3.subvol,size=0,mp=/var
...
 
Note, that in last git, it's already possible to define

local:100/vm-100-disk-1.subvol

This will map to this directory

/var/lib/vz/images/100/vm-100-disk-1.subvol

So, if you mount your nfs in this directory, it should work.

Other mountpoint can be define like this

mp0: local:100/vm-100-disk-2.subvol,size=0,mp=/home
mp1: local:100/vm-100-disk-3.subvol,size=0,mp=/var
...

what version do i need to be on to use this? where does the config get placed? docs?