-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kitchen Create fails with Undefined method [] for nil:NilClass #18
Comments
kitchen diagnose --all is clean and kitchen.log is empty |
It is likely an error with the PowerShell running behind the scenes. To see what that is run
and you'll get the debug output. If you can paste that here or in a gist, I can show you what powershell is running and we can run it interactively to see what error powershell is giving us. I need to surface that better in the driver. :) |
[2|11:59 AM|+15ms] [...\cookbooks\cva-dynamicmap] [master|+13]
D Loading functions from C:/Users/jbruett/AppData/Local/chefdk/gem/ruby/2.1.0/gems/kitchen-hyperv-0.1.7/lib/kitchen D #Local Command BEGIN (c:\windows\system32\windowspowershell\v1.0\powershell.exe -encodedcommand LgAgAEMAOgAvAFUAc
D ------Exception------- D C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block |
@jbruettcva you'll want to run
and see what the result is. |
Running manually produced the following errors: New-VM : A parameter cannot be found that matches parameter name 'SwitchName'. Set-VMMemory : Cannot validate argument on parameter 'VMName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. Start-VM : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. |
Running this: New-KitchenVM worked |
closed via #19 |
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
Kitchen-Hyperv: 0.1.7 (donwloaded and installed manually from here)
.kitchen.yml
driver:
name: hyperv
parent_vhd_folder: C:/jbtemp/VMs/VHDs
memory_startup_bytes: 1073741824
vm_switch: external_wired
vm_generation: 2
processor_count: 2
transport:
username: Administrator
password: ***************
provisioner:
name: chef_zero
verifier:
name: pester
platforms:
driver_config:
parent_vhd_name: 'w12r2_gold.vhdx'
provisioner:
require_chef_omnibus: 12.1
suites:
run_list:
[6|8:26 AM|+343ms] [...\cookbooks\cva-dynamicmap] [master|+13]
The text was updated successfully, but these errors were encountered: