[Solved] Proxmox - can connect to host but can't connect to containers

Hello,

I have strange problem with my testing proxmox setup.
I’ve already configured similar config on my dedicated server where everything works prefectly.

But as you know testing new things on a remote host, especially when it’s hosting other VMs (not only my VMs but VMs of my friends too) is not a good thing.
So I come up with idea where I’ll setup proxmox on virtualbox and then test network configuration there before attempting doing the same on my dedicated server.

Anyway, the thing is that I’ve set VM’s interface to be bridged so I could access webpanel and containers on that VM from my home network.

Here is my config:

Host: /etc/network/interfaces

source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback

iface enp0s3 inet manual

allow-hotplug enp0s3

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.31
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports enp0s3
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes

auto vmbr1
iface vmbr1 inet manual
        bridge_ports vmbr0
        bridge_stp off
        bridge_fd 0

Container: /etc/network/interfaces

iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.0.32
        netmask 255.255.255.0
        gateway 192.168.0.1

I can’t ping 192.168.0.1 from container
I can’t ping 192.168.0.10 (my pc) from container
I can’t ping google.com from container

I can login via ssh to host from my pc
I can ping google.com from host
I can ping 192.168.0.1 from host

I can also ping host from container and container from host

I tried changing container config to:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.0.32
        netmask 255.255.255.0
#       gateway 192.168.0.1

        post-up ip route add 192.168.0.1 dev eth0
        post-up ip route add default 192.168.0.1 dev eth0
        pre-down ip route del default via 192.168.0.1 dev eth0
        pre-down ip route del 192.168.0.1 dev eth0

It didn’t change anything.

Ok, all I had to do was to set the NIC to promicious mode in virtualbox interface settings.

1 Like