summaryrefslogtreecommitdiffstats
path: root/vagrant/node.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-10-03 15:07:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-03 15:07:16 +0000
commit373ab2024543a1d3c0d025715e80c3755995d6b5 (patch)
treefc38d6d1ba7c7caf8f9d9faeb62274c9b16d8c02 /vagrant/node.sh
parent3d18e1efb262fb6619f139ac640dac795dcf0d54 (diff)
parent8f0bc42ea9614d3be4ee823bb187f5dcc2ef2d8b (diff)
Merge "Enable Nested Virtualization in Nodes"
Diffstat (limited to 'vagrant/node.sh')
-rwxr-xr-xvagrant/node.sh4
1 files changed, 4 insertions, 0 deletions
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; }