diff --git a/common/template/debian13-gui/debian.pkr.hcl b/common/template/debian13-gui/debian.pkr.hcl index 4e83ae3..ab40c3c 100644 --- a/common/template/debian13-gui/debian.pkr.hcl +++ b/common/template/debian13-gui/debian.pkr.hcl @@ -60,6 +60,18 @@ variable "vm_folder" { default = "" } +variable "resource_pool" { + type = string + description = "Resource pool name (use 'Resources' for standalone ESXi hosts)" + default = "Resources" +} + +variable "http_ip" { + type = string + description = "IP of the Packer host NIC reachable by the build VM (required on multi-NIC hosts)" + default = "" +} + # ── VM hardware ────────────────────────────────────────────────────────────── variable "vm_name" { @@ -148,6 +160,7 @@ source "vsphere-iso" "debian" { cluster = var.cluster datastore = var.datastore folder = var.vm_folder + resource_pool = var.resource_pool # VM identity vm_name = var.vm_name @@ -191,6 +204,7 @@ source "vsphere-iso" "debian" { # Packer starts a local HTTP server to serve the preseed file. http_directory = "${path.root}/http" + http_ip = var.http_ip http_port_min = 8100 http_port_max = 8199 diff --git a/common/template/debian13/debian.pkr.hcl b/common/template/debian13/debian.pkr.hcl index 1bd2ed4..a0b45dd 100644 --- a/common/template/debian13/debian.pkr.hcl +++ b/common/template/debian13/debian.pkr.hcl @@ -60,6 +60,18 @@ variable "vm_folder" { default = "" } +variable "resource_pool" { + type = string + description = "Resource pool name (use 'Resources' for standalone ESXi hosts)" + default = "Resources" +} + +variable "http_ip" { + type = string + description = "IP of the Packer host NIC reachable by the build VM (required on multi-NIC hosts)" + default = "" +} + # ── VM hardware ────────────────────────────────────────────────────────────── variable "vm_name" { @@ -148,6 +160,7 @@ source "vsphere-iso" "debian" { cluster = var.cluster datastore = var.datastore folder = var.vm_folder + resource_pool = var.resource_pool # VM identity vm_name = var.vm_name @@ -191,6 +204,7 @@ source "vsphere-iso" "debian" { # Packer starts a local HTTP server to serve the preseed file. http_directory = "${path.root}/http" + http_ip = var.http_ip http_port_min = 8100 http_port_max = 8199