您的位置:首页 > 运维架构 > Linux

Install VirtualBox 4.1.4 on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6

2011-10-10 23:02 411 查看
http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/

InstallVirtualBox4.1.4onFedora15/14,CentOS/RedHat(RHEL)5.6/6

BYJR–PUBLISHED:FEBRUARY18,2010–LASTUPDATED:OCTOBER7,2011POSTEDIN:CENTOS,DESKTOPGUIDES/HOWTOS,FEATURED,FEDORA,LINUX,MOSTPOPULAR,PROGRAMS,REDHAT(RHEL)Doyoulikethis?OracleVirtualBoxisapowerfulx86andAMD64/Intel64virtualizationproductforenterpriseaswellashomeuse.VirtualBoxisageneral-purposefullvirtualizerforx86hardware.Targetedatserver,desktopandembeddeduse,itisnowtheonlyprofessional-qualityvirtualizationsolutionthatisalsoOpenSourceSoftware.VirtualBoxsupportsalargenumberofguestoperatingsystems:Windows3.xWindowsNT4.0Windows2000WindowsXPWindowsServer2003WindowsVistaWindows7DOSLinux(2.4and2.6)SolarisOpenSolarisOpenBSDThisguideshowshowtoinstallVirtualBox4.1(currently4.1.4)onFedora15,Fedora14,Fedora13,Fedora12,CentOS5.6,RedHat(RHEL)5.6andRedHat(RHEL)6.ThishowtousesVirtualBoxyumrepositories.

1.ChangetorootUser

su-
##OR##
sudo-i

2.InstallFedoraorRHELRepoFiles

cd/etc/yum.repos.d/
##Fedora15/14/13/12andRHEL6users
wgethttp://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
##CentOS5.6andRHEL5.6users
wgethttp://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

3.Updatelatestpackages

yumupdate
Note:Rebootifyougotkernelupdate.

4.Installfollowingdependencypackages

yuminstallgcckernel-develkernel-headers
##PAEkernelusersinstall##
yuminstallgcckernel-PAE-develkernel-headers

5.InstallVirtualBoxLatestVersion(current4.1.4)

yuminstallVirtualBox-4.1
Note:ThiscommandcreateautomaticallyvboxusersgroupandVirtualBoxusermustbememberofthatgroup.Thiscommandalsobuildneededkernelmodules.

6.AddVirtualBoxUsertovboxusersGroup

usermod-a-Gvboxusersuser_name

7.StartVirtualBox

Uselauncherorsimply:
VirtualBox

Troubleshooting

IfyouhaveproblemswithKERN_DIRparameteroryourkerneldirectoryisnotautomaticallydetectedthensetKERN_DIRenvironmentvariablemanually,usingfollowingmethod:
##CurrentrunningkernelonFedora##
KERN_DIR=/usr/src/kernels/`uname-r`
##CurrentrunningkernelonCentOSandRedHat(RHEL)##
KERN_DIR=/usr/src/kernels/`uname-r`-`uname-m`
##Fedoraexample##
KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686
##CentOSandRedHat(RHEL)example##
KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64
##ExportKERN_DIR##
exportKERN_DIR

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: