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

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

Failed to mount folders in Linux guest. This is usually becausessh

the "vboxsf" file system is not available. Please verify thatui

the guest additions are properly installed in the guest andspa

can work properly. The command attempted was:vagrant


mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3 vagrant /vagrantget

mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant vagrant /vagrantit


The error output from the last command was:io


stdin: is not a ttyast

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

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

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

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

vagrant reload后问题完美解决

相关文章
相关标签/搜索