# 宿主机
# 共享路径:F:\VirtualBox\shared
# 共享文件夹名称shared
# 安装编译器
$ yum clean all
$ yum update
$ yum install kernel
$ yum install kernel-devel
$ yum install kernel-headers
$ yum install gcc
$ yum install gcc-c++
$ yum install make
$ yum install bzip2
$ reboot
# 安装增强包
$ mount | grep vboxsf
$ mkdir /home/vboxsf
$ mount -t auto /dev/cdrom /home/vboxsf
$ cd /home/vboxsf
$ ls
$ sh ./VBoxLinuxAdditions.run
$ reboot
# 映射共享文件夹
$ mkdir /home/share
$ cd /home/share
$ mount -t vboxsf shared /home/share
# 实现开机挂载
$ vi ~/.bashrc
$ mount -t vboxsf shared /mnt/share
# 卸载
$ umount -f /mnt/share