CentOS 6.2 installation VirtualBox 4.3 tutorial

Source: Internet
Author: User
Tags gpg http request centos oracle vm virtualbox vm virtualbox

This article records how to install VirtualBox4.3 on a newly installed CentOS6.2 Linux system

1, change yum configuration
Python

The code is as follows Copy Code

[Root@itchenyi ~]# cd/etc/yum.repos.d/
[Root@itchenyi yum.repos.d]# wget Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
--2014-01-27 11:46:24--Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Resolving download.virtualbox.org ... 137.254.120.26
Connecting to download.virtualbox.org|137.254.120.26|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:256 [Text/plain]
Saving to: "Virtualbox.repo"

100%[======================================>] 256--.-k/s in 0s

2014-01-27 11:46:25 (29.4 MB/s)-"Virtualbox.repo" saved [256/256]

2, Virtualbox.repo the contents of the file, make sure GPGCHEC is enabled and verify the path to the GPG secret key:

The code is as follows Copy Code
[Root@itchenyi yum.repos.d]# Cat Virtualbox.repo
[VirtualBox]
Name=oracle linux/rhel/centos-$releasever/$basearch-virtualbox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
Enabled=1
Gpgcheck=1
Gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

3. This step is an optional step to verify the path of the GPG secret key

The code is as follows Copy Code

[Root@itchenyi yum.repos.d]# wget-q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc-o-| GPG--quiet--with-fingerprint
Pub 1024d/98ab5139 2010-05-18 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org> WWW.111CN. Net
Key fingerprint = 7b0f ab3a 13b9 0743 5925 d9c9 5442 2a4b 98AB 5139

Sub 2048g/281ddc4b 2010-05-18

In http://pgp.mit.edu search vitrualbox.org, check the display PGP fingerprint key ... The confirmation can match!

The code is as follows Copy Code

VirtualBox Check PGP Key

Search results for ' VirtualBox org '

Type Bits/keyid Date User ID

Pub 1024d/98ab5139 2010-05-18 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
fingerprint=7b0f ab3a 13b9 0743 5925 d9c9 5442 2a4b 98AB 5139

4, use Yum to review the package information before installation

The code is as follows Copy Code
[Root@itchenyi yum.repos.d]# Yum Info VirtualBox-4.3


Available Packages


name:virtualbox-4.3


Arch:x86_64


Version:4.3.6_91406_el6


Release:1


size:72 M


Repo:virtualbox


Summary:oracle VM VirtualBox


url:http://www.virtualbox.org/


License:gplv2


Description:virtualbox is a powerful PC virtualization solution allowing


: Your to run a wide range of PCs operating systems on your Linux


: System. This is includes Windows, Linux, FreeBSD, DOS, OpenBSD


: and others. VirtualBox comes with a broad feature set and


: Excellent performance, making it the premier virtualization


: Software solution on the market.

5. Start Installation VBox

The code is as follows Copy Code



[Root@itchenyi yum.repos.d]# Yum Install VirtualBox-4.3


Dependencies resolved





=============================================================================================================== ==========================


Package Arch Version Repository Size


=============================================================================================================== ==========================


Installing:


VirtualBox-4.3 x86_64 4.3.6_91406_el6-1 VirtualBox M.





Transaction Summary


=============================================================================================================== ==========================


Install 1 Package (s)





Total Download size:72 M


Installed size:147 M


Is this OK [y/n]: Y

You can also use wget to download to the local post installation, but I do not guarantee the availability of the download source

The code is as follows Copy Code






[Root@itchenyi downloads]# wget http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_ el6-1.x86_64.rpm





--2014-01-27 11:55:28--http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm


Resolving download.virtualbox.org ... 137.254.120.26


Connecting to download.virtualbox.org|137.254.120.26|:80 ... Connected.


HTTP request sent, awaiting response ... 302 Moved temporarily


location:http://dlc.sun.com.edgesuite.net/virtualbox/4.3.6/virtualbox-4.3-4.3.6_91406_el6-1.x86_64.rpm [ Following]


--2014-01-27 11:55:28--http://dlc.sun.com.edgesuite.net/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm


Resolving dlc.sun.com.edgesuite.net ... 58.27.124.146, 58.27.124.139


Connecting to dlc.sun.com.edgesuite.net|58.27.124.146|:80 ... Connected.


HTTP request sent, awaiting response ... OK


length:75914276 (72M) [Application/x-redhat-package-manager]


Saving to: "virtualbox-4.3-4.3.6_91406_el6-1.x86_64.rpm"





5% [====&gt;] 4,537,516 1110 k/s ETA 10m 31s





[Root@itchenyi downloads]# RPM-UVH virtualbox-4.3-4.3.6_91406_el6-1.x86_64.rpm


Warning:virtualbox-4.3-4.3.6_91406_el6-1.x86_64.rpm:header V4 dsa/sha1 Signature, key ID 98ab5139:nokey


Preparing ... ########################################### [100%]


1:virtualbox-4.3 ########################################### [100%]

6. Create VBox user Group

The code is as follows Copy Code
[Root@itchenyi downloads]#/usr/sbin/usermod-a-G vboxusers Itchenyi

7. Install kernel header file, etc...

The code is as follows Copy Code






[Root@itchenyi downloads]# yum install kernel-headers kernel-devel gcc





Dependencies resolved





=============================================================================================================== ==========================


Package Arch Version Repository Size


=============================================================================================================== ==========================


Installing:


GCC x86_64 4.4.7-4.el6 Base Ten M


Kernel-devel x86_64 2.6.32-220.el6 Updates 8.8 M


Installing for dependencies:


CLOOG-PPL x86_64 0.15.7-1.2.EL6 Base King K


CPP x86_64 4.4.7-4.EL6 Base 3.7 M


MPFR x86_64 2.4.1-6.EL6 Base 157 K


PPL x86_64 0.10.2-11.el6 Base 1.3 M


Updating for dependencies:


LIBGCC x86_64 4.4.7-4.EL6 Base K


Libgomp x86_64 4.4.7-4.EL6 Base 118 k





Transaction Summary


=============================================================================================================== ==========================


Install 6 Package (s)


Upgrade 2 Package (s)





Total Download size:24 M


Is this OK [y/n]: Y

8, confirm your kernel version

The code is as follows Copy Code


[Root@itchenyi downloads]# Uname-r
2.6.32-220.el6.x86_64


#请确保你上下得到的版本信息一致!

The code is as follows Copy Code

[Root@itchenyi downloads]# ls/usr/src/kernels/
2.6.32-220.el6.x86_64

9. Environment variable

The code is as follows Copy Code

[Root@itchenyi downloads]# kern_dir=/usr/src/kernels/2.6.32-220.el6.x86_64
[Root@itchenyi downloads]# Export Kern_dir

10, echo variable, make sure the information is correct

The code is as follows Copy Code

[Root@itchenyi downloads]# Echo $KERN _dir
/usr/src/kernels/2.6.32-220.el6.x86_64

11, start VirtualBox, complete the configuration

The code is as follows Copy Code
Www.111cn.net

[Root@itchenyi ~]# Service vboxdrv Setup
Stopping VirtualBox kernel modules [OK]
Uninstalling old VirtualBox dkms kernel modules [OK]
Trying to register the VirtualBox kernel modules using dkms[OK]
Starting VirtualBox kernel modules [OK]

12, the operation chart is as follows.

  code is as follows copy code

VirtualBox Running

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.