how to mount host directories inside a proxmox lxc container

Proxmox supports the creation of custom mountpoints inside a lxc container straight from the proxmox container .conf file: locate your container conf file underĀ /etc/pve/lxc/<ID>.conf and add the following: mp0:/mount/point/on/host,mp=/mount/point/on/lxc mp1:/another/mount/point/on/host,mp=/another/mount/point/on/lxc thats it! edit: another way, in the same file, as pointed out in the comments is: lxc.mount.entry: /bkup bkup none bind,create=dir,optional 0 0 This method […]

how to enable tun/tap inside lxc

To enable the tun/tap interface in a lxc container – eg. for Openvpn – one needs to edit the lxc configuration file. Its default location for all containers is: /etc/lxc/default.conf and you have to add: lxc.cgroup.devices.allow = c 10:200 rwm This works in Proxmox 4.2, too. note: be aware that the config file above applies […]