babelbox-packer/debian-babelbox.json
Jan Dittberner 20e2a485ce Start port to Debian 12
- qemu installation works
- babelbox installation works
- system is broken after the first demo installation
2024-02-09 10:17:42 +01:00

120 lines
3.5 KiB
JSON

{
"description": "Debian Babelbox",
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer/locale=en_US <wait>",
"auto <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain=demo.local <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=de <wait>",
"keyboard-configuration/xkb-keymap=de <wait>",
"<enter><wait>"
],
"disk_size": 20480,
"guest_os_type": "Debian_64",
"hard_drive_interface": "sata",
"headless": false,
"http_directory": "http",
"iso_checksum": "64d727dd5785ae5fcfd3ae8ffbede5f40cca96f1580aaa2820e8b99dae989d94",
"iso_checksum_type": "sha256",
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.4.0-amd64-netinst.iso",
"shutdown_command": "sudo systemctl poweroff",
"ssh_username": "demo",
"ssh_password": "babelbox",
"ssh_port": "22",
"ssh_wait_timeout": "1800s",
"vm_name": "babelbox-bookworm",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"output_directory": "babelbox-virtualbox"
},
{
"type": "qemu",
"iso_checksum": "64d727dd5785ae5fcfd3ae8ffbede5f40cca96f1580aaa2820e8b99dae989d94",
"iso_checksum_type": "sha256",
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.4.0-amd64-netinst.iso",
"output_directory": "babelbox-qemu",
"shutdown_command": "sudo systemctl poweroff",
"disk_size": "20480M",
"format": "qcow2",
"accelerator": "kvm",
"http_directory": "http-qemu",
"ssh_username": "demo",
"ssh_password": "babelbox",
"ssh_timeout": "20m",
"vm_name": "babelbox-bookworm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"disk_detect_zeroes": "on",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"install ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer/locale=en_US ",
"auto ",
"netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain=demo.local ",
"fb=false ",
"debconf/frontend=noninteractive ",
"console-setup/ask_detect=false ",
"console-keymaps-at/keymap=de ",
"keyboard-configuration/xkb-keymap=de ",
"<enter>"
],
"memory": "1024",
"qemuargs": [
["-display", "gtk"]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
"scripts": [
"scripts/babelbox-partitions.sh",
"scripts/setup-babelbox.sh"
]
},
{
"type": "shell",
"only": [
"virtualbox-iso"
],
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
"scripts": [
"scripts/virtualbox.sh"
]
},
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
"scripts": [
"scripts/cleanup.sh",
"scripts/minimize.sh"
]
}
]
}