this post was submitted on 30 Apr 2025
6 points (75.0% liked)

Linux

55009 readers
632 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Hi, folks! 👋

I want to create a local ip address for my virtual machine. I use virt-manager + QEMU. So, as I got it - I need to create a bridge for doing this. But... When I'm trying to connect a created bridge to a virtual machine:

Then trying to start a virtual machine, I gets this error:

Ошибка запуска домена: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=br0 --fd=32: failed to communicate with bridge helper: stderr=failed to create tun device: Operation not permitted
: Transport endpoint is not connected

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=br0 --fd=32: failed to communicate with bridge helper: stderr=failed to create tun device: Operation not permitted
: Transport endpoint is not connected

For creating bridges I use the standard network manager for Xfce:

I use MX Linux operating system for the host machine.

So, what do I do wrong, and how can I fix this problem? 🤔

top 7 comments
sorted by: hot top controversial new old
[–] INeedMana@lemmy.world 2 points 1 month ago (1 children)

stderr=failed to create tun device: Operation not permitted

you probably don't have permissions to create such device. BTW, afaik a bridge will make the vm get the traffic on the same IP, creating a separate IP for VM will probably be something else. And might require some iptables setup so your host machine relays the traffic

[–] just_another_person@lemmy.world 3 points 1 month ago (2 children)

Yes, if not doing this as sudo, you need to be part of the proper group to create and alter network interfaces.

[–] HungryLemon@lemmings.world 1 points 1 month ago (1 children)
[–] just_another_person@lemmy.world 1 points 1 month ago

Depends on the distro and how you have your permissions configured.

[–] HungryLemon@lemmings.world 1 points 1 month ago* (last edited 1 month ago) (1 children)

I checked the groups of my user, and my user is already in the netdev group 🤔

Maybe I need to add it to another group?

[–] just_another_person@lemmy.world 1 points 1 month ago

The easiest test is to run the creation commands as sudo or root. If it works, then you need a different permissions setup. You didn't mention any specifics about your distro permissions setup.

[–] HungryLemon@lemmings.world 2 points 1 month ago* (last edited 1 month ago)

Thanks so much! 😄 I finally solved my problem 😉

First step that I've do - I found this article 👉 https://mike632t.wordpress.com/2021/04/13/using-qemu-with-a-bridge-network-device/ and doing all from there.

The next step - I've add a bridge to an existing network interface:

sudo brctl addif br0 eth0

And the next step - I've started up this bridge:

sudo ip link set br0 up

And now everything works fine 👍