{ "description": "Debian Babelbox", "builders": [ { "type": "virtualbox-iso", "boot_command": [ "", "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 ", "" ], "disk_size": 10240, "guest_os_type": "Debian_64", "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", "shutdown_command": "sudo systemctl poweroff", "ssh_username": "demo", "ssh_password": "babelbox", "ssh_port": "22", "ssh_wait_timeout": "1800s", "vm_name": "babelbox-buster", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "1024" ], [ "modifyvm", "{{.Name}}", "--cpus", "1" ] ], "output_directory": "babelbox-virtualbox" }, { "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": [ "", "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 ", "" ], "memory": "1024", "qemuargs": [ ["-display", "sdl"] ] } ], "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" ] } ] }