We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running ./build.sh ubuntu1404, the virtual machine is unable to install Docker. I am using a Debian 12 to create the VM.
================================================================================ Error executing action create on resource 'docker_installation_package[default]' qemu: ================================================================================ qemu: qemu: Chef::Exceptions::Package qemu: ------------------------- qemu: apt_package[docker-ce] (/tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_installation_package.rb line 42) had an error: Chef::Exceptions::Package: No candidate version available for docker-ce qemu: qemu: Resource Declaration: qemu: --------------------- qemu: # In /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_service.rb qemu: qemu: 62: install = docker_installation_package(new_resource.name, &block) qemu: 63: when 'tarball' qemu: 64: install = docker_installation_tarball(new_resource.name, &block) qemu: 65: when 'none' qemu: 66: Chef::Log.info('Skipping Docker installation. Assuming it was handled previously.') qemu: 67: return qemu: 68: end qemu: 69: copy_properties_to(install) qemu: 70: install qemu: 71: end qemu: 72: qemu: qemu: Compiled Resource: qemu: ------------------ qemu: # Declared in /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_service.rb:62:in `installation' qemu: qemu: docker_installation_package("default") do qemu: action [:create] qemu: updated true qemu: updated_by_last_action true qemu: default_guard_interpreter :default qemu: declared_type :docker_installation_package qemu: cookbook_name "metasploitable" qemu: version "18.06.1" qemu: package_name "docker-ce" qemu: package_version "18.06.1ce3-0~ubuntu" qemu: end qemu: qemu: System Info: qemu: ------------ qemu: chef_version=13.8.5 qemu: platform=ubuntu qemu: platform_version=14.04 qemu: ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux] qemu: program_name=chef-solo worker: ppid=1057;start=08:33:00; qemu: executable=/opt/chef/bin/chef-solo qemu:
create
The text was updated successfully, but these errors were encountered:
same here using manual build with packer build --only=qemu on the ubuntu template.
Sorry, something went wrong.
You can also use the tarball installation method. Change the content of the file chef/cookbooks/metasploitable/recipes/docker.rb to:
install_method 'tarball' version '18.06.0'
This worked great, thank you so much! My ubuntu qemu box was finally built successfully. Now to try and fix the windows box issues...
No branches or pull requests
When running ./build.sh ubuntu1404, the virtual machine is unable to install Docker. I am using a Debian 12 to create the VM.
================================================================================
Error executing action
create
on resource 'docker_installation_package[default]'qemu: ================================================================================
qemu:
qemu: Chef::Exceptions::Package
qemu: -------------------------
qemu: apt_package[docker-ce] (/tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_installation_package.rb line 42) had an error: Chef::Exceptions::Package: No candidate version available for docker-ce
qemu:
qemu: Resource Declaration:
qemu: ---------------------
qemu: # In /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_service.rb
qemu:
qemu: 62: install = docker_installation_package(new_resource.name, &block)
qemu: 63: when 'tarball'
qemu: 64: install = docker_installation_tarball(new_resource.name, &block)
qemu: 65: when 'none'
qemu: 66: Chef::Log.info('Skipping Docker installation. Assuming it was handled previously.')
qemu: 67: return
qemu: 68: end
qemu: 69: copy_properties_to(install)
qemu: 70: install
qemu: 71: end
qemu: 72:
qemu:
qemu: Compiled Resource:
qemu: ------------------
qemu: # Declared in /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_service.rb:62:in `installation'
qemu:
qemu: docker_installation_package("default") do
qemu: action [:create]
qemu: updated true
qemu: updated_by_last_action true
qemu: default_guard_interpreter :default
qemu: declared_type :docker_installation_package
qemu: cookbook_name "metasploitable"
qemu: version "18.06.1"
qemu: package_name "docker-ce"
qemu: package_version "18.06.1
ce3-0~ubuntu"qemu: end
qemu:
qemu: System Info:
qemu: ------------
qemu: chef_version=13.8.5
qemu: platform=ubuntu
qemu: platform_version=14.04
qemu: ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
qemu: program_name=chef-solo worker: ppid=1057;start=08:33:00;
qemu: executable=/opt/chef/bin/chef-solo
qemu:
The text was updated successfully, but these errors were encountered: