1. 更新内核
- yum update kernel
2.安装依赖包
- yum install kernel-headers
- yum install kernel-devel
- yum install gcc*
- yum install make
3.vbox菜单栏点击“安装增强功能”
4.安装功能包
- mkdir /mnt/cdrom
- mount /dev/cdrom /mnt/cdrom
- cd /mnt/cdrom
- ./VBoxLinuxAdditions.run
5.设置共享文件夹(固定分配)
6.挂载、卸载磁盘
- mkdir /mnt/share # 名称自己随便起
- 挂载:mount -t vboxsf myshare /mnt/share # myshare为:设置的共享文件夹名称,无需写目录
- 卸载:umount -f /mnt/share