From: Victor Morales Date: Mon, 1 Oct 2018 15:49:07 +0000 (-0700) Subject: Enable Nested Virtualization in Nodes X-Git-Tag: 3.0.0-ONAP~28^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8f0bc42ea9614d3be4ee823bb187f5dcc2ef2d8b;p=multicloud%2Fk8s.git Enable Nested Virtualization in Nodes 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 Issue-ID: MULTICLOUD-301 --- diff --git a/vagrant/node.sh b/vagrant/node.sh index e6702457..5edc3a3c 100755 --- a/vagrant/node.sh +++ b/vagrant/node.sh @@ -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; }