You are not logged in.

#1 2025-11-24 16:13:32

tinitus
Member
Registered: 2024-02-20
Posts: 15

Error Creating Bridge Interface in VirtManager

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 permitted

Could anyone advise on where I should begin troubleshooting to resolve this issue?

Thank you!

Offline

#2 2025-11-24 18:42:31

jonno2002
Member
Registered: 2016-11-21
Posts: 835

Re: Error Creating Bridge Interface in VirtManager

have you followed the wiki ? particularly here and  here

Offline

#3 2025-12-11 12:43:00

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 192

Re: Error Creating Bridge Interface in VirtManager

jonno2002 wrote:

have you followed the wiki ? particularly here and  here

I would much rather create the bridge manually

Offline

#4 2025-12-13 02:35:09

Koatao
Member
Registered: 2018-08-30
Posts: 103

Re: Error Creating Bridge Interface in VirtManager

ReDress wrote:

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> up

Then 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

Board footer

Powered by FluxBB