Question: Pass through net1 to OpenWRT in LXC container.
Found a post which claimed after PVE 8.1, there is no need to bind and allow as before:
According to Char's Arcade's blog post, the way to pass through net1 to lxc is as below:
The PVE I installed is 8.1, so what should I do now?
Thank you,
Jazzi
Found a post which claimed after PVE 8.1, there is no need to bind and allow as before:
Starting with PVE 8.1, container device passthrough is supported. So you do not have to manually bind mount the device nodes into the containers and add allow rules for certain major and minor device numbers.
Instead you can just add the device to the container config like so:
n is just an arbitrary number from 0 to 255 to identify the deviceCode:pct set <container id> -dev<n> /dev/net/tun
According to Char's Arcade's blog post, the way to pass through net1 to lxc is as below:
# Passthrough the physical network card for container
lxc.net.1.type: phys
lxc.net.1.link: enp6s0
lxc.net.1.flags: up
The PVE I installed is 8.1, so what should I do now?
Thank you,
Jazzi