Access to internet from Guest OS

stefanfred

New Member
Mar 19, 2020
8
0
1
33
Hello

I have problems with my new Proxmox 6.1 installation.
I can fine ping the internet from the host and ping to the guest OS.
I can also ping the gateway 192.168.0.1 on the guest OS. But not the internet.

Both the firewall on the host and the guest os is disabled

Debian 10 Guest OS
IP-adress: 192.168.0.2
Subnetmask: 255.255.255.0
Gateway: 192.168.0.1

Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.0.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
 
Code:
arch: amd64
cores: 4
hostname: CT100
memory: 4096
net0: name=eth0,bridge=vmbr1,gw=192.168.0.1,hwaddr=2A:D7:CA:XX:XX:XX,ip=192.168.0.2/24,type=veth
ostype: debian
rootfs: local:100/vm-100-disk-0.raw,size=8G
swap: 512
unprivileged: 1
 
Did you restart your host after your network configuration?

And please check your firewall if running or not pve-firewall status
 
Hi,

When execute command ifreload -a after configuration, do you get an error?

Is ifupdown2 installed?
 
I get this:
Cannot find device "eth0"
error: cmd '/sbin/dhclient -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0' failed: returned 1

Yes it is
 
Last edited: