Skip to content

Nested installation in KVM

Check the nested virtualization option in your host operating system:

  • Intel processors: cat /sys/module/kvm_intel/parameters/nested
  • AMD processors: cat /sys/module/kvm_amd/parameters/nested

The output should show 1 or Y if nested virtualization is enabled.

If it is not active, enable nested virtualization on your host operating system.

Nested virtualization on Intel processors

Live configuration

  1. Stop all virtual machines.
  2. Remove the kvm_intel module.
    modprobe -r kvm_intel
    
  3. Load the module again with the nested option enabled.
    modprobe kvm_intel nested=1
    

Permanent configuration

Create the file /etc/modprobe.d/kvm.conf with this content:

options kvm_intel nested=1

Nested virtualization on AMD processors

Live configuration

  1. Stop all virtual machines.
  2. Remove the kvm_amd module.
    modprobe -r kvm_amd
    
  3. Load the module again with the nested option enabled.
    modprobe kvm_amd nested=1
    

Permanent configuration

Create the file /etc/modprobe.d/kvm.conf with this content:

options kvm_amd nested=1