Installing and configuring libvirt
In this recipe, we are going to install libvirt from packages provided by the Linux distribution of choice and see what configuration files and options are available for configuring it. As with any other production-ready tools, we recommend using packages for your production environment for ease and consistency of deployment; however, compiling the latest version from the source is also an option if the packages from your Linux vendor are older.
Getting ready
Depending on your Linux distribution, the package name and installation commands will differ. You can use your system's package manager, such as apt
, dnf
, or yum
to search for any packages containing the libvirt
string and get familiar with what is available for your particular Linux variant. The source code can be downloaded from the official libvirt project website at http://www.qemu-project.org/download/#source.
How to do it...
To install libvirt from packages and source follow the following steps:
- On...