Centos6.2 install virtualbox
My centos version is:
# Cat/etc/issue:
CentOS release 6.2 (Final)
1. Install the associated package
Yum install kernel-headers kernel-devel gcc make
2. view the downloaded kernel code version.
Ls/usr/src/kernels/
2.6.32-279.14.1.el6.i686
3. view the kernel version of the local machine.
Uname-r
2.6.32-220.2.1.el6.i686
4. The above two versions must be consistent, otherwise there will be problems. yum install kernel-headers should install the latest version. Use the following command to upgrade the kernel of the local machine to the latest version:
Yum upgrade kernel
After the kernel is upgraded, reboot and view the Local Kernel again:
Uname-r
2.6.32-279.14.1.el6.i686
5. Start to install vb
[Root @ Linux] # cd/etc/yum. repos. d/
[Root @ Linux] # wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
[Root @ Linux] # yum install VirtualBox-4.2
6. Assign the user to the vb Group
/Usr/sbin/usermod-a-G vboxusers root
7. Start virtualbox
[Root @ Linux] # virtualbox