LLI Wiki — My Digital Knowledge Base

Remove the virbr0 and lxcbr0 interfaces (libvirt, LXC)

Disable libvirt and remove the virbr0 and lxcbr0 network bridges on RHEL/CentOS.

Installing libvirt or LXC creates network bridges (virbr0 for libvirt, lxcbr0 for LXC) even when they are not used. This page describes how to disable libvirt and remove these interfaces on RHEL/CentOS. Reference procedure: Red Hat solution 3385311.

Stop and disable libvirtd

RHEL/CentOS 5 and 6:

service libvirtd stop
chkconfig --list | grep libvirtd
chkconfig libvirtd off

RHEL/CentOS 7 and later:

systemctl stop libvirtd.service
systemctl status libvirtd.service
systemctl disable libvirtd.service

Remove the libvirt default network

If libvirt is not used and virbr0 must not exist:

ifconfig virbr0
sudo virsh net-list
sudo virsh net-destroy default
sudo virsh net-autostart default --disable
sudo virsh net-undefine default
systemctl disable libvirtd.service
ifconfig virbr0

Remove the bridge on a running machine

brctl show
ip link set virbr0 down
brctl delbr virbr0
brctl show

brctl is provided by the bridge-utils package.

Remove lxcbr0

In /etc/sysconfig/lxc, disable the LXC bridge:

USE_LXC_BRIDGE="false"

Then check and remove the bridge:

brctl show
brctl delbr lxcbr0
brctl show
Mastodon LLIMastodon SocialFosstodon