发布于 2015-04-05 04:30:12 | 982 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

Vagrant 创建虚拟化开发环境

Vagrant是一个基于Ruby的工具,用于创建和部署虚拟化开发环境。它 使用Oracle的开源VirtualBox虚拟化系统,使用 Chef创建自动化虚拟环境。


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后问题完美解决。



最新网友评论  共有(1)条评论 发布评论 返回顶部
eolfgca 发布于2016-01-21 10:16:18
这个不错!
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务