Nested virtualization on Intel

nesting{width=”640” height=”426”}

Just because I needed it today, a reminder.

If you need to do nested virtualization on some Intel CPU:

# Configure kmod
cat /etc/modprobe.d/kvm.conf 
options kvm_intel nested=Y

# Unload kmod
rmmod kvm-intel && rmmod kvm

# Load kmod
modprobe kvm && modprobe kvm-intel

In virt-manager or alike, remember to copy the host cpu flags to the guest.

::: {#footer} [ October 8th, 2014 2:53pm ]{#timestamp} [reminder]{.tag} [fedora]{.tag} [kvm]{.tag} [intel]{.tag} [libvirt]{.tag} [test]{.tag} [automation]{.tag} :::