Vagrant 使用Chef Test Kitchen脚本创建CentOS box时出现问题

Vagrant 使用Chef Test Kitchen脚本创建CentOS box时出现问题,vagrant,chef-infra,virtualbox,centos6,Vagrant,Chef Infra,Virtualbox,Centos6,我有这个厨房。yml: driver: name: vagrant provisioner: name: chef_solo platforms: - name: centos65 driver: box: learningchef/centos65 box_url: learningchef/centos65 suites: - name: default run_list: attributes: 我运行: kitche

我有这个厨房。yml:

driver:
  name: vagrant

provisioner:
  name: chef_solo

platforms:
  - name: centos65
    driver:
      box: learningchef/centos65
      box_url: learningchef/centos65

suites:
  - name: default
    run_list:
    attributes:
我运行:

kitchen create default-centos65
但我得到了一个错误:

>>>>>> ------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: 
    default: Guest Additions Version: 4.3.20
    default: VirtualBox Version: 6.1
==> default: Setting hostname...
STDERR: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

hostname -F /etc/hostname

Stdout from the command:



Stderr from the command:

hostname: can't open `/etc/hostname'
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-centos65
>>>>>> ----------------------

我正在Windows10笔记本电脑上运行Vargant和VirtualBox。我在stackoverflow上也看到过类似的帖子,但我找不到解决方案。

好的,做一些进一步的研究,我在这里找到了答案:


好的,做更多的研究,我在这里找到了答案:


这是否回答了您的问题?这回答了你的问题吗?