在部署homestead时提示

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument

奇怪了,其他的box加载文件夹是正常的,这个这个有问题,也查看了vagran 插件列表,也是正常的

vagrant-bindfs (1.1.9, global)
vagrant-vbguest (0.30.0, global)
vagrant-winnfsd (1.4.0, global)

解决方案:
vagrant up 启动后,用vagrant ssh进入,然后运行命令:

sudo apt-get install linux-headers-$(uname -r)

然后退出,再运行

vagrant halt
vagrant up