Forked from paulmaunders/gist:3e2cbe02c07b6393f7ef0781eed9f97b
Last active
July 21, 2017 18:34
-
-
Save centminmod/a59b40beaa20e9c8048367049ec0eb3d to your computer and use it in GitHub Desktop.
Installing VirtualBox and Vagrant on CentOS 7
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
# Some notes from installing VirtualBox on CentOS 7. | |
# These exact steps haven't been tested, as I ran them in a different order when manually installing. | |
# Install dependencies | |
yum -y install gcc make patch dkms qt libgomp epel-release | |
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel | |
# Install VirtualBox | |
cd /etc/yum.repos.d | |
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo | |
yum install VirtualBox-5.1 | |
# Check that you have the kernel sources downloaded for your running kernel version (if they don't match you might need to yum update and reboot) | |
ls /usr/src/kernels/ | |
uname -r | |
# Build the VirtualBox kernel module | |
export KERN_DIR=/usr/src/kernels/$(uname -r) | |
/sbin/rcvboxdrv setup | |
# Install Vagrant | |
yum -y install https://releases.hashicorp.com/vagrant/1.9.7/vagrant_1.9.7_x86_64.rpm | |
# Test Vagrant | |
mkdir ~/test-vagrant | |
cd ~/test-vagrant | |
vagrant init ubuntu/xenial64 | |
vagrant init centos/7 | |
vagrant up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment