在Windows 10上運行chefdk
與hyperv
。測試廚房卡住「創建虛擬機」
我可以使用kitchen create
創建Windows VM,它工作正常,但我只是想在Linux虛擬機,我得到這個errror:
PS> kitchen create
-----> Starting Kitchen (v1.10.0)
-----> Creating <default-centos-72>...
Creating differencing disk for default-centos-72.
Created differencing disk for default-centos-72.
Checking for existing virtual machine.
Creating virtual machine for default-centos-72.
Created virtual machine for default-centos-72.
QBiA...AA== -outputformat Text ----
STDOUT:
STDERR: #< CLIXML
---- End output of c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -noprofile -executionpolicy bypass -encodedcommand LgAg...AA== -outputformat Text ----
ProcessId: 18780
app_name: c:\windows\sysnative\windowspowershell\v1.0\powershell.exe
command_line: c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -noprofile -executionpolicy bypass -encodedcommand LgAgAEM...BjADC0ASgBzAG8AbgAKAA== -outputformat Text
timeout: 600] on default-centos-72
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
現在,它創建一個虛擬機,我可以手動ssh
成通過PuTTY或從cmd通過openssh for Windows,所以我不知道爲什麼它的掛起看起來像不能訪問它。
這是我.kitchen.yml
:
---
driver:
name: hyperv
parent_vhd_folder: c:\HyperV\VHDs\
parent_vhd_name: CentOS-7.vhdx
vm_switch: NAT
memory_startup_bytes: 2GB
provisioner:
name: chef_zero
transport:
password: [email protected]#
platforms:
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[myrecipe::default]
attributes:
編輯 - 更多信息: 服務器配置爲DHCP 當我看着.kitchen文件夾中的日誌是空 .kitche \默認的CentOS-72 .yml只列出一個ID(不知道如果多數民衆贊成應該有它的管理員名稱和IP像RDP文件? 我也嘗試指向一個靜態IP在.kitchen.yml
你看過位於'.kitchen/logs/kitchen.log'的日誌嗎? –
廚房日誌是emtpy – red888
您是否在管理員模式命令提示符下運行「廚房創建」? –