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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!