Skip to content

Commit

Permalink
Further improved Packer template
Browse files Browse the repository at this point in the history
Related: #13, #15
  • Loading branch information
ChristoWolf committed Aug 26, 2021
1 parent 22a6943 commit d0b45ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packer-templates/ubuntu-dev-vm.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variable "disk_size" {

variable "headless" {
type = bool
default = false
default = true
}

variable "memory" {
Expand Down Expand Up @@ -56,6 +56,7 @@ source "virtualbox-iso" "ubuntu-dev-vm" {
headless = var.headless
boot_wait = "5s"
boot_keygroup_interval = "500ms" # Needed to prevent missing key presses due to latency.
# The reasoning behind the key presses is listed at the bottom of https://imagineer.in/blog/packer-build-for-ubuntu-20-04/.
boot_command = [
"<enter><enter><f6><esc><wait5>",
" autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
Expand Down

0 comments on commit d0b45ba

Please sign in to comment.