Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot create bridge interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 191

PostPosted: Wed Nov 01, 2017 9:58 am    Post subject: Cannot create bridge interface Reply with quote

I'm trying to create a bridge interface with "Virtual Machine Manager", and no matter what i try, is gives me the following error

Error creating interface: 'Could not define interface: this function is not supported by the connection driver: virInterfaceDefineXML'

Code:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createinterface.py", line 1145, in do_install
    self.interface.install(meter, create=activate)
  File "/usr/share/virt-manager/virtinst/interface.py", line 258, in install
    raise RuntimeError(_("Could not define interface: %s") % str(e))
RuntimeError: Could not define interface: this function is not supported by the connection driver: virInterfaceDefineXML


any help would appreciated, thanks :)

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1679
Location: Frankfurt, Germany

PostPosted: Wed Nov 01, 2017 10:08 pm    Post subject: Reply with quote

Hi leonchik1976,

you could try to set up the bridge manually -- in order to see whether the problems come from your kernel, your configuration tools or from your "Virtual Machine Manager":
Code:
tunctl -u kvm -t tap0
tunctl -u kvm -t tap1
brctl addbr br0
brctl addif br0 tap0
brctl addif br0 tap1
brctl show br0
Mike
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7256
Location: almost Mile High in the USA

PostPosted: Thu Nov 02, 2017 5:50 pm    Post subject: Reply with quote

As far as I know, VMM/libvirt/qemu can't create bridges, nor would it be proper for it to create bridges to nowhere. So yes, you have to make the bridge outside of VMM.

It can create an exit/tap off the bridge however, which is what I suppose was the intent of the option in VMM.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1795
Location: Oranienburg/Germany

PostPosted: Fri Nov 03, 2017 5:33 am    Post subject: Reply with quote

eccerr0r wrote:
As far as I know, VMM/libvirt/qemu can't create bridges, nor would it be proper for it to create bridges to nowhere. So yes, you have to make the bridge outside of VMM.

It can create an exit/tap off the bridge however, which is what I suppose was the intent of the option in VMM.


Hi, this is correct. You need to configure your bridge in /etc/conf.d/net first and start it, with the tap interface already connected to the bridge, before running vmm and creating a new vm.

greets, bb
_________________
1st: i5-4570, 16GB, 1.75TB
2nd: i5-4570, 16GB, 620GB
3rd: i5-4570, 16GB, 10,5TB
4th: Asus N61VN, 8GB, 240GB
5th: C2D T7200, 2GB, 16GB USB + NFS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum