I'm having some trouble getting a tun/tap device created on a Debian LXC container. I've read through some of the other posts users have made on the subject (I'll link to them at the bottom), but the solutions do not seem to work for me.
The configuration of my container looks like this.
The /dev/tun doesn't appear to on the container when I restart it. I'm also unable to use make the device.
Using modprobe tun on the host doesn't seem to return anything, I'm a little at a loss to what I should do here.
https://forum.proxmox.com/threads/installing-openvpn.51565/#post-239247
https://forum.proxmox.com/threads/vpn-issues-ppp-tun-interfaces.54649/#post-251645[/code]
The configuration of my container looks like this.
Code:
cat /etc/pve/lxc/100.conf
arch: amd64
cores: 1
hostname: debian
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=92:78:93:D5:EF:28,ip=dhcp,ip6=dhcp,type=veth
ostype: debian
rootfs: mount:100/vm-100-disk-0.raw,size=20G
swap: 512
unprivileged: 1
lxc.cgroup.devices.allow = c 10:200 rwm
lxc.mount.entry: /dev/net/tun /dev/net/tun none bind create=file
The /dev/tun doesn't appear to on the container when I restart it. I'm also unable to use make the device.
Code:
root@proxmox:~# pct enter 100
root@debian:~# modprobe tun
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.15.18-17-pve/modules.dep.bin'
modprobe: FATAL: Module tun not found in directory /lib/modules/4.15.18-17-pve
root@debian:~# mknod /dev/net/tun c 10 200
mknod: /dev/net/tun: Operation not permitted
Using modprobe tun on the host doesn't seem to return anything, I'm a little at a loss to what I should do here.
https://forum.proxmox.com/threads/installing-openvpn.51565/#post-239247
https://forum.proxmox.com/threads/vpn-issues-ppp-tun-interfaces.54649/#post-251645[/code]