No Network Device in Guest

Breymja

Well-Known Member
Aug 14, 2017
58
1
48
33
Hello,
i managed to migrate my KVM Images to my new ProxMox host. Unfortunatley i can't get the guests to get internet access. I use a routed configuration and gave the guest a virtio vmbr0 network card. But when i start the machine and type ifconfig i only got docker0 and lo - but no ens3 like before in my kvm. Therefore i cant ifup ens3. What am i doing wrong?

Host-Config:
auto lo
iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet static
address 88.198.**.**
broadcast 88.198.**.***
gateway 88.198.**.**
netmask 255.255.255.255
pointopoint 88.198.**.**

iface enp0s31f6 inet6 static
address 2a01:4f8:a0:****::1
gateway fe80::1
netmask 128
up sysctl -p

auto vmbr0
iface vmbr0 inet static
address 88.198.***.***
bridge_fd 0
bridge_ports none
bridge_stp off
netmask 255.255.255.255
up route add -host 88.198.**.** dev vmbr0
up route add -host 88.198.**.** dev vmbr0
up route add -host 88.198.**.*** dev vmbr0

iface vmbr0 inet6 static
address 2a01:4f8:a0:****::1
netmask 64

Guest:
# 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

# The primary network interface
auto ens3
iface ens3 inet static
address 88.198.**.**
broadcast 88.198.**.**
dns-nameservers 213.133.98.98 213.133.99.99
dns-search ****
gateway 88.198.**.**
netmask 255.255.255.192
network 88.198.**.**

iface ens3 inet6 static
address 2a01:4f8:a0:****::2
gateway 2a01:4f8:a0:****::1
dns-nameservers 2a01:4f8:0:a0a1::add:1010
netmask 64
up sysctl -p
 
Well, it just got renamed to ens18 - okay. But i still can't get an internet connection. I suppose that to be because i can't ifup vmbr0 as of:
Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
RTNETLINK answers: File exists
ifup: failed to bring up vmbr0
As of search this seems to be caused because i configured enpos31f6 - but this was the config i used fine when using kvm only. Why and how to configure it correctly for ProxMox!?
 
Okay, this seems to fix the problem:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet manual
iface enp0s31f6 inet6 manual

auto vmbr0
iface vmbr0 inet static
address 88.198.**.206
bridge_fd 0
bridge_ports enp0s31f6
bridge_stp off
broadcast 88.198.**.223
gateway 88.198.**.193
netmask 255.255.255.255
pointopoint 88.198.**.193
up ip route add 88.198.**.208/32 dev vmbr0
up ip route add 88.198.**.209/32 dev vmbr0

iface vmbr0 inet6 static
address 2a01:4f8:a0:**::1
gateway fe80::1
netmask 64

Did take some time to find that out.
 

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!