Skip to content

Instantly share code, notes, and snippets.

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

Install VirtualBox on CentOS 6.0(64bit)

see also:



# Install dependency libs
rpm -Uvh
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
sudo rpm --import oracle_vbox.asc
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.