centos-安装virtualbox增强功能
环境
CentOS-7.0.1
VirtualBox-4.3.28
步骤
更新内核
yum update kernel
reboot安装依赖
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
在虚拟机控制器中,添加
VBoxGuestAdditions.iso
挂载光盘
mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom
编译安装
cd /mnt/cdrom && ./VBoxLinuxAdditions.run
重启生效
reboot