场景:Linux + Virtualbox + Windows
yum install -y gcc kernel-devel linux-headers-generic dkms build-essential linux-headers-$(uname -r)
mount /dev/cdrom /mnt
/mnt/VBoxLinuxAdditions.run
如果出现找不到内核,直接update或者remove,重装扩展
yum update kernel -y
挂载共享目录
mount -t vboxsf share /home/share/
开机自动挂载
vi /etc/fstab
<共享名称 > <共享目录>
share /home/share vboxsf defaults 0 0