Bridge for VMs
ip a
Problem
I have changed the default 192.162
subnet in my house to a 10.0
one. In a
recent arch install without network manager the libvirt default bridge ends up
miss-configured resulting in VMs that can't connect to the internet. Thus the
following solution creates a usable bridge:
add a bridge
ip link add name br0 type bridge ip link set dev br0 up
give it an address (one that works with your subnet, outside of dhcp range if possible)
ip addr add 10.0.0.20/24 dev br0
set it as master in your interface
ip link set enp0s31f6 master br0 # just in case ip link set dev enp0s31f6 up
libvirt vm config
