sudo systemctl status libvirtd
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
``
sudo brctl addbr virbr0
sudo: brctl: command not found
Answer
The error "sudo: brctl: command not found" indicates that the brctl command is not installed on your system. To resolve this issue and create the virbr0 bridge, follow these steps:
Install the bridge-utils package, which contains the brctl command:
bash
sudo apt update
sudo apt install bridge-utils
Once installed, try creating the bridge again:
bash
sudo brctl addbr virbr0
Set the bridge interface up:
bash
sudo ip link set virbr0 up
Optionally, assign an IP address to the bridge:
bash
sudo ip addr add 192.168.2.1/24 dev virbr0
sudo ip link set virbr0 up
If you prefer using more modern tools, you can create the bridge using ip instead of brctl:
bash
sudo ip link add name virbr0 type bridge
sudo ip link set virbr0 up