You are not logged in.
Hello,
I encountered an issue when trying to create a network via VirtManager. The following error message appears:
error creating bridge interface virbr1: Operation not permitted
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 67, in cb_wrapper
callback(asyncjob, *args, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/createnet.py", line 427, in _async_net_create
netobj.create()
~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/libvirt.py", line 3618, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: error creating bridge interface virbr1: Operation not permittedCould anyone advise on where I should begin troubleshooting to resolve this issue?
Thank you!
Offline
have you followed the wiki ? particularly here and here
Offline
have you followed the wiki ? particularly here and here
I would much rather create the bridge manually
Offline
I would much rather create the bridge manually
So you have to create the bridge and configure it:
ip link add <bridge_name> type bridge
ip addr add <ip/cidr> dev <bridge_name>
ip link set <bridge_name> upThen set up the firewall on your host depending on what you want to achieve.
Then you might want to run a DHCP server (and maybe a DNS server).
Finally, attach the VM to the bridge
virt-install -n <domain> --network bridge=<bridge_name>All of this is not persistent.
Or using Polkit as suggested, you can use virsh to configure and start a network and attach the VM to it.
And this can be made persistent with Libvirt.
Last edited by Koatao (2025-12-13 02:36:13)
Offline