我正在Windows 10主机上为简单的gitlab CI运行程序设置新的VirtulBox Machine Linux Ubuntu。
这是我的跑步者配置(config.toml)
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "virtualbox"
url = "****"
token = "****"
executor = "virtualbox"
[runners.ssh]
user = "mauro"
password = "mauro"
[runners.virtualbox]
base_name = "ubuntu.dev"
user = "mauro"
password = "mauro"
identity_file = "/home/mauro/.ssh/id_rsa"
disable_snapshots = false
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
当我使用跑步者时,我得到以下输出:
Running with gitlab-runner 11.9.0 (692ae235)
on virtualbox 8W5MbzNs
Using VirtualBox version 6.0.4r128413 executor...
Creating new VM...
ERROR: Preparation failed: ssh: handshake failed: read tcp 127.0.0.1:53370->127.0.0.1:53168: wsarecv: An existing connection was forcibly closed by the remote host.
感谢您的支持
答案 0 :(得分:0)
在runners.virtualbox部分中,您不需要用户,密码或identity_file。 identity_file进入runners.ssh部分。
在尝试仅安装gitlab运行程序时,我遇到了类似的问题。 这位gitlab赛跑者为我工作-https://github.com/ayufan/gitlab-ci-multi-runner