今天执行vagrant的时候内存不够了,我以为那个文件夹只是虚拟机所以就把它删掉了,没想到接下来就出了问题:虚拟机起不来了,报错如下:
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 vagrant /vagrant
The error output from the command was:
mount: /vagrant: unknown filesystem type 'vboxsf'.
然后发现好像是删多了,找了找教程,还好有办法解决,在终端执行这个命令:
vagrant plugin install vagrant-vbguest
然后再执行vagrant up已经可以启动了,问题解决。