IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    解决yum update更新后Vagrant up遇到不能挂载共享目录/vagrant

    wwek发表于 2015-05-31 02:35:20
    love 0

    故障

    vagrant管理的centos虚拟机在做过 yum -y update 后更新了系统以及内核

    然后下一次vagrant up的时候共享目录不能挂载到/vagrant目录( /sbin/mount.vboxsf: mounting failed with the error: No such device)

    详细信息

    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 was:
    
    /sbin/mount.vboxsf: mounting failed with the error: No such device

    搜索资料知道原因是yum update更新了内核,但是没有更新VirtualBox的连接的问题。

    需要执行

    sudo /etc/init.d/vboxadd setup

    修复即可

    资料

    ‘vagrant up’ fails to mount linked directory /vagrant

    Vagrant up遇到mount no such device的问题

    猜您也喜欢:

    使用Vagrant在Windows下部署Linux开发环境

    Centos下yum update升级更新openssl rpm二进制包

    nginx的php目录权限控制问题

    解决php通过localhost不能连接mysql数据库

    [视频]你能行_You Can Shine
    无觅


沪ICP备19023445号-2号
友情链接