CentOS install Virtualbox

在CentOS 6.5 x64系统上装了个Virtualbox,这里记录下整个安装过程。

1、去官网下载Virtualbox及其扩展包,同时还要下载dkms,具体如下:

Virtualbox:https://www.virtualbox.org/wiki/Downloads

dkms:http://linux.dell.com/dkms/

[cason@casonchan Downloads]$ lltotal 84424
-rw-rw-r--. 1 cason cason 108241  Feb 2215:03 dkms-2.2.0.3-1.noarch.rpm-rw-rw-r--. 1 cason cason 10419965 Feb 2215:03 Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack-rw-rw-r--. 1 cason cason 75914276 Feb 2215:04 VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm[cason@casonchan Downloads]$ 

2、安装需要依赖到的lib库:

[cason@casonchan Virtualbox]$ sudoyuminstall qt qt-x11 gccgcc-c++ kernel-devel perl

3、安装dkms:

[cason@casonchan Virtualbox]$ sudo rpm -ivh dkms-2.2.0.3-1.noarch.rpm Preparing...                ########################################### [100%]   1:dkms                   ########################################### [100%][cason@casonchan Virtualbox]$ 

4、安装Virtualbox:

注意:在安装之前需要我们事先安装好 libSDL-1.2.so.0()(64bit) 库,要不然会报如下错误:

error: Failed dependencies:    libSDL-1.2.so.0()(64bit) is needed by VirtualBox-4.3-4.3.6_91406_el6-1.x86_64

这个库可以去CentOS官网下载与你系统相对应的版本,比如我找的地址是:http://mirrors.163.com/centos/6.5/os/x86_64/Packages/,下载的版本是 SDL-1.2.14-3.el6.x86_64.rpm

下面开始安装:

复制代码
[cason@casonchan Virtualbox]$ sudo rpm -ivh SDL-1.2.14-3.el6.x86_64.rpm [sudo] password for cason: Preparing...                ########################################### [100%]   1:SDL                    ########################################### [100%][cason@casonchan Virtualbox]$ sudo rpm -ivh 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: NOKEYPreparing...                ########################################### [100%]   1:VirtualBox-4.3         ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messagesemitted during module compilation will be logged to /var/log/vbox-install.log.

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  ][cason@casonchan Virtualbox]$ 
复制代码

 5、将当前用户加入到vboxusers组内:

[cason@casonchan Virtualbox]$ sudo gpasswd -a cason vboxusersAdding user cason to group vboxusers[cason@casonchan Virtualbox]$ 

6、安装扩展包:

至此,Virtualbox安装已经大功告成。

http://www.cnblogs.com/casonchan/p/3560877.html