This article covers how to troubleshoot and fix No guest machines present libvirtd for our customers.
The virsh program is the main interface for managing virsh guest domains. The program can be used to create, pause, and shutdown domains.
It can also be used to list current domains. Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).
The libvirt daemon is successfully started, but no guest virtual machines appear to be present.
There are various possible causes of this problem.
Performing these tests will help to determine the cause of this situation:
1. Verify KVM kernel modules
Verify that KVM kernel modules are inserted in the kernel:
$ lsmod | grep kvm
If you are using an AMD machine, verify the kvm_amd kernel modules are inserted in the kernel instead, using the similar command lsmod | grep kvm_amd in the root shell.
If the modules are not present, insert them using the modprobe <modulename> command.
Note: Although it is uncommon, KVM virtualization support may be compiled into the kernel. In this case, modules are not needed.
2. Verify virtualization extensions
Verify that virtualization extensions are supported and enabled on the host:
# egrep "(vmx|svm)" /proc/cpuinfo
Enable virtualization extensions in your hardware's firmware configuration within the BIOS setup.
3. Verify client URI configuration
Verify that the URI of the client is configured as desired:
# virsh uri
How to fix No guest machines present #libvirtd #error:
After performing these tests, use the following command to view a list of guest virtual machines:
# virsh list --all