Hi Team, I am following the learn.chef.io, I am trying to create a kitchen in the windows even the node is also windows_2012_R2 but I am getting an error at kitchen create. Please find the below details and help on it
PS C:\Practices\Learn_chef\cookbooks\learn_chef_iis> kitchen create
-----> Starting Kitchen (v2.2.5)
-----> Creating ...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'windows-2012R2' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'windows-2012R2' (v0) for provider: virtualbox
default: Downloading: windows-2012R2
default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file C:/Practices/Learn_chef/cookbooks/learn_chef_iis/.kitchen/kitchen-vagrant/default-windows-2012R2/windows-2012R2
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'windows-2012R2' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'windows-2012R2' (v0) for provider: virtualbox
default: Downloading: windows-2012R2
default:
STDERR: An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file C:/Practices/Learn_chef/cookbooks/learn_chef_iis/.kitchen/kitchen-vagrant/default-windows-2012R2/windows-2012R2
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-windows-2012R2
Please see .kitchen/logs/kitchen.log for more details
Also try runningkitchen diagnose --all
for configuration
.kicthen.yml:
driver:
name: ec2
aws_ssh_key_id: learn-chef
region: us-east-1
availability_zone: d
subnet_id: subnet-2491b90a
instance_type: t2.micro
image_id: ami-067ff23da8261d1c7
security_group_ids: ["sg-03dcad119432a7b10"]
retryable_tries: 120
driver:
name: vagrant
boot_timeout: 1200
gui: false
provisioner:
name: chef_zero
product_name: chef
product_version: 14.12.9
verifier:
name: inspec
transport:
ssh_key: C:\Practices\Learn_chef/myaws.pem
platforms:
- name: windows-2012R2
driver:
customize:
memory: 2048
suites:
- name: default
run_list:- recipe[learn_chef_iis::default]
verifier:
inspec_tests:- test/smoke/default
attributes:
- test/smoke/default
- recipe[learn_chef_iis::default]
Version used in my system:
Chef Workstation version: 1.0.11
Chef Infra Client version: 15.2.20
Chef InSpec version: 4.10.4
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 0.72.0
Vagrant 2.2.5
Windows 10_64 bit.