首页 > 系统服务 > 详细

vagrant故障记--升级虚拟机linux内核导致无法挂载共享文件夹

时间:2015-03-10 23:19:25      阅读:5624      评论:0      收藏:0      [点我收藏+]

i‘m new to use vagrant,今天升级了下vbox里的ubuntu12.04内核,结果vagrant reload后出现报错。

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:


stdin: is not a tty

/sbin/mount.vboxsf: mounting failed with the error: No such device

vagrant ssh登陆后发现共享文件夹没了,无奈Google之,之后找到两种方法。

1,sudo /etc/init.d/vboxadd setup

2,sudo apt-get install virtualbox-guest-utils

vagrant reload后问题完美解决

vagrant故障记--升级虚拟机linux内核导致无法挂载共享文件夹

原文:http://my.oschina.net/u/148605/blog/385049

(0)
(4)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!