aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/node.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-10-15 09:56:39 -0700
committerVictor Morales <victor.morales@intel.com>2018-10-15 09:56:39 -0700
commit5964843258875413db01f5a25daf011d15dbdbe4 (patch)
tree76131c0397e0a2dbb5349ce8e8d509067c8b1ee1 /vagrant/node.sh
parentafe7621e5e9289464e9e9e48eef231179ba23d69 (diff)
Enable vhost_net module in nodes.
This change enables the vhost_net driver which emulates the virtio-net network card in the host kernel. Change-Id: Ibdcb6f0c1d196a2d64622ecc81acc89e56ffef62 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'vagrant/node.sh')
-rwxr-xr-xvagrant/node.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/vagrant/node.sh b/vagrant/node.sh
index 3bf704b1..a51be19b 100755
--- a/vagrant/node.sh
+++ b/vagrant/node.sh
@@ -10,7 +10,6 @@
set -o nounset
set -o pipefail
-set -o xtrace
# usage() - Prints the usage of the program
function usage {
@@ -62,6 +61,7 @@ if [[ $vendor_id == *GenuineIntel* ]]; then
rmmod kvm-intel
echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf
modprobe kvm-intel
+ echo kvm-intel >> /etc/modules
fi
else
kvm_ok=$(cat /sys/module/kvm_amd/parameters/nested)
@@ -70,8 +70,11 @@ else
rmmod kvm-amd
sh -c "echo 'options kvm-amd nested=1' >> /etc/modprobe.d/dist.conf"
modprobe kvm-amd
+ echo kvm-amd >> /etc/modules
fi
fi
+modprobe vhost_net
+echo vhost_net >> /etc/modules
source /etc/os-release || source /usr/lib/os-release
case ${ID,,} in
*suse)