Centos6.2 install virtualbox

Source: Internet
Author: User
My centos version is: # cat/etc/issue: CentOSrelease6.2 (Final) 1. install the associated packageyuminstallkernel-headerskernel-develgccmake2. view the downloaded kernel code version ls/usr/src/kernels/

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.