Gitlab-ci with virtualbox runner

Hello,

I’m testing gitlab-ci with virtualbox as test runner, but the following error is occurring:

Running with gitlab-runner 11.5.1 (7f00c780)
on puppet-t e596effa
Using VirtualBox version 5.2.22r126460 executor…
Creating new VM…
Creating default snapshot…
Waiting VM to become responsive…
Starting SSH command…
stdin: is not a tty
Running on debian via gitlab-t…
stdin: is not a tty
bash: line 79: git: command not found
stdin: is not a tty
bash: line 62: cd: builds/root/puppet-t: No such file or directory
ERROR: Job failed: Process exited with: 1. Reason was: ()

gitlab-ci.yml

stages:
  - test

job1:
  stage: test
  tags:
  - puppet-t
  script:
  - ping 127.0.0.1 -c 5

My base VM is functional and ssh to it works. Networks is configured with a NAT adapter.

Anyone have an idea to help me?

Hi!
I am facing a similar issue. Have you ever found a way to solve, or got the reason why runner tries to cd into inexisting directory?
Best regards!
AF

Hi,

since the original question is 2 years old, can you please share more details about your setup (GitLab, runner and VirtualBox versions)?

Cheers,
Michael

Sure! Actually I opened a related topic with details on my configuration (no answer):