What is purpose of virbr0 interface

Issues related to configuring your network
Post Reply
kriticar
Posts: 36
Joined: 2017/02/23 19:02:58

What is purpose of virbr0 interface

Post by kriticar » 2017/03/06 19:43:41

I have installed centos 7, server with gui option. I don't remember that I turned on any kind of virtualisation.
Latter, I have noticed that virbr0 interface has showed.
What is the purpose of virbr0 interface, do I need it, and if not, how can I disable it?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: What is purpose of virbr0 interface

Post by avij » 2017/03/06 19:58:24

That is indeed related to virtualization. I'm not sure about this, but my best guess for disabling virbr0 is to run systemctl stop libvirtd.service, which will stop the virtualization service. If this helped, systemctl disable libvirtd.service will disable the service permanently.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What is purpose of virbr0 interface

Post by TrevorH » 2017/03/06 20:57:18

The default desktop install includes gnome-boxes (possibly just 'boxes') which is a form of virt that uses libvirt. Uninstalling it should fix it too.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

kriticar
Posts: 36
Joined: 2017/02/23 19:02:58

Re: What is purpose of virbr0 interface

Post by kriticar » 2017/03/06 23:49:26

If I execute

systemctl disable libvirtd.service

will I be able latter to enable the service with

systemctl disable libvirtd.service

in case I need it?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: What is purpose of virbr0 interface

Post by avij » 2017/03/07 08:10:04

I suppose you meant systemctl enable libvirtd.service, but yeah, that will re-enable the service the next time you reboot. To start the service without rebooting, you can use systemctl start libvirtd.service, but that won't be a permanent change.

kriticar
Posts: 36
Joined: 2017/02/23 19:02:58

Re: What is purpose of virbr0 interface

Post by kriticar » 2017/03/07 08:33:46

Thank you very very much.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: What is purpose of virbr0 interface

Post by jlehtone » 2017/03/07 09:52:58

TrevorH wrote:The default desktop install includes gnome-boxes (possibly just 'boxes') which is a form of virt that uses libvirt. Uninstalling it should fix it too.
Ahh, gnome-boxes requires libvirt.

Libvirt, if installed, has libvirtd.service enabled by default.
Libvirt has a network definition "default" preconfigured and set to autostart.
The "virbr0" is a bridge interface that represents a network (a bridge is essentially a network switch).

Therefore, by installing libvirt (for any reason) by default dynamically creates the "virbr0" on every boot (and adds some netfilter rules too).

One can disable the autostart of the default network.
One can remove the definition of the default network.
One can stop and disable the libvirtd.service.
One can uninstall the libvirt packages.

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: What is purpose of virbr0 interface

Post by MartinR » 2017/03/07 10:25:38

This may be of interest. It is meant to be conceptual rather than a detailed analysis.
Virbr-NAT.gif

Post Reply