Skip to content

Did you know?

One file tells you if KVM nested virtualization is enabled.

Nested virtualization widens the guest-to-host attack surface. Turn it off if no VM needs to run its own VMs.

Explained

KVM can run virtual machines inside virtual machines (“nested virtualization”). The kvm_amd and kvm_intel modules show whether it is on in a single file: cat /sys/module/kvm_amd/parameters/nested on AMD hosts, or /sys/module/kvm_intel/parameters/nested on Intel. 1 or Y means enabled, 0 or N means disabled.

It matters for security. Nested virtualization gives guests access to more complex hypervisor code, and bugs there can break the wall between a VM and its host. In November 2026, CVE-2026-99312 let root inside a guest read host memory, but only on AMD hosts with nested virtualization enabled.

If you don’t need VMs inside your VMs, turn it off. Stop all guests, then run sudo modprobe -r kvm_amd && sudo modprobe kvm_amd nested=0, and make it permanent with a file in /etc/modprobe.d/ containing options kvm_amd nested=0.

Learn more

← All tech tips · Suggest a fix

Back to top