Jan 22
2021
KVM – create new virtual network
Create new bridge
sudo ip link add <bridge-name> type bridge
Add interface to bridge
sudo ip link set <ethX> up sudo ip link set <ethX> master <bridge-name>
Add IP address to bridge and bring it up
sudo ip address add dev <bridge-name> 192.168.0.90/24
sudo ip link set dev <bridge-name> up
Create file bridged-network.xml
<network> <name>bridged-network</name> <forward mode="bridge" /> <bridge name="<bridge-name>" /> </network>
Add bridged-network to our KVM
sudo virsh net-define bridged-network.xml
Activate network and set autostart
sudo virsh net-start bridged-network sudo virsh net-autostart bridged-network
Verify
virsh net-list --all