How to deactive virbr0?

Issues related to configuring your network
Post Reply
crowhop
Posts: 4
Joined: 2016/01/30 14:24:42

How to deactive virbr0?

Post by crowhop » 2016/01/30 15:33:07

Hi,

I am new to CentOS and use it as a desktop workstation. After install, I realized that two network devices were created that I am not familiar with:
virbr0
virbr0-nic

Which process/service is creating them? It seems that some masquerading from this device via my normal ethernet is enabled. So I assume they must be some virtual devices, however I am not aware that I installed anything software that would do that.

How can I remove this device and disable it?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: How to deactive virbr0?

Post by aks » 2016/01/31 18:45:56

They're used for virualisation. You've probably got KVM and/or "Gnome Boxes" installed.

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

Re: How to deactive virbr0?

Post by jlehtone » 2016/02/01 06:39:33

The libvirt has "Default network" configured and auto-started by default.
The libvirtd.service is enabled by default.

Thus, if you have libvirt installed, then the service is running and on start it has
created those (virtual) interface devices.

The virbr0 (bridge) is like a switch into which you can connect your virtual guests
and your host. The host can act as a router between outside physical subnet and
internal virtual subnet. The router can do NAT (aka masquerade).


You can, on the configuration of libvirt, disable the autostart of the Default network.
You can disable libvirtd.service, if you don't use it.

crowhop
Posts: 4
Joined: 2016/01/30 14:24:42

Re: How to deactive virbr0?

Post by crowhop » 2016/02/01 19:37:27

Hi,

yes, I did two things: removed the gnome boxes. -> Afterwards, the interfaces still existed.

Second, I removed the libvirt interfaces (that got automatically created) by using these commands:

Code: Select all

virsh net-destroy default
virsh net-undefine default
Afterwards, they were gone. Thanks for the help!

Post Reply