No Network in LXC Container ("no network near OS") on V-Server with Proxmox

Chris1337

New Member
Feb 11, 2025
5
0
1
Hello everyone,

I have Proxmox installed on a vServer with Debian 12 and Plesk. I'm trying to use a Linux bridge (vmbr0) to provide network access for containers. However, after setting up the bridge, the network is no longer available. When trying to install AdGuard in an LXC container, I receive the error message "No network near OS."

Here are my network settings from /etc/network/interfaces:

auto ens6
iface ens6 inet static
address 212.227.xx.xx
netmask 255.255.255.255
gateway 212.227.xx.1
pointopoint 212.227.xx.1
dns-nameservers 8.8.8.8 8.8.4.4

auto vmbr0
iface vmbr0 inet static
address 212.227.xx.xx
netmask 255.255.255.255
bridge-ports none
bridge-stp off
bridge-fd 0
post-up ip route add 212.227.xx.1 dev ens6
post-up ip route add default via 212.227.xx.1 dev ens6




vmbr0 is active, but there is no internet connection. A ping to 8.8.8.8 works only on the host, but not within the container.

Does anyone have an idea how to solve this problem?
 
Screenshot 2025-02-14 104113.png
I have set it up this way now, but it still doesn't work. My goal is to make AdGuard accessible from the internet via my server. However, I find it challenging since the AdGuard IP is local. This means I would have to first access the server and then connect to the local network. Or am i wrong ?
greetings and have a nice day
 
View attachment 82336
I have set it up this way now, but it still doesn't work.
The last two lines might also need to be indented (like the lines above it) but the manual does not make that very clear.

My goal is to make AdGuard accessible from the internet via my server. However, I find it challenging since the AdGuard IP is local. This means I would have to first access the server and then connect to the local network. Or am i wrong ?
One would use port forwarding to make something behind a NAT accessible from the internet. Make sure to enable the Proxmox firewall and maybe take other measures when a system is directly connected to the internet.

There is also a whole sub-forum about networking: https://forum.proxmox.com/forums/proxmox-ve-networking-and-firewall.17/ . And there are many resources on the internet about networking in general (and Linux in particular).