CentOS6.3安装VBoxAdditions
  • CentOS6.3安装VBoxAdditions CentOS6.3是安装在VirtualBox虚拟机上,安装好以后最好再将VBoxAdditions增强功能装上,
    主要目的是能够在虚拟机和宿主机之间能够共享文件。  www.2cto.com  1. 更新内核。CentOS 6.3对应的kernel默认为2.6.32-279.el6.i686: # uname -r2.6.32-279.el6.i686安装增强功能需要kernel-devel包,必须保证kernel-devel和kernel版本的一致。查看软件源中
    kernel-devel的版本: ]# yum info kernel-develLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.comAvailable PackagesName        : kernel-develArch        : i686Version     : 2.6.32Release     : 279.19.1.el6Size        : 7.6 MRepo        : updatesSummary     : Development package for building kernel modules to match the            : kernelURL         : http://www.kernel.org/License     : GPLv2Description : This package provides kernel headers and makefiles sufficient to            : build modules against the kernel package. 当前的kernel-devel版本是2.6.32-279.19.1.e16。因此,必须升级kernel: # yum update kernel升级完后必须重启系统,新的kernel才能被使用。  www.2cto.com   2. 安装kernel-devel和gcc。 # yum install kernel-devel gcc gcc-c++ 3. 安装增强功能。进入增强功能光盘根目录,执行Linux下的安装命令: # ./VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 4.2.4 Guest Additions for Linux..........VirtualBox Guest Additions installerRemoving installed version 4.2.4 of VirtualBox Guest Additions...Removing existing VirtualBox non-DKMS kernel modules[确定]Building the VirtualBox Guest Additions kernel modulesBuilding the main Guest Additions module[确定]Building the shared folder support module[确定]Building the OpenGL support module[确定]Doing non-kernel setup of the Guest Additions[确定]Starting the VirtualBox Guest Additions [确定]Installing the Window System driversInstalling X.Org Server 1.10 modules[确定]Setting up the Window System to use the Guest Additions[确定]You may need to restart the hal service and the Window System (or just restartthe guest system) to enable the Guest Additions. Installing graphics libraries and desktop services components[确定] 安装增强功能需要kernel-devel包,必须保证kernel-devel和kernel版本的一致。查看软件源中kernel-devel的版本: ]# yum info kernel-develLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * epel: mirrors.ustc.edu.cn * rpmforge: mirror.oscc.org.myAvailable PackagesName        : kernel-develArch        : x86_64Version     : 2.6.32Release     : 279.5.2.el6Size        : 7.6 MRepo        : updatesSummary     : Development package for building kernel modules to match the            : kernelURL         : http://www.kernel.org/License     : GPLv2Description : This package provides kernel headers and makefiles sufficient to            : build modules against the kernel package. 当前的kernel-devel版本是2.6.32-279.5.2.e16。因此,必须升级kernel: # yum update kernel升级完后必须重启系统,新的kernel才能被使用。 2. 安装kernel-devel和gcc。 # yum install kernel-devel gcc gcc-c++ 3. 安装增强功能。进入增强功能光盘根目录,执行Linux下的安装命令: # ./VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 4.1.18 Guest Additions for Linux.........VirtualBox Guest Additions installerRemoving existing VirtualBox DKMS kernel modules           [  OK  ]Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]Building the VirtualBox Guest Additions kernel modulesBuilding the main Guest Additions module                   [  OK  ]Building the shared folder support module                  [  OK  ]Building the OpenGL support module                         [FAILED](Look at /var/log/vboxadd-install.log to find out what went wrong)Doing non-kernel setup of the Guest Additions              [  OK  ]Installing the Window System driversInstalling X.Org Server 1.10 modules                       [  OK  ]Setting up the Window System to use the Guest Additions    [  OK  ]You may need to restart the hal service and the Window System (or just restartthe guest system) to enable the Guest Additions. Installing graphics libraries and desktop services componen[  OK  ] 

     

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告