【转载】https://my.oschina.net/pureboys/blog/1603382
sudo apt update
sudo apt upgrade #To install Linux headers
sudo apt install gcc
sudo apt install make
sudo mount /dev/cdrom /mnt
cd /mnt
sudo ./VBoxLinuxAdditions.run
reboot
//vbox设定共享路径,我的目录是data
//虚拟机建好目录 /ubuntu
sudo mount -t vboxsf data /ubuntu
//开机启动:
//如果想设置开机启动的话,需要在/etc/rc.local里加入一行:
mount.vboxsf -w data /ubuntu