VM is not getting internet.

parvezbd

New Member
Jul 15, 2024
3
0
1
Hi Dear,

I am new at proxmox. for learning purpose, I have installed proxmox in Oracle Virtual Box on an windows 11 machine(host). Host machine(windows) IP is 192.168.0.194/24 (Auto DHCP connected with a home router). The ProxMox is in Oracle Virtual Box and connected as bridge network (Proxmox ip 192.168.0.150/24).

I have installed a linuxOS in proxmox with auto DHCP and got the ip 192.168.0.177 automatically using default vmbr0 Linux bridge (connected with enp0s3, the only adapter). From Proxmox shell, I can ping 8.8.8.8 (google) and 192.168.0.177 (VM). In this point, from the VM, I can ping 192.168.150 (Proxmox OS), but I can't ping 192.168.0.194 (host machine) or 8.8.8.8.

Can anyone guide me to resolve this Networking problem?
[apologize for my poor English]

Sincerely
Parvez
 

Attachments

  • Screenshot 2024-07-15 234800.png
    Screenshot 2024-07-15 234800.png
    20.9 KB · Views: 14
Last edited:
hi !
Check -> in your VM:
- /etc/network/interfaces
- /etc/resolv.conf

- /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp0s3 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.150/24
gateway 192.168.0.1
bridge-ports enp0s3
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0

auto vmbr2
iface vmbr2 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0

cat /etc/resolv.conf
search Dlink
nameserver 192.168.0.1

What to do now?
 
My guess would be that you need to add 1.1.1.1 or 8.8.8.8 as additional DNS server. so it would add the following:
nameserver 8.8.8.8
nameserver 1.1.1.1
before
nameserver 192.168.0.1

that is how I have mine configured
 
this isn't the VM config file ?
- /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

iface enp0s3 inet manual

auto vmbr0
iface vmbr0 inet static
       address 192.168.0.150/24
       gateway 192.168.0.1
       bridge-ports enp0s3
       bridge-stp off
       bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
       bridge-ports none
       bridge-stp off
       bridge-fd 0

auto vmbr2
iface vmbr2 inet manual
       bridge-ports none
       bridge-stp off
       bridge-fd 0

if yes it's wrong, it should look like this
Code:
auto ens18
iface ens18 inet static
    address 192.168.22.2/24
    gateway: 192.168.22.254
    dns-nameserver 8.8.8.8 8.8.4.4
    dns-nameserver 192.168.1.254
 
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!