Fault
Vagrant managed CentOS Virtual machines update the system and kernel after yum-y update
And then the next time vagrant up, the shared directory cannot be mounted to the/vagrant directory (/sbin/mount.vboxsf:mounting failed with the Error:no such)
More information
Failed to mount folders in Linux Guest. This is usually because
The "vboxsf" file system is not available. Please verify that
The guest additions are properly installed in the guest and
can work properly. The command attempted was:
Mount-t vboxsf-o uid= ' id-u vagrant ', gid= ' getent Group vagrant | cut-d:-f3 ' vagrant/vagrant
Mount-t vboxsf-o uid= ' id-u vagrant ', gid= ' id-g vagrant ' vagrant/vagrant
The error output from the last command is:
/sbin/mount.vboxsf:mounting failed with the Error:no such device
The search information knows that the reason is that Yum update updated the kernel, but did not update the VirtualBox connection.
Need to perform
Sudo/etc/init.d/vboxadd Setup