3 Manage the Libvirt Daemons

The following information describes how to start, enable, and check the status of the libvirt daemons on an Oracle Linux 10 KVM host.

Ensure that you have the following before proceeding:

Follow these steps to start and enable the libvirt daemons:

  1. To start the libvirt daemons with full virtualization functionality, run the following command:
    for drv in qemu network nodedev nwfilter secret storage interface; 
      do
       sudo systemctl enable virt${drv}d.service;
       sudo systemctl enable virt${drv}d{,-ro,-admin}.socket;
       sudo systemctl start virt${drv}d{,-ro,-admin}.socket; 
      done

    You don't need to start the service for each daemon, as the service is automatically started when the first socket is established.

    Note:

    For legacy systems, you can use the libvirtd socket to manage remote virtual guest connections.
  2. Optional: Enable the virtproxyd daemon to let remote hosts connect to guests.
    If connections from remote hosts are needed, the virtproxyd daemon must be enabled and started:
    sudo systemctl enable virtproxyd.service
    sudo systemctl enable virtproxyd-tls.socket
    sudo systemctl start virtproxyd-tls.socket
  3. To check the status of the libvirt daemons, run the following command:
    sudo systemctl list-units --type=socket virt*

    The output shows all enabled units and their current status.