Proxmox 4.0 Beta ( Unable to mount multiple nfs host paths in LXC container )

JCantrall

New Member
May 23, 2011
2
0
1
BETA 4.0Beta-26/5da615b

Getting error: TASK ERROR: multiple definitions for lxc.mount.entry

When my config contains:
lxc.mount.entry = /mnt/pve/Work/complete/movie media/MovieComplete none bind,create=dir 0 0
lxc.mount.entry = /mnt/pve/Media/Movie media/Movie none bind,create=dir 0 0

Both /mnt/pve/Work and /mnt/pve/Media are nfs shares
 
Been having the same issue, I *think* I saw it was fixed in more recent git versions, but I can't find that again for the life of me.
 
Meanwhile you can edit /usr/share/perl5/PVE/LXC.pm and change line 406 to:

Code:
die "multiple definitions for $name\n" if defined($data->{$name}) && ($data->{$name} != "lxc.mount.entry");

It should allow you to have more than one lxc.mount.entry line in container config file.