# 宿主機
# 共享路徑:F:\VirtualBox\shared
# 共享文件夾名稱sharedc++
# 安裝編譯器
$ 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
$ rebootbash
# 安裝加強包
$ mount | grep vboxsf
$ mkdir /home/vboxsf
$ mount -t auto /dev/cdrom /home/vboxsf
$ cd /home/vboxsf
$ ls
$ sh ./VBoxLinuxAdditions.run
$ rebootip
# 映射共享文件夾
$ mkdir /home/share
$ cd /home/share
$ mount -t vboxsf shared /home/share編譯器
# 實現開機掛載
$ vi ~/.bashrc
$ mount -t vboxsf shared /mnt/shareit
# 卸載
$ umount -f /mnt/shareio