Skip to content

Commit

Permalink
Fix debian osdisk size
Browse files Browse the repository at this point in the history
  • Loading branch information
machv committed Mar 2, 2022
1 parent a1bfd89 commit 48109b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/debian-11/debian-11.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ variable "iso_path" {
default = ""
}


variable "iso_checksum" {
type = string
default = ""
variable "osdisk_size" {
type = number
default = 20480
}

locals {
Expand Down Expand Up @@ -80,7 +79,7 @@ source "hyperv-iso" "debian-11" {
switch_name = "${var.switch_name}"
vm_name = "packer-${var.vm_name}"
differencing_disk = true
disk_size = 20480 #20GB
disk_size = "${var.osdisk_size}"
disk_block_size = 1 # 1MB as per https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/best-practices-for-running-linux-on-hyper-v#tuning-linux-file-systems-on-dynamic-vhdx-files
}

Expand Down

0 comments on commit 48109b6

Please sign in to comment.