Containers: not able to reach the internet!

FireFox

New Member
Aug 19, 2020
5
0
1
Dear experts,

For evaluation and test purposes, I installed proxmox on VirtualBox. The software specs are these:
- Proxmox 6.2.1
- VirtualBox 6.1.12
- The host is Windows 10
- Proxmox network mode: Bridged

The proxmox works fine and it reached to the internet.
I have tried to install on proxmox some LXCs... also to test them.

My issue is all the installed LXCs wont be able to connect to the internet!!
I am able to ping from the LXC to proxomx but I cant ping for example 8.8.8.8 form the LXCs.

I have tried different solutions and I searched on the internet but I couldn't fined the solution or maybe I didn't understand it.

I think I missed something here.

Please help and direct me to the solution.

Thank you
 
Hi,

Please post your network configuration cat /etc/network/interfaces and config for one LXC Container pct config <VMID>
 
  • Like
Reactions: FireFox
Hi Moayad,

Thank you for your quick reply.

The proxmox network configuration is:
auto lo
iface lo inet loopback

iface enp0s3 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.200.131
netmask 255.255.255.0
gateway 192.168.200.1
bridge_ports enp0s3
bridge_stp off
bridge_fd 0



The LXC container configuration is:
arch: amd64
cores: 1
hostname: unifi
memory: 2048
net0: name=eth0, bridge=vmbr0, firewall=1, hwaddr=xx:xx:xx:xx:xx:xx, ip=dhcp, type=veth
ostype: ubuntu
rootfs: local-lvm:vm-100-disk-0, size=8G
swap: 512
unprivilieged:1
 
I can ping between both the proxmox and LXCs. But when I am pinging from the LXC to the internet or the local host machine (windows 10) it gives me unreachable connections!

I am sure there is a small configuration step that I need to do to solve this issue but unfortunately I don't know what it is.
 
Based on the attached link, and on the network configuration section:

I added two NIC adapters,
adapter 1: Host-only Adapter
adapter 2: NAT

When I did this, I cant log in to the proxmox from the web interface and also I cant ping to the internet or the host machine or vice versa.

Before, the proxmox network setting was on " Bridged adapter" mode and it was able to connect to the internet.

In addition to all of these, the VT-x/AMD-V, Nested Paging, PAE/NX and KVM paravirtualization are enabled.

Sorry brother but the issue still exist!!


I have tried also to download same system on MacOS Catalina and I faced exactly same issues.
 
Hola, ¿pudiste resolver este problema? Estoy pasando por lo mismo, excepto que mi proxmox lo virtualiza a través de hyper-v.

(Siga revisando otras publicaciones y descubrí que el problema es la suplantación de mac, y funcionó, también vi que funciona para vbox)
 
Last edited:

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!