apt-get install build-essential module-assistant
m-a prepare

确保未加载

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 16G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 4G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom

挂载cdrom

mount /media/cdrom

执行安装

sh /media/cdrom/VBoxLinuxAdditions.run

重启

reboot

加载共享文件夹

share为文件夹命名
mount -t vboxsf share /home/toto