- Install
libvirt
Packagessudo pacman -S qemu libvirt ovmf ebtables bridge-utils openbsd-netcat virt-manager
- Add user to
libvirt
groupssudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
sudo usermod -aG input $USER
- Start
libvirtd
daemonsudo systemctl enable --now libvirtd
- Create network bridge with
nmcli
nmcli connection add type bridge ifname br0 stp no
nmcli connection add type bridge-slave ifname [device] master br0
nmcli connection down [connection]
nmcli connection up bridge-br0
- Define bridge network XML file, e.g. as
br0.xml
<network>
<name>br0</name>
<forward mode='bridge'/>
<bridge name='br0'/>
</network>
- Add bridge network to
virt-manager
virsh -c qemu:///system net-create br0.xml
virsh -c qemu:///system net-autostart br0