在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
您是否在管理员模式命令提示符下运行“厨房创建”? –