Vagrant up encounters cannot mount a shared directory after resolving yum update update/vagrant

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.