Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

But this is not really a good solution and problematic as I found with Ubuntu Desktop... leading to the real solution which is to use VMM at the higher level and configure a proper bridge. Finally found the clarity by following instructions at techotopia.com through VMM (not you get disconnected after it executes though and the client hands). It was not clear anywhere, but what you do is,

  • Determine your existing network interface that works, in my case enp2s0.
  • Make a new bridge interface we'll call br0
  • Make enp2s0 slave to br0
  • br0 then is your new primary interface, receiving the host's IP address on your NIC
  • But it also is in bridge mode so VMs choosing to use br0 will get their own IP address against the same network via dhcp

You end up with /etc/network/interfaces going from this,

... put original file here...

To static config,

Code Block
# 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 enp2s0
iface enp2s0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1

To using VMM resulting in this,

Code Block
languagebash
 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 br1
iface br1 inet dhcp
   bridge_ports enp2s0
   bridge_stp on
   bridge_fd 0.0

And this to give br1 static ip,

...


Ubuntu Desktop

Did not work retrofitting... so this time trying during vm setup before install,

...