平时用virtualbox安装linux虚拟机都是用完就删,今天想安装个长久的linux做工具系统,在安装增强功能包的时候出现以下错误:

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

这是报kernel header错误,解决方法如下:

apt-get install dkms build-essential linux-headers-$(uname -r)

然后重新安装VBoxGuestAdditions.run

加载共享文档:

选好加载文件路径后更改共享文件夹的名字,比如myshare,然后在linux下使用以下命令挂载到/mnt/vbshare中:

mount -t vboxsf myshare /mnt/vbshare