This temporary workaround is helpful, when test-kitchen is unable to connect to centos vm box via ssh with following error messages:
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
For kitchen create
to work properly, one should create Vagrantfile.rb
(extension is mandatory here) anywhere, and specify the path to this file in .kitchen.yml
. The only content of this custom Vagrantfile
is insert_key
setting, because it's not being parsed properly by test-kitchen
, when provided in .kitchen.yml
.
Doesn't seem to be working with Windows. The generated Vagrant file has on top some thing like
require "D:/Ziyan/Educational/Chef/chef/cookbooks/apache/Vagrantfile"
and breaks with..