[SOLVED] No internet in host, internet in VMs.

proxmoxoxmxx

New Member
Jun 17, 2019
3
0
1
74
I'm trying to diagnose how/why the Proxmox VE 5.4 host does not have internet but the VMs do.
As a secondary issue, the host keeps deleting /etc/resolv.conf every time I reboot...

Code:
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 1c:69:7a:01:28:f5 brd ff:ff:ff:ff:ff:ff
3: wlp0s20f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether da:d9:80:e7:e4:39 brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1c:69:7a:01:28:f5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.45/24 brd 192.168.1.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::1e69:7aff:fe01:28f5/64 scope link
       valid_lft forever preferred_lft forever

Code:
$ ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 35 Jun 17 20:36 /etc/resolv.conf -> /var/run/NetworkManager/resolv.conf
$ sudo cat /var/run/NetworkManager/resolv.conf
cat: /var/run/NetworkManager/resolv.conf: No such file or directory

If I manually create resolv.conf the internet still doesn't work:
Code:
$ ping google.com
connect: Network is unreachable

Some more debugging info, not sure if it's relevant or not...
Code:
$ ip route
192.168.1.0/24 dev vmbr0 proto kernel scope link src 192.168.1.45
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.45
        netmask 255.255.255.0
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0

$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
connect: Network is unreachable

Thankyou to any expert looking at this :)
 
I recommend you specify a gateway on interface vmbr0 to fix the routing issue. Personally, I don't use NetworkManager, so I would remove the symlink and create a static resolv.conf for DNS.
 
THANKYOU!

To anyone else reading here is what I did:

Code:
$ sudo unlink resolv.conf
Then I manually added nameservers to resolv.conf
Code:
$ sudo chmod 755 resolv.conf
$ sudo ip route add default via 192.168.1.1 dev vmbr0
The default gateway didn't persist after I rebooted though, so I added "gateway 192.168.1.1" to the interface in /etc/network/interfaces.
 
Hi from argentina!
I've Proxmox VE 7.0 and hasn't internet on host (The VM and CT yes have internet!)

My config:

Code:
ip route
default via 10.1.1.1 dev vmbr0 proto kernel onlink
10.1.1.0/24 dev vmbr0 proto kernel scope link src 10.1.1.229

Code:
cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno2
iface eno2 inet static
    address 10.1.1.229
    netmask 255.255.255.0
        gateway 10.1.1.1
    network 10.1.1.0
        broadcast 10.1.1.255

iface eno1 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
    address 10.1.1.229/24
    gateway 10.1.1.1
    bridge-ports eno2
    bridge-stp off
    bridge-fd 0

Code:
 ls -al /etc/resolv.conf
-rw-r--r-- 1 root root 59 Feb 10 15:00 /etc/resolv.conf

root@pve:~# cat /etc/resolv.conf
search XXXX.XXX.XX
nameserver 8.8.8.8
nameserver 10.1.1.99
 
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!