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
set -o nounset
set -o pipefail
-set -o xtrace
# usage() - Prints the usage of the program
function usage {
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)
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)