[SOLVED] internet connection for a VM

rvdsv

New Member
Feb 7, 2021
5
0
1
36
hi,

Just dipping my toes in Proxmox VE for 2 weeks now, installed OMV en Debian 10 in VM

for both of the machines I can't get internet to work. reading thru all the post it has been addressed al lot of times but with al the tips an tricks i can't seem to get it to work.

cat /etc/network/interfaces

Node :
Code:
auto lo
iface lo inet loopback

auto eno2
iface eno2 inet manual

iface eno1 inet manual

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

VM(debian 10)

Code:
auto lo
iface lo inet loopback

auto ens18
iface ens18 inet static
address 192.168.178.47
netmash 255.255.255.0
gateway 192.168.178.1

Can't ping the vm from the host and the other way around.

also when looking thru the wiki i can't seems to find the right answer(probably my fault)

all help is welcome!!
 
Have you checked the firewall?

also please share the output of ip a
you mean the firewall of the router or the one from Proxmox?

ap a below:

proxmox node:

Code:
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> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 90:1b:0e:09:0f:08 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 90:1b:0e:1c:92:63 brd ff:ff:ff:ff:ff:ff
5: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000
    link/ether 92:3d:de:3d:0b:8a brd ff:ff:ff:ff:ff:ff
6: fwbr100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:4f:e5:41:a2:f4 brd ff:ff:ff:ff:ff:ff
7: fwpr100p0@fwln100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:9f:fc:71:4e:86 brd ff:ff:ff:ff:ff:ff
8: fwln100i0@fwpr100p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr100i0 state UP group default qlen 1000
    link/ether 02:4f:e5:41:a2:f4 brd ff:ff:ff:ff:ff:ff
9: tap101i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 02:0e:2e:6e:c1:50 brd ff:ff:ff:ff:ff:ff
10: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 90:1b:0e:1c:92:63 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.32/24 brd 192.168.178.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 2001:1c06:18c6:b300:921b:eff:fe1c:9263/64 scope global dynamic mngtmpaddr
       valid_lft 57581sec preferred_lft 28781sec
    inet6 fe80::921b:eff:fe1c:9263/64 scope link
       valid_lft forever preferred_lft forever

VM debian 10

1612794155341.png
 
From your Proxmox side

ping outside not possible as well? ping 8.8.8.8
wWth the Proxmox node it is possible to ping 8.8.8.8 and google.com.

With the Debian VM I can now ping 8.8.8.8 as well but nog google.com, same with the OMV VM.

what is the correct setting for the firewall on proxmox side?

Datacenter level:
1612856899989.png

Proxmox node level:
1612856927166.png

Debian VM level:

1612856958026.png

thanks for the help so far!
 
Alright, found the problem! nothing wrong with the settings in the VM or Proxmox end.

Turns out that the supplied( by isp) cabled wifi acces point with 4 port switch build in doesn't work with VM's or is only oneway internet traffic.
Got it out of the loop and replaced with a simple netgear switch and all is good now:) happy days!