I am using vagrant for test-kitchen on windows environment and it isn’t working.
Vagrant works fine on its own, vagrant init bento/centos-7.3, vagrant up and ssh 127.0.0.1 -p 2222 all work fine.
It is not an issue of Bios/enabling virtualization of 64bit because the above works.
Versions:
Vagrant 2.0.0
.\vboxmanage -v
5.1.26r117224
Chef Development Kit Version: 2.0.28
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.31.1
kitchen destroy has been used each time before creating.
The test kitchen each time gets stuck on "Waiting for SSH Service on 127.0.0.0.1:2222"
Which is Odd because when it is waiting, I issued an ssh to this port and it succeeded.
ssh 127.0.0.1 -p2222
vagrant 127.0.0.1’s password:
[vagrant default-centos-73 ~]$ who am i
kitchen create
-----> Starting Kitchen (v1.16.0)
-----> Creating …
Users\kgstst0mBringing machine ‘default’ up with ‘virtualbox’ provider…Users\kgstst0m
Users\kgstst1m==> default: Importing base box ‘bento/centos-7.3’…Users\kgstst0m
Users\kgstst0m
1m==> default: Matching MAC address for NAT networking…Users\kgstst0m
Users\kgstst1m==> default: Checking if box ‘bento/centos-7.3’ is up to date…Users\kgstst0m
Users\kgstst1m==> default: Setting the name of the VM: kitchen-learn_chef_httpd-default-centos-73_default_1505469876960_1655Users\kgstst0m
Users\kgstst1m==> default: Clearing any previously set network interfaces…Users\kgstst0m
Users\kgstst1m==> default: Preparing network interfaces based on configuration…Users\kgstst0m
Users\kgstst0m default: Adapter 1: natUsers\kgstst0m
Users\kgstst1m==> default: Forwarding ports…Users\kgstst0m
[0m default: 22 (guest) => 2222 (host) (adapter 1)Users\kgstst0m
Users\kgstst1m==> default: Booting VM…Users\kgstst0m
Users\kgstst1m==> default: Waiting for machine to boot. This may take a few minutes…Users\kgstst0m
Users\kgstst0m default: SSH address: 127.0.0.1:2222Users\kgstst0m
Users\kgstst0m default: SSH username: vagrantUsers\kgstst0m
Users\kgstst0m default: SSH auth method: private keyUsers\kgstst0m
Users\kgstst0m default: Warning: Connection reset. Retrying…Users\kgstst0m
Users\kgstst0m default: Warning: Connection aborted. Retrying…Users\kgstst0m
Users\kgstst0m default: Warning: Connection reset. Retrying…Users\kgstst0m
Users\kgstst0m default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.Users\kgstst0m
Users\kgstst0m default:
default: Inserting generated public key within guest…Users\kgstst0m
Users\kgstst0m default: Removing insecure key from the guest if it’s present…Users\kgstst0m
Users\kgstst0m default: Key inserted! Disconnecting and reconnecting using new SSH key…Users\kgstst0m
Users\kgstst1m==> default: Machine booted and ready!Users\kgstst0m
Users\kgstst1m==> default: Checking for guest additions in VM…Users\kgstst0m
Users\kgstst1m==> default: Setting hostname…Users\kgstst0m
Users\kgstst1m==> default: Mounting shared folders…Users\kgstst0m
Users\kgstst0m default: /tmp/omnibus/cache => C:/Users/kgs-humayun.manzer/.kitchen/cacheUsers\kgstst0m
Users\kgstst1m==> default: Machine not provisioned because --no-provision
is specified.Users\kgstst0m
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
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds