Page tree

Versions Compared

Key

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

...

Expose VMs to the Network via Public Bridge

Ubuntu Server

This used to be hard, but now KVM sets Strange... somehow KVM can setup up a Public Bridge out during boot of the box VM and this can be manipulate using VMM (Virtual Machine Manager).

...

Boot and now your VM exists like a real machine on your existing network....

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. 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

Ubuntu Desktop

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

...