Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\sowen\.chef> knife ssl fetch
- WARNING: Certificates from chef.example.com will be fetched and placed in your trusted_cert
- directory (C:/Users/sowen/.chef\trusted_certs).
- Knife has no means to verify these are the correct certificates. You should
- verify the authenticity of these certificates after downloading.
- Adding certificate for chef.example.com in C:/Users/sowen/.chef\trusted_certs/chef.example.com.crt
- PS C:\Users\sowen\.chef> chef gem install knife-windows
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef> $IPAddresses = "10.254.130.129"
- PS C:\Users\sowen\.chef> $GUESTNAME = "spencerbootstrapper2"
- PS C:\Users\sowen\.chef> Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrapper2"
- Get-VM : A parameter is invalid. Hyper-V was unable to find a virtual machine with name spencerbootstrapper2.
- At line:1 char:1
- + Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrapper2"
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (spencerbootstrapper2:String) [Get-VM], VirtualizationInvalidArgumentEx
- ception
- + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVMCommand
- PS C:\Users\sowen\.chef> Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrap2"
- Name State CPUUsage(%) MemoryAssigned(M) Uptime Status
- ---- ----- ----------- ----------------- ------ ------
- spencerbootstrap2 Running 0 4096 1.01:37:16 Operating normally
- PS C:\Users\sowen\.chef> $GUESTNAME = "spencerbootstrap2"
- PS C:\Users\sowen\.chef> $USER = "foobar"
- PS C:\Users\sowen\.chef> $PASSWORD = "xxxxxxxx"
- PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
- INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
- Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
- DEBUG: :session => :init
- DEBUG: :relay_to_servers => echo . & echo Response received.
- DEBUG: :relayed => 10.254.130.129
- DEBUG: 10.254.130.129 => :run_command
- DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :shell_open
- DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :run_command[echo . & echo Response received.]
- DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
- 10.254.130.129 .
- DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
- 10.254.130.129 Response received.
- DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :command_cleanup[echo . & echo Response received.]
- DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :shell_close
- DEBUG: :command_complete => 10.254.130.129 with return code 0
- DEBUG: command complete on 10.254.130.129
- DEBUG: command complete on All Servers
- DEBUG: Exit code found: 0
- DEBUG: :unbind => :connection
- DEBUG: 10.254.130.129 => :unbind
- DEBUG: :unbind_backend => 10.254.130.129
- DEBUG: :session => :close
- Remote node responded after 0.33 minutes.
- Bootstrapping Chef on 10.254.130.129
- DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.4/lib/ch
- f/knife/bootstrap
- DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.4/lib/chef/kni
- e/bootstrap
- ERROR: knife encountered an unexpected error
- This may be a bug in the 'bootstrap windows winrm' knife command or plugin
- Please collect the output of this command with the `-VV` option before filing a bug report.
- Exception: NoMethodError: undefined method `gsub' for false:FalseClass
- PS C:\Users\sowen\.chef> chef gem install knife-windows
- WARNING: You don't have c:\users\sowen\.chefdk\gem\ruby\2.1.0\bin in your PATH,
- gem executables will not run.
- Successfully installed knife-windows-0.8.4
- Parsing documentation for knife-windows-0.8.4
- Installing ri documentation for knife-windows-0.8.4
- Done installing documentation for knife-windows after 1 seconds
- 1 gem installed
- PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
- INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
- Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
- DEBUG: :session => :init
- DEBUG: :relay_to_servers => echo . & echo Response received.
- DEBUG: :relayed => 10.254.130.129
- DEBUG: 10.254.130.129 => :run_command
- DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :shell_open
- DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :run_command[echo . & echo Response received.]
- DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
- 10.254.130.129 .
- DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
- 10.254.130.129 Response received.
- DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :command_cleanup[echo . & echo Response received.]
- DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :shell_close
- DEBUG: :command_complete => 10.254.130.129 with return code 0
- DEBUG: command complete on 10.254.130.129
- DEBUG: command complete on All Servers
- DEBUG: Exit code found: 0
- DEBUG: :unbind => :connection
- DEBUG: 10.254.130.129 => :unbind
- DEBUG: :unbind_backend => 10.254.130.129
- DEBUG: :session => :close
- Remote node responded after 0.33 minutes.
- Bootstrapping Chef on 10.254.130.129
- DEBUG: Looking for bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/
- ootstrap
- DEBUG: Found bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/bootst
- ap
- ERROR: knife encountered an unexpected error
- This may be a bug in the 'bootstrap windows winrm' knife command or plugin
- Please collect the output of this command with the `-VV` option before filing a bug report.
- Exception: NoMethodError: undefined method `gsub' for false:FalseClass
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef>
- PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
- INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
- Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
- DEBUG: :session => :init
- DEBUG: :relay_to_servers => echo . & echo Response received.
- DEBUG: :relayed => 10.254.130.129
- DEBUG: 10.254.130.129 => :run_command
- DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :shell_open
- DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :run_command[echo . & echo Response received.]
- DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
- 10.254.130.129 .
- DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
- 10.254.130.129 Response received.
- DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :command_cleanup[echo . & echo Response received.]
- DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :shell_close
- DEBUG: :command_complete => 10.254.130.129 with return code 0
- DEBUG: command complete on 10.254.130.129
- DEBUG: command complete on All Servers
- DEBUG: Exit code found: 0
- DEBUG: :unbind => :connection
- DEBUG: 10.254.130.129 => :unbind
- DEBUG: :unbind_backend => 10.254.130.129
- DEBUG: :session => :close
- Remote node responded after 12.17 minutes.
- Bootstrapping Chef on 10.254.130.129
- DEBUG: Looking for bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/
- ootstrap
- DEBUG: Found bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/bootst
- ap
- ERROR: knife encountered an unexpected error
- This may be a bug in the 'bootstrap windows winrm' knife command or plugin
- Please collect the output of this command with the `-VV` option before filing a bug report.
- Exception: NoMethodError: undefined method `gsub' for false:FalseClass
Advertisement
Add Comment
Please, Sign In to add comment