Red Hat / CentOS Linux: Explain Use of Network Interface virbr0

by Vivek Gite · 7 comments

Q. I've installed Red Hat Enterprise Linux 5.2 and I see virbr0 network interface along with my eth0 interface? What it is? How do I disable or remove virbr0?

A. virbr0 is xen interface used by Virtualization guest and host oses for network communication. Following are the packages under Red Hat / CentOS Linux:
Group: Virtualization
Description: Virtualization Support.
Mandatory Packages:
=> xen
=> kernel-xen
Default Packages:
=> virt-manager
=> Virtualization-en-US
=> gnome-applet-vm
=> libvirt
You can disable virbr0 if you don't need xen Virtualization support, enter:
# yum groupremove "Virtualization"
Sample output:

Loading "rhnplugin" plugin
Loading "security" plugin
Setting up Group Process
rhel-x86_64-server-vt-5   100% |=========================| 1.4 kB    00:00
rhn-tools-rhel-x86_64-ser 100% |=========================| 1.2 kB    00:00
rhel-x86_64-server-5      100% |=========================| 1.4 kB    00:00
No package matched to remove
No package matched to remove
No package matched to remove
No package matched to remove
No package matched to remove
Resolving Dependencies
--> Running transaction check
---> Package libvirt.x86_64 0:0.3.3-7.el5 set to be erased
--> Processing Dependency: libvirt.so.0()(64bit) for package: libvirt-python
--> Processing Dependency: libvirt = 0.3.3 for package: libvirt-python
--> Running transaction check
---> Package libvirt-python.x86_64 0:0.3.3-7.el5 set to be erased
--> Processing Dependency: libvirt-python for package: rhn-virtualization-host
--> Running transaction check
---> Package rhn-virtualization-host.noarch 0:1.0.1-55 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 libvirt                 x86_64     0.3.3-7.el5      installed         3.4 M
Removing for dependencies:
 libvirt-python          x86_64     0.3.3-7.el5      installed         230 k
 rhn-virtualization-host  noarch     1.0.1-55         installed         155 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       3 Package(s)         

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing   : libvirt-python               ######################### [1/3]
  Erasing   : rhn-virtualization-host      ######################### [2/3]
Stopping crond: [  OK  ]
Starting crond: [  OK  ]
  Erasing   : libvirt                      ######################### [3/3] 

Removed: libvirt.x86_64 0:0.3.3-7.el5
Dependency Removed: libvirt-python.x86_64 0:0.3.3-7.el5 rhn-virtualization-host.noarch 0:1.0.1-55
Complete!

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 7 comments… read them below or add one }

1 SSG 09.29.08 at 11:39 am

if i give the Command in Redhat Linux 5.1 means it shows

“Loading “rhnplugin” plugin
Loading “Security” plugin
Loading “installonlyn” plugin
This system is not regestered with RHN
RHN support will be disable
Setting up group process
Setting up repositories
No repositories available to set up
No group named virtualization exists
No packages to remove from groups”

it shows the above message, but if i run the command
“ifconfig”
it shows the following groups

eth0
lo
peth0
vifo.0
virbro
xenbro

how could i remove these groups except eth0 & lo?

2 Jane 11.19.08 at 7:36 pm

I got the same results as what you got when I ran, # yum groupremove “Virtualization”
My guess is that “Virtualization” was never used or actually created. This is what I did to uninstall virbr0.

# yum remove rhn-virtualization-host
# yum remove libvirt-python
# yum remove libvirt
# ifconfig

Everything should be gone except for eth0 & lo.

3 Frank 03.02.09 at 12:22 am

Jane,
You are an angel!!!

4 Bill 03.26.09 at 2:50 pm

This is for RHEL 5.3 32 bit.

I had run yum groupremove “Virtualization” with the same unhappy results as SSG
above. The virbr0 address was hurting my Director Server.

rpm -e –nodeps libvirt seems to work. Ifconfig shows eth0 and l0 only.

5 Emilliano 07.01.09 at 12:39 pm

I have Fedora 10 and i want to disable virbro.
yum groupremove “Virtualization” dont work.

I solved the problem with rpm -e -nodeps libvirt.

6 Jorge Andrade 08.14.09 at 7:06 pm

# yum groupremove “Virtualization” has worked on a CentOS 5.3 installation.

Thanks

7 jim 10.19.09 at 2:48 pm

I tried the above and it removed everything with the first command, but virbr0 is still there. Ran the others and it says the software is not installed. May be a reboot? Can’t do it yet as it’s a production computer.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All