Install And Set Up KVM On Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org


#1

When you pair KVM with a graphical manager like virt-manager, it's extremely simple to use, and it integrates well with your Linux desktop. It's also simple to get VM guests on your regular network through bridged networking. This provides a more seamless experience overall.


This is a companion discussion topic for the original entry at https://linuxconfig.org/install-and-set-up-kvm-on-ubuntu-18-04-bionic-beaver-linux

#2

José Martins

In 18.04 - No WiFi after the bridge setup, so no internet.


#3

Brian Law

after following this bridge setup I couldn’t get through to the internet anymore? the network links were all down and there was no default route for traffic


#4

Pia Software

Here’s one netplan config that worked with Ubuntu 18.04 LTS:

network:
version: 2
ethernets:
enp5s0f0:
dhcp4: true
enp5s0f1:
dhcp4: true
bridges:
br0:
interfaces: [enp5s0f0]
dhcp4: true
optional: true


#5

ming -> Pia Software

do you access guest host via enp5s0f0 or enp5s0f1? my machine has one interface and i chose static ip address, but once i built bridge between br0 and the ethernet interface (ens2), just as “Brain Law”, i lost internet access.


#6

illferris

Use Gnome Boxes dudes. Way easier.


#7

Daniel Cayea

18.04 doesn’t use /etc/network/interfaces but rather /etc/netplan/*.yaml file


#8

ming -> Daniel Cayea

for 18.04 TLS, bridge definition doesn’t work under /etc/netplan. here is the link:

https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1736975


#9

Michel Soares Pintor -> Daniel Cayea

# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown

#10

Im having a similar issue to some of you guys. I used the network options in Virtual Machine Manager to create a bridge. Now just as many of you have said, I now have no network connectivity.

However I have learned that if I boot my VM, I suddenly have a network connection again.

So does anyone here know how to disable to bridge that was created by VMM (im assuming it was created using the same methods mentioned in this post), restore proper networking through netplan again, and then create a proper bridge using netplan?