- Update your
/etc/netplan/00-installer-config.yamlfile based on the below template1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
network: ethernets: ens18: dhcp4: false bridges: br0: interfaces: [ens18] addresses: [Interface IP/Subnet] gateway4: gateway IP mtu: 1500 nameservers: addresses: [8.8.8.8,8.8.4.4] parameters: stp: true forward-delay: 4 dhcp4: no dhcp6: no version: 2
- Run
sudo netplan applyto apply the network changes you just made - create
host-bridge.xml1 2 3 4 5
<network> <name>host-bridge</name> <forward mode="bridge"/> <bridge name="br0"/> </network>
- Run
sudo virsh net-define host-bridge.xmlto create the KVM Bridge Interface - Run
virsh net-start host-bridgeto start the interface - Run
virsh net-autostart host-bridgeto enable the interface to run at start
Setting up Bridge Interfaces for KVM
This post is licensed under
CC BY 4.0
by the author.