mount -t vboxsf tools /mnt/share
報錯了:/sbin/mount.vboxsf: mounting failed with the error: No such device
解決辦法:
yum clean all
yum update
yum install kernel
yum install kernel-devel
yum install kernel-headers
yum install gcc
yum install make
reboot
cd /opt/VBoxGuestAdditions-*/init
./vboxadd setup
reboot
也可以先嘗試不更新,直接執行上面的安裝命令