Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kurtis318/ae9d840c732ccdaf2601af3c7f9e2a34 to your computer and use it in GitHub Desktop.

Select an option

Save kurtis318/ae9d840c732ccdaf2601af3c7f9e2a34 to your computer and use it in GitHub Desktop.
How-to get rid of virbr0 and or virbr1 in KVM guests
I have installed some RHEL 7.4 that were custom built by someone. They were intended for a bare-metal OS so they
have full virtualization enabled. This means libvirtd is automatically started and there are virbr0 and sometimes virbr1
bridges enabled. This usually causes the KVM guest to not have any access to any network via NAT because the bridges
are trying to route all traffic.
Here is a website I found that I found useful:
https://www.cyberciti.biz/faq/linux-kvm-disable-virbr0-nat-interface/
The following commands will probably work to disable the two bridged networks.
# virsh net-destroy default
# virsh net-undefine default
# service libvirtd restart
# ifconfig
I think a better way is to remove the rpms for libvirtd or just do the following (my solution for now):
# systemctl disable libvirtd
# systemctl stop libvritd
After a reboot, virbr0 and virbr1 should be gone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment