偶然出现错误:

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 確認啟動過程,應該就可以正常掛載 /vagrant 目錄了。

$ vagrant reload

转载于:https://www.cnblogs.com/jinglingwuzhe/p/5063109.html

‘vagrant up’ fails to mount linked directory /vagrant相关推荐

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

    vagrant 突然有一天发现共享文件夹失效,vagrant up 后提示: Vagrant was unable to mount VirtualBox shared folders. This i ...

  2. [已解决]Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem “

    今天执行vagrant的时候内存不够了,我以为那个文件夹只是虚拟机所以就把它删掉了,没想到接下来就出了问题:虚拟机起不来了,报错如下: Vagrant was unable to mount Virt ...

  3. Vagrant挂载目录失败mount: unknown filesystem type ‘vboxsf’

    一.背景 ​ 最近在玩Mac OS下的虚拟机,然后有朋友推荐了我Vagrant,但是在设置完跟宿主机共享目录然后启动虚拟机的时候,出现了vagrant mount: unknown filesyste ...

  4. 在 Mac/win7 下上使用 Vagrant 打造本地开发环境

    1. vagrant介绍 1.1 vagrant能做什么 做Web开发(java/php/python/ruby...)少不了要在本地搭建好开发环境,虽然说目前各种脚本/语言都有对应的Windows版 ...

  5. 超详细 Vagrant 入门指南,建议收藏

    搭建 Linux 虚拟机,别再用 VirtualBox 从 .iso 文件安装了. 概述 2020 年了,也许你已经习惯了 docker,习惯了在 XX 云上快速创建云主机,但是如果你想在个人电脑上安 ...

  6. 【转帖】超详细的 Vagrant 上手指南

    本文转自https://zhuanlan.zhihu.com/p/259833884 超详细的 Vagrant 上手指南 DavyCloud 努力把事讲清楚 91 人赞同了该文章 搭建 Linux 虚 ...

  7. ubuntu下用vagrant搭建集群环境

    1.安装virtualbox 终端输入:sudo apt-get install virtualbox(事实从来都不是一番风顺的.......) 正在读取软件包列表... 完成 正在分析软件包的依赖关 ...

  8. Vagrant 构建 LNMP 一致环境

    GitHub 地址 <--- 所有文件都在这里 前提条件 安装 Vagrant,VirtualBox. 设置 下载软件并放入 soft 目录 MySQL:mysql-5.7.22-1.el7.x ...

  9. window 10 使用vagrant 在virtualbox中安装centos7

    下载 安装virtualbox 下载地址 virtualbox 官网: https://www.virtualbox.org 点击 Download VirtualBox xx 选择 Windows ...

最新文章

  1. Android文件系统深入剖析
  2. 安装Rabbitmq脚本
  3. 日志中的秘密 Windows登录类型知多少?
  4. 阿里 双11 同款,流量防卫兵 Sentinel go 源码解读
  5. Object与equals
  6. boost::python模块实现使用原始指针访问数据的示例
  7. java executebatch_JDBC批量执行executeBatch
  8. 数据挖掘需要学习的内容
  9. java sql 结果_Java中的SQL结果集
  10. linux服务端口加密,linux – 如何通过单个端口处理加密和未加密的http连接
  11. iOS 程序上传流程
  12. RHCE考试第一天之学习安排计划
  13. AutoCAD 天正建筑2014安装破解
  14. 大数据数据挖掘与云计算-认识大数据
  15. 当前网络安全风险及举例
  16. 文章标题一个应届计算机毕业生的2012求职之路
  17. 【Unity3D日常开发】Unity中的资源加载与文件路径
  18. 身份管理的15个安全开发实践
  19. android电视盒子应用市场占有率,各Android版本市场占有率排名出炉
  20. 我的世界java手机版怎么调按键_《我的世界》按键设置 pc版快捷按键代码大全...

热门文章

  1. JZOJ 5923. 【NOIP2018模拟10.23】Bomb
  2. ws.v6p.coindex.php,php_168_v6目录
  3. java鼠标经过时变色_鼠标经过时单元格变色
  4. tomcat启动占了12g_windows server tomcat服务器部署内存占用高问题
  5. c++ vector 赋值_C++中vector用法
  6. C#接口(Interface)理解
  7. python变量定义必须赋值_Python3单行定义多个变量或赋值方法
  8. [CODEVS 1285] 宠物收养所
  9. 2021.02.01 Visual QA论文阅读
  10. 回归分析结果表格怎么填_手把手教绘制回归分析结果的森林图GraphPad Prism和Excel...