【发布时间】:2020-01-01 15:33:57
【问题描述】:
我正在使用 Vagrant 1.7.4 和 VBox 5.0.0 在 Win7 上设置 Ubuntu 15.04 VM。
在第一个vagrant up 上,我可以使用vagrant putty ssh 进入机器,并且一切都设置正确并且可以正常工作。当我运行vagrant halt 时,VM 会正常关闭而不会出现错误消息。
但是,当我尝试使用 vagrant up; vagrant putty 重新启动 VM 时,机器处于奇怪的状态。例如,默认同步文件夹 /vagrant 是空的,即使第二个 vagrant up 调用会打印此消息:
default: /vagrant => C:/Users/ArneUser/numecs/dev_env
此外,此 vagrant up 调用会在 PowerShell 中打印以下消息:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=
Stdout from the command:
Stderr from the command:
stdin: is not a tty
bash: line 2: /sbin/initctl: No such file or directory
我正在运行一个非常基本的设置,只是为了测试这个错误,所以我认为错误不在我的配置脚本中。一些正确方向的指针将不胜感激。
【问题讨论】:
标签: windows ubuntu vagrant virtualbox