From a950a197a4e59a0ab6d9c0b001aca7fe8d3783ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6ller?= <jdmoeller@gmx.org> Date: Fri, 28 Feb 2025 20:12:38 +0100 Subject: [PATCH] =?UTF-8?q?Formatproblem=20mit=20packer-eigenen=20tools=20?= =?UTF-8?q?gel=C3=B6st=20URLs=20zu=20netinst=20ISOs=20aktualisert=20inkl.?= =?UTF-8?q?=20Pr=C3=BCfsummen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian-babelbox.json | 72 +++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/debian-babelbox.json b/debian-babelbox.json index c16aa92..fb2a1d6 100644 --- a/debian-babelbox.json +++ b/debian-babelbox.json @@ -1,8 +1,6 @@ { - "description": "Debian Babelbox", "builders": [ { - "type": "virtualbox-iso", "boot_command": [ "<esc><wait>", "install <wait>", @@ -23,15 +21,15 @@ "hard_drive_interface": "sata", "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", + "iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054", + "iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso", + "output_directory": "babelbox-virtualbox", "shutdown_command": "sudo systemctl poweroff", - "ssh_username": "demo", "ssh_password": "babelbox", "ssh_port": "22", - "ssh_wait_timeout": "1800s", - "vm_name": "babelbox-buster", + "ssh_timeout": "1800s", + "ssh_username": "demo", + "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", @@ -46,27 +44,10 @@ "1" ] ], - "output_directory": "babelbox-virtualbox" + "vm_name": "babelbox-bookworm" }, { - "type": "qemu", - "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", - "output_directory": "babelbox-qemu", - "shutdown_command": "sudo systemctl poweroff", - "disk_size": "10240M", - "format": "qcow2", "accelerator": "kvm", - "http_directory": "http-qemu", - "ssh_username": "demo", - "ssh_password": "babelbox", - "ssh_timeout": "20m", - "vm_name": "babelbox-buster", - "net_device": "virtio-net", - "disk_interface": "virtio", - "disk_detect_zeroes": "on", - "boot_wait": "10s", "boot_command": [ "<esc><wait>", "install <wait>", @@ -82,38 +63,59 @@ "keyboard-configuration/xkb-keymap=de <wait>", "<enter><wait>" ], + "boot_wait": "10s", + "disk_detect_zeroes": "on", + "disk_interface": "virtio", + "disk_size": "10240M", + "format": "qcow2", + "http_directory": "http-qemu", + "iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054", + "iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso", "memory": "1024", + "net_device": "virtio-net", + "output_directory": "babelbox-qemu", "qemuargs": [ - ["-display", "sdl"] - ] + [ + "-display", + "sdl" + ] + ], + "shutdown_command": "sudo systemctl poweroff", + "ssh_password": "babelbox", + "ssh_timeout": "20m", + "ssh_username": "demo", + "type": "qemu", + "vm_name": "babelbox-bookworm" } ], + "description": "Debian Babelbox", "provisioners": [ { - "type": "shell", "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", "scripts": [ "scripts/babelbox-partitions.sh", "scripts/setup-babelbox.sh" - ] + ], + "type": "shell" }, { - "type": "shell", + "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", "only": [ "virtualbox-iso" ], - "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", "scripts": [ "scripts/virtualbox.sh" - ] + ], + "type": "shell" }, { - "type": "shell", "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'", "scripts": [ "scripts/cleanup.sh", "scripts/minimize.sh" - ] + ], + "type": "shell" } ] } +