VMs in Proxmox host not able to connect to internet

taiponytier

New Member
Jan 12, 2021
2
0
1
32
Dear forum people,

From the documentation, it seems the default networking setup for the VMs should be able to make use of the same network interface of proxmox host to connect to the internet. It seems VMs and proxmox host are in line with the default set up.

However, the following is the situation:
- VM within the proxmox host cannot ping both 8.8.8.8 and my gateway 192.168.0.1.
- proxmox host can ping both 8.8.8.8 and gateway 192.168.0.1.

My installation of the proxmox host is on virtualbox with the following network settings:

1612954088162.png

cat /etc/network/interfaces

Code:
auto lo
iface lo inet loopback

iface enp0s3 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.102/24
        gateway 192.168.0.1
        bridge_ports enp0s3
        bridge_stp off
        bridge_fd 0

I know this has probably been asked many times but I figure I could do with some internet help. Please let me know if further information needs to be supplemented to solve this issue.

Thank you very much!
 

Attachments

  • 1612954145879.png
    1612954145879.png
    53.4 KB · Views: 19
That screenshot looks like VirtualBox. You're running Proxmox inside VirtualBox, is that correct? Are you sure that Realtek card supports bridged networking? Most don't. Try NAT mode.

ETA: Didn't see where you mentioned VBox.
 
That screenshot looks like VirtualBox. You're running Proxmox inside VirtualBox, is that correct? Are you sure that Realtek card supports bridged networking? Most don't. Try NAT mode.

ETA: Didn't see where you mentioned VBox.

Indeed I am running Proxmox inside VirtualBox.

I have tried changing to NAT mode with these settings remaining, but then my Proxmox host will not be able to access the internet at all.

With this Bridged VirtualBox setting for my Proxmox host, it is able to access the internet but the VMs that I spin up under it cannot access internet.
 
Most wifi chips do not support bridging. Instead you must use NAT.

If you use NAT you must either use DHCP to assign addresses (both to Proxmox and the VM's) or pay attention to what the internal network is in VBox and assign IP's from that.
 

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!