‘vagrant up’ fails to mount linked directory /vagrant
生活随笔
收集整理的這篇文章主要介紹了
‘vagrant up’ fails to mount linked directory /vagrant
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
偶然出現(xiàn)錯誤:
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 /vagrantThe error output from the last command was:/sbin/mount.vboxsf: mounting failed with the error: No such device?
[root@localhost ~]# yum update -y [root@localhost ~]# yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) dkms -y#再來就是安裝 VirtualBox Guest Additions kernel modules[root@localhost ~]# /etc/init.d/vboxadd setup Removing 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 ][root@localhost ~]#?再來就可以重新啟動 Guest OS 確認(rèn)啟動過程,應(yīng)該就可以正常掛載 /vagrant 目錄了。
$ vagrant reload?
轉(zhuǎn)載于:https://www.cnblogs.com/jinglingwuzhe/p/5063109.html
總結(jié)
以上是生活随笔為你收集整理的‘vagrant up’ fails to mount linked directory /vagrant的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS-----使用NSURLConne
- 下一篇: 基于CkEditor实现.net在线开发