3 Manage the Libvirt Daemons

The following information describes how to start, enable, and check the status of the libvirt daemons.

What Do You Need?

Steps

Follow these steps to start and enable the libvirt daemons:

  1. To start the libvirt daemons with full virtualization functionality, run:
    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, the libvirtd socket is available for use to manage remote virtual guest connections.
    1. 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
  2. To check the status of the libvirt daemons, type:
    sudo systemctl list-units --type=socket virt*

    The output identifies all enabled units and their current status.