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.
 

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!