O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

When we first installed and started the libvirt daemon, a few things happened automatically:

  • A new Linux bridge was created with the name and IP address defined in the /etc/libvirt/qemu/networks/default.xml configuration file
  • The dnsmasq service was started with a configuration specified in the /var/lib/libvirt/dnsmasq/default.conf file

Let's examine the default libvirt bridge configuration:

root@kvm:~# cat /etc/libvirt/qemu/networks/default.xml<network> <name>default</name> <bridge name="virbr0"/> <forward/> <ip address="192.168.122.1" netmask="255.255.255.0">   <dhcp>     <range start="192.168.122.2" end="192.168.122.254"/>   </dhcp> </ip></network>root@kvm:~#

This is the default network that libvirt created for us, specifying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required