CentOS Installation VirtualBox

Source: Internet
Author: User
Tags centos

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 this machine

Uname-r
2.6.32-220.2.1.el6.i686


4. The above 2 versions must be consistent, otherwise there will be a problem, yum install kernel-headers installed should be the latest version, use the following command to upgrade the native kernel to the current version:

Yum Upgrade kernel

After kernel upgrade reboot, check the native kernel again:

Uname-r
2.6.32-279.14.1.el6.i686


5. Start the installation of 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. Assigning a user to a 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.