eaksel / packer-debian10 Goto Github PK
View Code? Open in Web Editor NEWPacker configuration files for Debian 10
License: MIT License
Packer configuration files for Debian 10
License: MIT License
Hello can you please provide a version for hyper-v
packer build fails because iso_checksum_type does not exist anymore. you can remove iso_checksum_type as packer recognizes the type automatically. tested with latest version 1.6.2.
Add configuration for Debian 11 Bullseye.
I already have this up and running and can provide a MR, but previous reported issues and pull requests needs to be merged first.
Default build directory is output-BUILDNAME
. Starting to concurrent builds results in an error message:
Build 'virtualbox-iso' errored after 831 milliseconds 807 microseconds: Output directory exists: output-virtualbox-iso
.
I can provide a MR to address this, but previous reported issues and pull requests needs to be merged first.
Hi, I'm trying to run with "packer build -only=vmware-iso debian10.json" but I get this error:
packer build -only=vmware-iso debian10.json
vmware-iso: output will be in this color.
1 error occurred:
* unknown configuration key: "ssh_wait_timeout"; raws is []interface {}{map[string]interface {}{"boot_command":[]interface {}{"", "auto ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", ""}, "boot_wait":"5s", "disk_size":"40960", "disk_type_id":"0", "guest_os_type":"debian10-64", "headless":false, "http_directory":"http", "iso_checksum":"6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8", "iso_checksum_type":"sha256", "iso_url":"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso", "shutdown_command":"echo 'packer'|sudo -S shutdown -P now", "ssh_password":"packer", "ssh_port":22, "ssh_username":"packer", "ssh_wait_timeout":"10000s", "vm_name":"debian-10.3.0-amd64", "vmx_data":map[interface {}]interface {}{"memsize":"1024", "numvcpus":"1", "virtualHW.version":"14"}}, map[string]interface {}{"packer_build_name":"vmware-iso", "packer_builder_type":"vmware-iso", "packer_debug":false, "packer_force":false, "packer_on_error":"", "packer_template_path":"D:\Work\packer-Debian10\debian10.json", "packer_user_variables":map[interface {}]interface {}{"boot_wait":"5s", "disk_size":"40960", "iso_checksum":"6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8", "iso_checksum_type":"sha256", "iso_url":"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso", "memsize":"1024", "numvcpus":"1", "ssh_password":"packer", "ssh_username":"packer", "vm_name":"debian-10.3.0-amd64"}}}
and ctx data is map[interface {}]interface {}(nil)
I have vmware workstation installed, tried running from both Windows10 / Debian10 but same error, works with virtualbox though.
Grub boot menu is started by default with a timeout value of 5 seconds. This can be changed to value 0 and is useful to speed-up the boot process for running automated tests. Probably nobody uses Grub boot menu in a VM.
scripts/setup.yml
- name: Disable quiet boot mode and set timeout
lineinfile:
path: /etc/default/grub
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
with_items:
- {regexp: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet"', line: 'GRUB_CMDLINE_LINUX_DEFAULT=""'}
- {regexp: 'GRUB_TIMEOUT="5"', line: 'GRUB_TIMEOUT="0"'}
@eaksel Do you like this idea? Do you want me to create a PR?
PS: Sorry to bother you with PR's, this is a very useful project. :-)
@eaksel Thanks for creating this project. I've successfully built a Debian 10.10.0-amd64 VirtualBox VM, but after importing the OVF it starts the UEFI shell:
Latest VirtualBox version on Ubuntu 21.04: 6.1.26 r145957.
Shell> fs0:
FS0:\> dir
ls: File Not Found - 'FS0:\'
Do you have a suggestion how to automatically start the OS after power-on? Thanks!
Building debian10.json
with debian-10.10.0-amd64-netinst.iso
:
$ packer build -only=virtualbox-iso debian10.json
virtualbox-iso: output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
==> virtualbox-iso: Trying /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Trying /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: /usr/share/virtualbox/VBoxGuestAdditions.iso => /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso
==> virtualbox-iso: Trying https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso?checksum=sha256%3Ac433254a7c5b5b9e6a05f9e1379a0bd6ab3323f89b56537b684b6d1bd1f8b6ad
virtualbox-iso: debian-10.10.0-amd64-netinst.iso 336.00 MiB / 336.00 MiB [==================================] 100.00% 29s
==> virtualbox-iso: https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso?checksum=sha256%3Ac433254a7c5b5b9e6a05f9e1379a0bd6ab3323f89b56537b684b6d1bd1f8b6ad => /home/erwin/src/packer-Debian10/packer_cache/d90446f610ce2bf4e4e7ad48a2fa68d698c5484d.iso
==> virtualbox-iso: Starting HTTP server on port 8219
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive output-virtualbox-iso/debian-10.9.0-amd64.vdi with size 40960 MiB...
==> virtualbox-iso: Mounting ISOs...
virtualbox-iso: Mounting boot ISO...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2323)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm debian-10.9.0-amd64 --memory 1024
virtualbox-iso: Executing: modifyvm debian-10.9.0-amd64 --cpus 1
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 5s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Using SSH communicator to connect: 127.0.0.1
==> virtualbox-iso: Waiting for SSH to become available...
VirtualBox guest shows:
boot: uto preseed/url=http://10.0.2.2:8219/preseed.cfg
Loading uto.... failed: No such file or directory
boot:
No further output.
Any suggestion how to proceed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.