Install virtualbox in centos

Source: Internet
Author: User

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 KernelCodeVersion

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.