What is the virbr0 interface used for?
Solution 1:
The virbr0
, or "Virtual Bridge 0" interface is used for NAT (Network Address Translation). It is provided by the libvirt
library, and virtual environments sometimes use it to connect to the outside network.
It was likely bundles with a VM software you installed at some point. If you'd like to remove it, and you're sure nothing else depends on it, you can use the following command:
sudo brctl delbr virbr0
(from UbuntuForums)
It is unlikely that the virtual bridge is affecting your guests' ability to connect to the Internet, though.
Solution 2:
If you are unable to connect to the internet due to "vibr0" interface then follow the commands below
virsh net-destroy default
virsh net-undefine default
service libvirtd restart
ifconfig
Solution 3:
For changing the ip address of virbr0 under ubuntu 12.04
sudo cp /var/lib/libvirt/network/default.xml /tmp/default.xml sudo vi /tmp/default.xml # edit the ip address sudo virsh net-destroy default sudo virsh net-undefine default sudo virsh net-define /tmp/default.xml sudo virsh net-start default
You could refer to: http://wiki.libvirt.org/page/Networking
Solution 4:
I am using virtualbox 5.2.28
on ubuntu-16.04
and the config file is in /var/lib/libvirt/dnsmasq/default.conf
maybe you can always check the conf file location by checking the cmdline of the dnsmasq
process.
To check the process number, port, and name.
sudo netstat -plant
To check the cmdline and find from where it loads the configuration file use
cat /proc/<PID>/cmdline