Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install VirtualBox on CentOS 6

Install VirtualBox on CentOS 6.0(64bit)

see also:

Troubleshooting:

Prerequisite

# Install dependency libs
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo sh -c "sed -i -e 's/^#baseurl/baseurl/g' /etc/yum.repos.d/epel.repo && sed -i -e 's/^mirror/#mirror/g' /etc/yum.repos.d/epel.repo"
sudo yum install gcc make patch  dkms qt libgomp
sudo yum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel

# Prepare to install virtualbox
wget https://www.virtualbox.org/download/oracle_vbox.asc
sudo rpm --import oracle_vbox.asc
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
sudo chown root:root virtualbox.repo
sudo mv virtualbox.repo /etc/yum.repo.d/

# Install latest virtualbox
sudo yum install VirtualBox-4.3 -y

# Build driver (Kernel source path is depended on your envrionment)
sudo sh -c "export KERN_DIR=/usr/src/kernels/2.6.32-504.16.2.el6.x86_64/; service vboxdrv setup"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.