Centos 6.5 Install VirtualBox 5.1.4

下载VirtualBox安装包

wgethttp://101.96.8.165/download.virtualbox.org/virtualbox/5.1.4/VirtualBox-5.1-5.1.4_110228_el6-1.x86_64.rpm

下载VirtualBox扩展包

wgethttp://download.virtualbox.org/virtualbox/5.1.4/Oracle_VM_VirtualBox_Extension_Pack-5.1.4-110228.vbox-extpack

安装开发环境及依赖包 

yum-yinstallkernel-develkernel-headerskernel-devel                       

yum-ygroupinstall"DevelopmentTools"

yum-yinstallgccmakepatchdkmslibgomqtqt-x11

yum-yinstallfontforgebinutilsglibc-headersglibc-devel

yum-yinstallSDL

初始化环境变量                            

exportKERN_DIR=/usr/src/kernels/2.6.32-642.4.2.el6.x86_64/ 

安装VirtualBox

rpm-ivhVirtualBox-5.1-5.1.4_110228_el6-1.x86_64.rpm

更新内核为 2.6.32-431.el6.x86_64 我系统内核为2.6.32-642.13.1.el6.x86_64 必须返回到431.方能安装成功

cd/etc/yum.repos.d

mvOracle-Base.repoOracle-Base.repo.disabled

wgethttp://public-yum.oracle.com/public-yum-ol6.repo

vipublic-yum-ol6.repo

do:1,$s/gpgcheck=1/gpgcheck=0/

wq

yum-yinstallkernel-devel-2.6.32-431.el6.x86_64

[[email protected]]#cd/usr/src/kernels/

[root@fuqitkernels]#ll

总用量8

drwxr-xr-x.22rootroot40962月1314:572.6.32-431.el6.x86_64

drwxr-xr-x.22rootroot40962月1313:332.6.32-642.13.1.el6.x86_64

重启内核模块

servicevboxdrvsetup

打开图形

virtualbox或者virtualbox&

相关推荐