vagrant can not mount a shared directory

Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxs

Disclaimer: This article is a blogger original article, follow the  CC 4.0 BY-SA  copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/changjiangWang/article/details/79129510

vagrant suddenly one day find shared folders fail, the vagrant up tips:

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:


/sbin/mount.vboxsf: mounting failed with the error: No such device

Roughly meaning vagrant said: This is not my pot, because the problem vagrant box, and then I check the online solution, most say vagrant box upgrade version, because of the low version of the box does exist this bug, but I was before you can suddenly fall ill, of course I can not forgive and to accept, then finally found an answer on github, execute:

 

vagrant plugin install vagrant-vbguest
Wait a few minutes ...

 

Successful installation!

Restart vagrant  

Mount success again!

Anyway, I was such a solution, and in some cases may be indeed box version of the problem. Below are links to solve my problem githu

https://github.com/scotch-io/scotch-box/issues/296

Guess you like

Origin www.cnblogs.com/php-linux/p/11909769.html