任何人都已经打包过这个问题吗?
Waiting for SSH to become available...
[INFO] Attempting SSH connection...
reconnecting to TCP connection for SSH
handshaking with SSH
handshake error: ssh: handshake failed: read tcp 127.0.0.1:49663->127.0.0.1:3278: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
[DEBUG] SSH handshake err: ssh: handshake failed: read tcp 127.0.0.1:49663->127.0.0.1:3278: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
Run Code Online (Sandbox Code Playgroud)
我的打包器构建正确运行,但连接ssh的步骤很长(10分钟).
你有解决这个问题的想法吗?
PS:日志中的"空格"字符不是我的错,这只是-debug packer build的结果.也许打开另一个stackoverflow问题来解决这个问题.
我有类似的设置(Ubuntu、Windows 7、virtualbox-iso)。我的脚本包含一个在配置者块中调用的文件。缺少这些可能是速度缓慢的原因
#!/bin/sh -x
echo "UseDNS no" >> /etc/ssh/sshd_config;
echo "GSSAPIAuthentication no" >> /etc/ssh/sshd_config;
Run Code Online (Sandbox Code Playgroud)
也有可能这 10 分钟的等待只是您看不到的后台发生的其他事情。如果您可以发布脚本的链接和/或告诉我整个构建过程需要多长时间,这可能会提供额外的上下文
| 归档时间: |
|
| 查看次数: |
4614 次 |
| 最近记录: |