Networking Troubles with vmbr0 to VM

Dark-Schnitzel

New Member
Sep 8, 2017
4
0
1
29
Hello Community,

i got problems to access the Network with my VM. NAT is working but i need it for building a Docker Server with Portainer and Nextcloud so this isnt enough for me.

Followed these Steps:
Fresh Install on a Testing PC (192.168.2.100)
vmbr0 is created, gateway (192.168.2.1) and Subnet Mask (255.255.255.0) are correct
Installed new VM with ubuntu Server 16.04 (needed to switch off KVM Hardware Virtualization)
Using vmbr0 in Bridged Mode with E1000 (tried also VirtIO)
running ifconfig, only loopback available
"ls /sys/class/net" shows ens18
create network config for ens18:

iface ens18 inet static
address 192.168.2.101
netmask 255.255.255.0
gateway 192.168.2.1
broadcast 192.168.2.255
network 192.168.2.0

Still no Autostart for this Interface after booting
"ifup ens18" works.

ifconfig shows the inet addr, but no connection is possible...
"ping google.de" unknown host
"ping 192.168.2.100" also not possible, cant reach any network device like the gateway or other..

Anyone got a Idea? I just want a working vmbr in my VM :/

Proxmox 5.0-30
 
A default network config on a PVE installation looks like this.
Code:
# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.45
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports enp6s0
    bridge_stp off
    bridge_fd 0

Then connect your VM to the right bridge (default: vmbr0) and configure the ip settings inside the VM as needed. If your VM and PVE are in the same network you can ping between them.
 
A default network config on a PVE installation looks like this.
Code:
# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.45
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports enp6s0
    bridge_stp off
    bridge_fd 0

Then connect your VM to the right bridge (default: vmbr0) and configure the ip settings inside the VM as needed. If your VM and PVE are in the same network you can ping between them.


Yes this is right, the only config i changed is the one of the ubuntu guest
The Config of the Host looks like this, its a fresh install

PVE 192.168.2.100
VM 192.168.2.101

Edit: added Photos of same Poblem in a Virtualbox VM
 

Attachments

  • Screenshot_20170917_125457.png
    Screenshot_20170917_125457.png
    104.2 KB · Views: 110
  • Screenshot_20170917_125423.png
    Screenshot_20170917_125423.png
    24.7 KB · Views: 102
  • Screenshot_20170917_125404.png
    Screenshot_20170917_125404.png
    65 KB · Views: 94
  • Screenshot_20170917_130356.png
    Screenshot_20170917_130356.png
    16.2 KB · Views: 89
  • Screenshot_20170917_130438.png
    Screenshot_20170917_130438.png
    11.9 KB · Views: 95
Last edited:
Also tried with Autoconfiguration of the Interface, this failed.

Tried another VM with Container Linux, same Problem no Network Connection. Anyone got a idea?
Screenshots from the Ubuntu VM
 

Attachments

  • Screenshot_20170917_172844.png
    Screenshot_20170917_172844.png
    32 KB · Views: 69
  • Screenshot_20170917_172822.png
    Screenshot_20170917_172822.png
    170.8 KB · Views: 67
  • Screenshot_20170917_132009.png
    Screenshot_20170917_132009.png
    2.5 KB · Views: 65
Last edited:
Yes this is right, the only config i changed is the one of the ubuntu guest
The Config of the Host looks like this, its a fresh install

PVE 192.168.2.100
VM 192.168.2.101
Your IP settings are different then shown in the pictures.

Please describe further, how your setup looks like. You write PVE, Virtualbox, container, VM, this sounds to me like you are trying to stack things together.
 
Your IP settings are different then shown in the pictures.

Please describe further, how your setup looks like. You write PVE, Virtualbox, container, VM, this sounds to me like you are trying to stack things together.

Sorry my bad, tried this Setup on the Weekend on a VM at home with the same problem.
Now the Screenshots are from the described Server only

(home 192.168.100.0/24)
(Work 192.168.2.0/24)

Seems to work now!
Added dns-nameserver Section in /etc/network/interfaces
But need no to manually raise the Interface after every Reboot, but that is accectable
 

Attachments

  • Bildschirmfoto von »2017-09-18 11.33.42«.png
    Bildschirmfoto von »2017-09-18 11.33.42«.png
    44.8 KB · Views: 143
  • Bildschirmfoto von »2017-09-18 11.38.49«.png
    Bildschirmfoto von »2017-09-18 11.38.49«.png
    162.9 KB · Views: 133

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!