diff --git a/packer/debian_buster.json b/packer/debian_buster.json index 6b73138..edf7891 100644 --- a/packer/debian_buster.json +++ b/packer/debian_buster.json @@ -1,83 +1,83 @@ { "variables": { "DISK_SIZE": "20480", "IMAGE_TIMESTAMP": "{{isotime \"20060102-1504\"}}", "PACKER_BOX_NAME": "swh-debian-10.6-amd64-{{ user `IMAGE_TIMESTAMP` }}" }, "builders": [ { + "headless": false, + "type": "virtualbox-iso", + "guest_os_type": "Debian_64", + "guest_additions_mode": "upload", + "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", + "virtualbox_version_file": ".vbox_version", + "vboxmanage": [ + [ "modifyvm", "{{.Name}}", "--memory", "2048" ], + [ "modifyvm", "{{.Name}}", "--cpus", "2" ] + ], + "boot_command": [ "", "install ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/buster-preseed.cfg ", "debian-installer=en_US.UTF-8 ", "auto ", "locale=en_US.UTF-8 ", "kbd-chooser/method=us ", "keyboard-configuration/xkb-keymap=us ", "netcfg/get_hostname={{ .Name }} ", "netcfg/get_domain=vagrantup.com ", "fb=false ", "debconf/frontend=noninteractive ", "console-setup/ask_detect=false ", "console-keymaps-at/keymap=us ", "grub-installer/bootdev=/dev/sda ", "" ], - "boot_wait": "5s", - "headless": false, "disk_size": "{{ user `DISK_SIZE` }}", - "guest_additions_mode": "upload", - "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout": "1000s", - "type": "virtualbox-iso", - "guest_os_type": "Debian_64", - "virtualbox_version_file": ".vbox_version", "output_directory": "output", "http_directory": "http", "iso_urls": [ "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.6.0-amd64-netinst.iso" ], "iso_checksum": "2af8f43d4a7ab852151a7f630ba596572213e17d3579400b5648eba4cc974ed0", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", - "vboxmanage": [ - [ "modifyvm", "{{.Name}}", "--memory", "2048" ], - [ "modifyvm", "{{.Name}}", "--cpus", "2" ] - ], - "vm_name": "{{ user `PACKER_BOX_NAME` }}" + "vm_name": "{{ user `PACKER_BOX_NAME` }}" }], "provisioners": [ { "type": "shell", "expect_disconnect": "true", "execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'", "scripts": [ "scripts/post-install.sh" ] }, { "type": "shell", "expect_disconnect": "false", "execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'", "scripts": [ "scripts/install-vbguest.sh" ] } ], "post-processors": [ [ { "type": "vagrant", "compression_level": 9, "output": "builds/{{ user `PACKER_BOX_NAME` }}.box" } ] ] }