Changeset View
Changeset View
Standalone View
Standalone View
packer/debian_bullseye.qemu.json
- This file was copied from packer/debian_buster.qemu.json.
{ | { | ||||
"variables": { | "variables": { | ||||
"DISK_SIZE": "20480", | "DISK_SIZE": "20480", | ||||
"IMAGE_TIMESTAMP": "{{isotime \"20060102-1504\"}}", | "IMAGE_TIMESTAMP": "{{isotime \"20060102-1504\"}}", | ||||
"PACKER_BOX_NAME": "swh-debian-10.10-amd64-{{ user `IMAGE_TIMESTAMP` }}" | "PACKER_BOX_NAME": "swh-debian-11.0-amd64-{{ user `IMAGE_TIMESTAMP` }}" | ||||
}, | }, | ||||
"builders": [ | "builders": [ | ||||
{ | { | ||||
"headless": false, | "headless": false, | ||||
"type": "qemu", | "type": "qemu", | ||||
"format": "qcow2", | "format": "qcow2", | ||||
"accelerator": "kvm", | "accelerator": "kvm", | ||||
"net_device": "virtio-net", | "net_device": "virtio-net", | ||||
"disk_interface": "virtio", | "disk_interface": "virtio", | ||||
"memory": 2048, | "memory": 2048, | ||||
"cpus": 2, | "cpus": 2, | ||||
"boot_command": [ | "boot_command": [ | ||||
"<esc><wait>", | "<esc><wait>", | ||||
"install <wait>", | "install <wait>", | ||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/buster-preseed.cfg <wait>", | "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>", | ||||
"debian-installer=en_US.UTF-8 <wait>", | "debian-installer=en_US.UTF-8 <wait>", | ||||
"auto <wait>", | "auto <wait>", | ||||
"locale=en_US.UTF-8 <wait>", | "locale=en_US.UTF-8 <wait>", | ||||
"kbd-chooser/method=us <wait>", | "kbd-chooser/method=us <wait>", | ||||
"keyboard-configuration/xkb-keymap=us <wait>", | "keyboard-configuration/xkb-keymap=us <wait>", | ||||
"netcfg/get_hostname={{ .Name }} <wait>", | "netcfg/get_hostname={{ .Name }} <wait>", | ||||
"netcfg/get_domain=vagrantup.com <wait>", | "netcfg/get_domain=vagrantup.com <wait>", | ||||
"fb=false <wait>", | "fb=false <wait>", | ||||
"debconf/frontend=noninteractive <wait>", | "debconf/frontend=noninteractive <wait>", | ||||
"console-setup/ask_detect=false <wait>", | "console-setup/ask_detect=false <wait>", | ||||
"console-keymaps-at/keymap=us <wait>", | "console-keymaps-at/keymap=us <wait>", | ||||
"grub-installer/bootdev=/dev/vda <wait>", | "grub-installer/bootdev=/dev/vda <wait>", | ||||
"<enter><wait>" | "<enter><wait>" | ||||
], | ], | ||||
"boot_wait": "5s", | "boot_wait": "5s", | ||||
"disk_size": "{{ user `DISK_SIZE` }}", | "disk_size": "{{ user `DISK_SIZE` }}", | ||||
"ssh_username": "vagrant", | "ssh_username": "vagrant", | ||||
"ssh_password": "vagrant", | "ssh_password": "vagrant", | ||||
"ssh_port": 22, | "ssh_port": 22, | ||||
"ssh_wait_timeout": "1000s", | "ssh_wait_timeout": "1000s", | ||||
"output_directory": "output", | "output_directory": "output", | ||||
"http_directory": "http", | "http_directory": "http", | ||||
"iso_urls": [ | "iso_urls": [ | ||||
"https://cdimage.debian.org/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso" | "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.0.0-amd64-netinst.iso" | ||||
], | ], | ||||
"iso_checksum": "c433254a7c5b5b9e6a05f9e1379a0bd6ab3323f89b56537b684b6d1bd1f8b6ad", | "iso_checksum": "ae6d563d2444665316901fe7091059ac34b8f67ba30f9159f7cef7d2fdc5bf8a", | ||||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||||
"vm_name": "{{ user `PACKER_BOX_NAME` }}" | "vm_name": "{{ user `PACKER_BOX_NAME` }}" | ||||
}], | }], | ||||
"provisioners": [ | "provisioners": [ | ||||
{ | { | ||||
"type": "shell", | "type": "shell", | ||||
"expect_disconnect": "true", | "expect_disconnect": "true", | ||||
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'", | "execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'", | ||||
Show All 16 Lines |