Checks that the system can host KVM virtual machines, estimates how many VMs can get their own display, keyboard, and mouse, and measures how fast a QEMU/KVM VM reboots.
Type 1: generic suite. ESQ checks the system directly, and the profile selects the checks.
Key metric
Compatibility: kvm_dev_accessible (true/false), or vt_d_enabled and nested_virt_enabled when only those checks run. Capacity: peripheral_vm_capacity (vms). Reboot: avg_reboot_time (seconds).
Devices
Host system (CPU, IOMMU, connected displays and USB input devices)
Test
What it verifies
test_kvm_compatibility
VT-x CPU flags, VT-d/IOMMU, kvm and kvm_intel modules, VFIO modules and devices, nested virtualization, and access to /dev/kvm. Collects data only. The test always passes.
test_kvm_vm_capacity
Number of VMs that can each get one display, one keyboard, and one mouse by passthrough. It is the smaller of the display count and keyboard/mouse pairs, and 0 without IOMMU groups. Collects data only. Qualification profiles set a KPI on it.
test_kvm_qemu_reboot
One QEMU/KVM VM is created, booted, rebooted reboot_count times, and removed. Fails if any step fails.
Compatibility: read /proc/cpuinfo, the DMAR table and IOMMU groups, lsmod, the kvm_intel nested parameter, and /dev/kvm for each enabled check, and save the details under esq_data/data/suites/virtualization/kvm/results/<test_id>.
Capacity: count IOMMU groups, connected displays, and keyboard/mouse pairs (pairs on one USB hub first), and attach a topology diagram and lsusb -t.
Reboot: download guest_image_url (or create a blank qcow2 disk), seed an SSH key with cloud-init, and start a headless VM with the chosen firmware.
Reboot: wait for the guest with guest_ready_probe, optionally read /etc/os-release over SSH, then reboot the VM and time each cycle until the guest is ready again. Image preparation is not part of the reboot times.