centos6.4安装vbox增强功能

virtualbox增强功能组件在其中,在virtualbox安装完centos系统后需要安装增强功能,点击菜单栏的“设备”,“安装增强功能”,就会挂载VboxGuestAdditions.iso,然后安装gcc,make,kernel-devel,后,在终端运行/dev/sr0/里的VboxLinuxaddition.run就会安装增强功能,安装完重启centos,重启后,这个VboxGuestAdditions.iso就没用了,弹出虚拟机就行了。

 

CentOS6.3是安装在VirtualBox虚拟机上,安装好以后最好再将VBoxAdditions增强功能装上,
主要目的是能够在虚拟机和宿主机之间能够共享文件。
 
1. 更新内核。CentOS 6.3对应的kernel默认为2.6.32-279.el6.i686:
# uname -r
2.6.32-279.el6.i686
安装增强功能需要kernel-devel包,必须保证kernel-devel和kernel版本的一致。查看软件源中
kernel-devel的版本:
]# yum info kernel-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
Name : kernel-devel
Arch : i686
Version : 2.6.32
Release : 279.19.1.el6
Size : 7.6 M
Repo : updates
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2
Description : 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 installer
Removing installed version 4.2.4 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules[确定]
Building the VirtualBox Guest Additions kernel modules
Building 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 drivers
Installing 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 restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components[确定]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

mumu_wangwei

主修"红尘道--红尘练心"

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值