Can't create a virtual network in KVM Manager

I installed all the nescessary KVM stuff via rpm-ostree. I can create virtual machines just fine, but I can't create virtual networks. How can I fix it? Error message:
Error creating virtual network: error creating bridge interface virbr0: Operation not permitted

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/createnet.py", line 428, in _async_net_create
netobj.create()
~~~~~~~~~~~~~^^
File "/usr/lib64/python3.13/site-packages/libvirt.py", line 3569, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: error creating bridge interface virbr0: Operation not permitted
Error creating virtual network: error creating bridge interface virbr0: Operation not permitted

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/createnet.py", line 428, in _async_net_create
netobj.create()
~~~~~~~~~~~~~^^
File "/usr/lib64/python3.13/site-packages/libvirt.py", line 3569, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: error creating bridge interface virbr0: Operation not permitted
No description
11 Replies
wolfyreload
wolfyreload2mo ago
Your user might not be in the right group to have permission to do that. Try running ujust setup-virtualization group from the terminal and see if that makes a difference You might need to reboot or log out and in again after that for the change to take effect
StarMage
StarMageOP2mo ago
It didn't make a difference
HikariKnight
HikariKnight2mo ago
use the system session user session does not have permission to do anything
StarMage
StarMageOP2mo ago
System session also has this issue
HikariKnight
HikariKnight2mo ago
can you layer virt-manager and see if that has the same issue because this could be another limitation for the flatpak version
StarMage
StarMageOP2mo ago
virt-manager is installed via rpm-ostree as well
HikariKnight
HikariKnight2mo ago
hmm i cant replicate it on the system session
HikariKnight
HikariKnight2mo ago
No description
StarMage
StarMageOP2mo ago
Strange. I think I installed everything right with rpm-ostree install virt-install libvirt-daemon-kvm qemu-kvm virt-manager virt-viewer libguestfs-tools python3-libguestfs. I didn't install libvirt-daemon-config-network because it was "already provided". Right now I installed it with rpm-ostree install libvirt-daemon-config-network --allow-inactive just in case and rebooted. But it still doesn't work. Should I delete it all and install again?
HikariKnight
HikariKnight2mo ago
we install through ujust setup-virtualization
StarMage
StarMageOP2mo ago
Thanks. I should have used ujust from the start but I forgot about it

Did you find this page helpful?