I'm trying to setup KVM on Ubuntu 18.04.1 Server.
I tried following the instructions here, however I got stuck at the part which has me configure the bridge.
- I don't have a
50-cloud-init.yaml
file, only a01-netcfg.yaml
file (not a cloud setup, so I figured I could edit 01 file instead) - My interface is called
eno1
and notenp0s3
(but I think I corrected that just fine?). - I get an error when mapping the interface:
Error in network definition //etc/netplan/01-netcfg.yaml line 12 column 15: expected mapping
Here is the file:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
renderer: networkd
ethernets:
eno1:
dhcp4: yes
version: 2
bridges:
br0:
interfaces: [eno1]
dhcp4: no
dhcp6: no
addresses: [172.168.0.10/24]
gateway4: 172.168.0.1
nameservers:
addresses: [172.168.0.1]
As you can see it is complaining about my mapping: interfaces: [eno1]
So here are a few questions
- What is wrong with the mapping on line 12?
- Should I be replacing the 172.168.0.X IPs with the IP of the host machine? Or is 172.168.0.X some special internal IP for KVM? (sorry if this is a dumb question)
- The VMs will each have their own IP address on the network, assigned by my router, so should I be setting dhcp4 to 'yes' on line 13?
Much appreciated!