Skip to content
New issue

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

The virtual machine is unable to install Docker. #620

Open
AndresMDO01 opened this issue Apr 23, 2024 · 3 comments
Open

The virtual machine is unable to install Docker. #620

AndresMDO01 opened this issue Apr 23, 2024 · 3 comments

Comments

@AndresMDO01
Copy link

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:

@SanderVeeken
Copy link

same here using manual build with packer build --only=qemu on the ubuntu template.

@27RObert99
Copy link

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'

@SanderVeeken
Copy link

This worked great, thank you so much! My ubuntu qemu box was finally built successfully. Now to try and fix the windows box issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants