You are not logged in.

#1 2021-01-25 22:40:24

equalizer876
Member
Registered: 2018-09-11
Posts: 69

bridge device for libvirt/virt-manager VM

I want to directly connect a VM to my router so that the VM gets its own IP from DHCP. Is this possible? In virt-manager I tried to set the network NIC to bridge, but then I get an error message.

Error message in QEMU/KVM User session:

Error starting domain: internal error: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=br1 --fd=29: failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to parse default acl file `/etc/qemu/bridge.conf'


Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, 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 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1234, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: internal error: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=br1 --fd=29: failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to parse default acl file `/etc/qemu/bridge.conf'

Error message in QEMU/KVM session (system wide):

Error starting domain: Cannot get interface MTU on 'br1': No such device

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, 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 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1234, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Cannot get interface MTU on 'br1': No such device

What am I missing? DE is GNOME. ebtables, dnsmasq and bridge-utils are installed. libvirtd.service is running without errors. My user is a member of the libvirt group.

Last edited by equalizer876 (2021-01-25 22:45:41)

Offline

#2 2021-01-26 12:42:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,112

Re: bridge device for libvirt/virt-manager VM

https://wiki.archlinux.org/index.php/QE … dge-helper is intended to be used when starting qemu from commandline , not through libvirt .


https://wiki.archlinux.org/index.php/Libvirt#Networks is a better starting point (make sure to follow the links in that section, especially the first and 2nd link)..

If you want to continue with your current approach :

failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to parse default acl file `/etc/qemu/bridge.conf'

Check your /etc/qemu/bridge.conf file .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB