' Vagrant up ' fails to mount linked directory/vagrant

Source: Internet
Author: User

An accidental error occurred:

Failed to mount folders in Linux Guest. This is usually becausethe "vboxsf" file system was not available. Please verify thatthe guest Additions is properly installed in the guest andcan work properly. The command attempted was:mount-t vboxsf-o uid= ' id-u vagrant ', gid= ' getent Group vagrant | cut-d:-f3 ' vagrant/vagrantmount-t vboxsf-o uid= ' id-u vagrant ', gid= ' id-g vagrant ' vagrant/vagrantthe error output F Rom the last command was:/sbin/mount.vboxsf:mounting failed with the Error:no such device

[[email protected] ~]# yum update-y[[email protected] ~]# yum install kernel-devel-$ (uname-r) kernel-headers-$ (uname-r)  dkms-y# again is installed VirtualBox Guest additions kernel modules[[email protected] ~]#/etc/init.d/vboxadd setupremoving existing VirtualBox DKMS kernel modules           [  OK  ]removing existing VirtualBox non-dkms kernel modules       [  OK  ] Building the VirtualBox guest Additions kernel modules     [  OK  ]doing non-kernel setup of the guest additions
   
    [  OK  ]starting the VirtualBox Guest additions                    [  OK  ][[email protected] ~]#
   

Then you can re-activate the Guest OS to confirm the activation process, and you should be able to download the/vagrant catalogue properly.

$ vagrant Reload

' Vagrant up ' fails to mount linked directory/vagrant

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.