Cannot enable nested virtualization

Virtualization cannot be enabled within a ThinkAgile CP Cloud Controller instance's OS, even though Nested Virtualization is enabled in the instance's profile.

  • Nested virtualization can be enabled by turning on the VT-x flag in the ThinkAgile CP Cloud Controller user interface. However, only nested KVM hypervisors are supported.

  • Hyper-V or ESX hypervisors cannot be run within a ThinkAgile CP Cloud Controller instance.

To enable nested virtualization, follow these steps:

  1. Shut down all the instances on which you wish to run a hypervisor.
  2. Select the Nested Virtualization checkbox in the instance Profile page in ThinkAgile CP.
  3. Use SSH or open the hardware console to connect to each compute node with the username, manager and the password that you set when the hardware was registered.
  4. Execute the following command and re-enter the manager password to become root.

    sudo su

  5. Execute the following command:

    cat /sys/module/kvm_intel/parameters/nested

    If N is returned, proceed with the remaining steps. Otherwise, if Y is returned, no further actions need to be taken on that compute node.

  6. Reboot the compute node.
  7. Log back into the compute node and execute the following command a second time:

    cat /sys/module/kvm_intel/parameters/nested

    It should return Y.

  8. Start the instances.

You can now install and run hypervisors within the instances.