Enable Nested Virtualization in Nodes 41/69641/1
authorVictor Morales <victor.morales@intel.com>
Mon, 1 Oct 2018 15:49:07 +0000 (08:49 -0700)
committerVictor Morales <victor.morales@intel.com>
Mon, 1 Oct 2018 15:49:07 +0000 (08:49 -0700)
Compute nodes require to enable Nested-Virtualization to smooth the
provisioning of Virtual Machines using Virtlet Kubernetes Add.
This change includes the instructions to enable it in the Nodes.

Change-Id: I61d13ebbdbc0abc208042dde56d4d6b498570955
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

vagrant/node.sh

index e670245..5edc3a3 100755 (executable)
@@ -53,3 +53,7 @@ if [[ -n "${dict_volumes+x}" ]]; then
         mount_external_partition ${kv%=*} ${kv#*=}
     done
 fi
+rmmod kvm-intel
+echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf
+modprobe kvm-intel
+grep -q -i ^Y$ /sys/module/kvm_intel/parameters/nested || { echo "Nested virtualization is not enabled"; exit 1; }