流氓Windows
看来我无法SSH到我的虚拟盒子。
我有一个运行Win7的虚拟盒子。 主机也在Win7中。 虚拟框是通过Vagrant使用以下Vagrantfile创建的。
Vagrant.configure("2") do |config|
config.vm.box = "http://aka.ms/vagrant-win7-ie11"
end
打开cmd。 转到VagrantFile的根文件夹。 执行以下命令:
vagrant up
cmd显示:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
Timed out while waiting for the machine to boot...
尽管虚拟框已经完成启动,但会出现超时。 (通过VirtualBox Manager检查)
执行以下命令:
vagrant ssh
cmd显示:
ssh_exchange_identification: read: Connection reset by peer
在调试流浪SSH时,我可能会发现一些有用的日志:
INFO subprocess: Starting process: ["C:Program FilesGitusrbin/ssh.EXE"]
INFO ssh: Invoking SSH: ss ["vagrant@127.0.0.1", "-p", "2222", "-o", "Compression=yes", "-o", "DSAAuthentication=yes", "-o", "LogLevel=FATAL", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-o", "IdentitiesOnly=yes", "-i", "C:/Users/hostpcname/.vagrant.d/insecure_private_key"]
你能提出一些方法来解决这个问题吗? 我试过非Windows映像 - hashicorp / precise64,并且它工作正常。
我有同样的问题。 遵循这一步并为我工作。
流浪者重新加载
和
流浪ssh
再次和工作正常
链接地址: http://www.djcxy.com/p/92453.html上一篇: Vagrant Windows
下一篇: Basic LUA problems