CentOS x64安装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]$ ll total 84424 -rw-rw-r--. 1 cason cason 108241 Feb 22 15:03 dkms-2.2.0.3-1.noarch.rpm -rw-rw-r--. 1 cason cason 10419965 Feb 22 15:03 Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack -rw-rw-r--. 1 cason cason 75914276 Feb 22 15:04 VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm [cason@casonchan Downloads]$
2、安装需要依赖到的lib库:
[cason@casonchan Virtualbox]$ sudo yum install qt qt-x11 gcc gcc-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: NOKEY
Preparing... ########################################### [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. Messages
emitted 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 vboxusers Adding user cason to group vboxusers [cason@casonchan Virtualbox]$
6、安装扩展包:
至此,Virtualbox安装已经大功告成。
-------------------------
No pains, no gains
posted on 2014-02-22 16:19 CasonChan 阅读(3463) 评论(0) 编辑 收藏 举报