VirtualBox下安装Centos6(命令行模式)和功能增强VBoxGuestAdditions

2016-08-12 10:30:50来源:oschina作者:ssicn人点击


**下载所需工具:**
[VirtualBox-5.1.2](http://download.virtualbox.org/virtualbox/5.1.2/VirtualBox-5.1.2-108956-Win.exe)
[VBoxGuestAdditions_5.1.2](http://download.virtualbox.org/virtualbox/5.1.2/VBoxGuestAdditions_5.1.2.iso)
[Centos6.8](http://mirrors.aliyun.com/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso)
**1.安装VirtualBox和Centos6.8 mini**
默认安装VirtualBox,
新建虚拟电脑,光盘加载CentOS-6.8-x86_64-minimal
启动虚拟机,选择"Install system with basic video driver"安装系统,网络连接方式采用"桥接网卡"
**2.安装VBoxGuestAdditions所需依赖**
```
#安装依赖
yum install -y gcc make perl
#安装以下依赖之前,最好做好虚拟机备份,或者做好kernel版本保护
yum install kernel-headers
yum install kernel-devel
yum install kernel
reboot
#做好版本保护(防止kernel版本意外更新),未测试
#yum install yum-plugin-versionlock
#yum versionlock add kernel-2.6.32-504.el6 kernel-devel-2.6.32-504.el6
```
**3.安装VirtualBox功能增强VBoxGuestAdditions**
虚拟机光盘装载VBoxGuestAdditions_5.1.2.iso
```
#挂载光盘
mount /dev/cdrom /mnt
#安装VBoxLinuxAdditions
/mnt/VBoxLinuxAdditions.run
```

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台