Affected versions: Ubuntu 24.04 LTS

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

VM workloads run slowly because QEMU falls back to software emulation.

Environment & Reproduction

Ubuntu 24.04 LTS guest running inside another hypervisor without nested virtualization enabled.

Root Cause Analysis

CPU virtualization flags are masked or kvm_intel and kvm_amd modules are unavailable.

Quick Triage

Check egrep -c ‘(vmx|svm)’ /proc/cpuinfo and run kvm-ok.

Step-by-Step Diagnosis

Inspect lsmod, dmesg for KVM initialization, and host hypervisor nested virtualization settings.

Illustrative mockup for ubuntu-24-04-lts — kvm_not_available_diag
kvm-ok indicates hardware acceleration not available — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Enable nested virtualization on the parent host, load correct KVM modules, and reboot guest.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for ubuntu-24-04-lts — kvm_not_available_fixed
Nested virtualization enabled and KVM modules loaded — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Use bare metal for performance-sensitive workloads when nested virtualization cannot be enabled.

Verification & Acceptance Criteria

kvm-ok reports acceleration usable and VM launch performance is materially improved.

Rollback Plan

Disable nested mode if host instability appears and revert affected virtual machine settings.

Prevention & Hardening

Include virtualization capability checks in provisioning scripts before installing libvirt stack.

libvirt permission issues and missing bridge network setup can also block VM operation.

Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.

View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Ubuntu KVM and nested virtualization deployment references.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.