如何解决使用Chef Test Kitchen脚本创建CentOS框时出现问题
我确实有这个kitchen.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上也看到过类似的帖子,但找不到解决方案。
解决方法
好的,做更多的研究,我在这里找到了答案:
Test kitchen fails to install VirtualBox Guest Additions 4.3.28
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。