{
  "builders": [
    {
      "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": 10240,
      "guest_os_type": "Debian_64",
      "hard_drive_interface": "sata",
      "headless": false,
      "http_directory": "http",
      "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_password": "babelbox",
      "ssh_port": "22",
      "ssh_timeout": "1800s",
      "ssh_username": "demo",
      "type": "virtualbox-iso",
      "vboxmanage": [
        [
          "modifyvm",
          "{{.Name}}",
          "--memory",
          "1024"
        ],
        [
          "modifyvm",
          "{{.Name}}",
          "--cpus",
          "1"
        ]
      ],
      "vm_name": "babelbox-bookworm"
    },
    {
      "accelerator": "kvm",
      "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>"
      ],
      "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"
        ]
      ],
      "shutdown_command": "sudo systemctl poweroff",
      "ssh_password": "babelbox",
      "ssh_timeout": "20m",
      "ssh_username": "demo",
      "type": "qemu",
      "vm_name": "babelbox-bookworm"
    }
  ],
  "description": "Debian Babelbox",
  "provisioners": [
    {
      "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
      "scripts": [
        "scripts/babelbox-partitions.sh",
        "scripts/setup-babelbox.sh"
      ],
      "type": "shell"
    },
    {
      "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
      "only": [
        "virtualbox-iso"
      ],
      "scripts": [
        "scripts/virtualbox.sh"
      ],
      "type": "shell"
    },
    {
      "execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
      "scripts": [
        "scripts/cleanup.sh",
        "scripts/minimize.sh"
      ],
      "type": "shell"
    }
  ]
}