【问题标题】:Chef Kitchen: Error pullling a kitchen box for sles 12厨师厨房:为 sles 12 拉出厨房盒子时出错
【发布时间】:2018-04-24 14:18:26
【问题描述】:

我正在尝试聚合一个厨房 sles 盒子。但我不断收到以下错误。我能够收敛一个 centos-7,所以我认为我的配置没有任何问题。

---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'sles-12-sp3' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'sles-12-sp3' (v0) for provider: virtualbox
    default: Downloading: sles-12-sp3
[K
STDERR: An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /root/besclient/.kitchen/kitchen-vagrant/remove-sles-12-sp3/sles-12-sp3

这是我的厨房.yml

---
driver:
  name: vagrant

provisioner:
  name: chef_zero
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: centos-7
  - name: sles-12-sp3
    driver:
      gui: false

suites:
  - name: default
    run_list:
      - besclient
    attributes:

  - name: remove
    run_list:
      - besclient::default
      - besclient::remove
    attributes:

/usr/local/packer build -only=virtualbox-iso sles-12-sp3-x86_64.json
virtualbox-iso output will be in this color.

我尝试使用打包程序进行构建,但出现以下错误。

==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: file:///usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: file://./packer_cache/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso
    virtualbox-iso: Error downloading: open /root/bento/sles/packer_cache/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso: no such file or directory
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.

==> Builds finished but no artifacts were created.

【问题讨论】:

    标签: chef-infra chef-recipe test-kitchen


    【解决方案1】:

    虽然有 SLES 的便当定义,但我在 Vagrantcloud 上看不到任何图像。我猜我们不能像 RHEL 和 Windows 那样重新分发操作系统。您可能必须自己构建和托管它们。请参阅https://github.com/chef/bento#proprietary-templates 了解一些非常简单的细节。

    【讨论】:

    • 我已经试过了。更新那里收到错误的问题。
    • 按照说明,您需要修改 ISO 的路径,因为 ISO 不是公开的,我们无法将其分发给您。您需要以某种方式从 SUSE 获得一份副本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-09
    • 1970-01-01
    • 2017-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多