How To Install libvirt-daemon on CentOS 8

libvirt-daemon is Server side daemon and supporting files for libvirt library

Introduction

In this tutorial we learn how to install libvirt-daemon on CentOS 8.

What is libvirt-daemon

Server side daemon required to manage the virtualization capabilities of recent versions of Linux. Requires a hypervisor specific sub-RPM for specific drivers.

We can use yum or dnf to install libvirt-daemon on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libvirt-daemon.

Install libvirt-daemon on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install libvirt-daemon using dnf by running the following command:

sudo dnf -y install libvirt-daemon

Install libvirt-daemon on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install libvirt-daemon using yum by running the following command:

sudo yum -y install libvirt-daemon

How To Uninstall libvirt-daemon on CentOS 8

To uninstall only the libvirt-daemon package we can use the following command:

sudo dnf remove libvirt-daemon

libvirt-daemon Package Contents on CentOS 8

/etc/libvirt
/etc/libvirt/libvirtd.conf
/etc/libvirt/virtlockd.conf
/etc/libvirt/virtlogd.conf
/etc/libvirt/virtproxyd.conf
/etc/logrotate.d/libvirtd
/etc/sasl2/libvirt.conf
/etc/sysconfig/libvirtd
/etc/sysconfig/virtlockd
/etc/sysconfig/virtlogd
/run/libvirt
/usr/lib/.build-id
/usr/lib/.build-id/43
/usr/lib/.build-id/43/5712cc1384d3c26ab26979f7cbb247ec765a35
/usr/lib/.build-id/62
/usr/lib/.build-id/62/edd0216cbc700f73044e5f53db764b69565e3a
/usr/lib/.build-id/89
/usr/lib/.build-id/89/07250209e5b1b0f88f6df9fb3d45c49922411a
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/92e6c551adf4a571e2f47171c1cb3966b332bb
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/7f7d8097c07590d87d6965c01424d05dbdd098
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/4c44901ff54ba7ded92bd02c17448f860b8d2d
/usr/lib/sysctl.d/60-libvirtd.conf
/usr/lib/systemd/system/libvirtd-admin.socket
/usr/lib/systemd/system/libvirtd-ro.socket
/usr/lib/systemd/system/libvirtd-tcp.socket
/usr/lib/systemd/system/libvirtd-tls.socket
/usr/lib/systemd/system/libvirtd.service
/usr/lib/systemd/system/libvirtd.socket
/usr/lib/systemd/system/virt-guest-shutdown.target
/usr/lib/systemd/system/virtlockd-admin.socket
/usr/lib/systemd/system/virtlockd.service
/usr/lib/systemd/system/virtlockd.socket
/usr/lib/systemd/system/virtlogd-admin.socket
/usr/lib/systemd/system/virtlogd.service
/usr/lib/systemd/system/virtlogd.socket
/usr/lib/systemd/system/virtproxyd-admin.socket
/usr/lib/systemd/system/virtproxyd-ro.socket
/usr/lib/systemd/system/virtproxyd-tcp.socket
/usr/lib/systemd/system/virtproxyd-tls.socket
/usr/lib/systemd/system/virtproxyd.service
/usr/lib/systemd/system/virtproxyd.socket
/usr/lib64/libvirt
/usr/lib64/libvirt/connection-driver
/usr/lib64/libvirt/lock-driver
/usr/lib64/libvirt/lock-driver/lockd.so
/usr/libexec/libvirt_iohelper
/usr/sbin/libvirtd
/usr/sbin/virtlockd
/usr/sbin/virtlogd
/usr/sbin/virtproxyd
/usr/share/augeas/lenses/libvirt_lockd.aug
/usr/share/augeas/lenses/libvirtd.aug
/usr/share/augeas/lenses/tests/test_libvirt_lockd.aug
/usr/share/augeas/lenses/tests/test_libvirtd.aug
/usr/share/augeas/lenses/tests/test_virtlockd.aug
/usr/share/augeas/lenses/tests/test_virtlogd.aug
/usr/share/augeas/lenses/tests/test_virtproxyd.aug
/usr/share/augeas/lenses/virtlockd.aug
/usr/share/augeas/lenses/virtlogd.aug
/usr/share/augeas/lenses/virtproxyd.aug
/usr/share/libvirt
/usr/share/man/man7/virkeycode-atset1.7.gz
/usr/share/man/man7/virkeycode-atset2.7.gz
/usr/share/man/man7/virkeycode-atset3.7.gz
/usr/share/man/man7/virkeycode-linux.7.gz
/usr/share/man/man7/virkeycode-osx.7.gz
/usr/share/man/man7/virkeycode-qnum.7.gz
/usr/share/man/man7/virkeycode-usb.7.gz
/usr/share/man/man7/virkeycode-win32.7.gz
/usr/share/man/man7/virkeycode-xtkbd.7.gz
/usr/share/man/man7/virkeyname-linux.7.gz
/usr/share/man/man7/virkeyname-osx.7.gz
/usr/share/man/man7/virkeyname-win32.7.gz
/usr/share/man/man8/libvirtd.8.gz
/usr/share/man/man8/virtlockd.8.gz
/usr/share/man/man8/virtlogd.8.gz
/usr/share/polkit-1/actions/org.libvirt.api.policy
/usr/share/polkit-1/actions/org.libvirt.unix.policy
/usr/share/polkit-1/rules.d/50-libvirt.rules
/var/cache/libvirt
/var/lib/libvirt/boot
/var/lib/libvirt/filesystems
/var/lib/libvirt/images
/var/log/libvirt

References

Summary

In this tutorial we learn how to install libvirt-daemon on CentOS 8 using yum and dnf.