This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# swap virt modules for ubuntu 14 LTS | |
VBOX_SUBMODS="vboxnetadp vboxnetflt vboxpci" | |
VBOX_MOD_DIR="/var/lib/dkms/virtualbox/$(vboxmanage --version | tail -n 1 | awk -F'_' '{print $1}')/build" | |
KVM_MOD_CPU=$([[ $(lscpu | grep -ic 'intel') -gt 0 ]] && echo "intel" || echo "amd") | |
KVM_MOD_DIR="/lib/modules/$(uname -r)/kernel/arch/x86/kvm" | |
VBOX_ON=$(sudo /sbin/lsmod | grep -c vbox) |
NewerOlder