Virtualbox Vagrant无法正确启动,无法装载共享文件夹

Virtualbox Vagrant无法正确启动,无法装载共享文件夹,virtualbox,vagrant,Virtualbox,Vagrant,当我向上流浪时,我得到: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! sed -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces 和同步文件夹不可用。如何

当我向上流浪时,我得到:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sed -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces
和同步文件夹不可用。如何解决这个问题?我用

Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

当您运行
vagrant up
时,它会将如下配置注入
/etc/network/interfaces
文件,以启用默认NAT网络模式

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
    post-up route del default dev $IFACE
#VAGRANT-END
此命令
sed-e'/^ VAGRANT-BEGIN/,/^ VAGRANT-END/d'/etc/network/interfaces>/tmp/VAGRANT network interfaces
删除VAGRANT生成的块,并将输出重定向到新文件。不知道流浪汉为什么抱怨非零出口代码。即使没有这样的代码块,sed也应该返回0

尝试启用调试输出
VAGRANT\u LOG=debug VAGRANT up
,看看它是否提供了更多信息

注:Vagrant 1.3.0刚刚发布。尝试将vagrant+virtualbox组合升级到最新版本


你的流浪版本和VirtualBox是什么?请尝试升级到1.3+4.2.16。更新vagrant(到1.3.1),使用并重新加载vagrant解决了一个问题!