From 5a5644735b1aa471bb8c19f0a36c3547b53f49f6 Mon Sep 17 00:00:00 2001 From: Sergei Bobkov Date: Fri, 20 Sep 2024 21:41:26 +0300 Subject: [PATCH] Fix some packer bugs --- packer/linux/debian-12-x64/debian-12-x64.pkr.hcl | 1 + packer/linux/ubuntu-24.04-x64/conf.pkrvars.hcl | 6 +++--- packer/linux/ubuntu-24.04-x64/ubuntu-24.04-x64.pkr.hcl | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packer/linux/debian-12-x64/debian-12-x64.pkr.hcl b/packer/linux/debian-12-x64/debian-12-x64.pkr.hcl index ef8fc60..6f12342 100644 --- a/packer/linux/debian-12-x64/debian-12-x64.pkr.hcl +++ b/packer/linux/debian-12-x64/debian-12-x64.pkr.hcl @@ -48,6 +48,7 @@ source "vsphere-iso" "debian-12-x64" { network = var.vm_network network_card = var.vm_network_nic_type } + remove_cdrom = true // **************** ssh_username = var.connection_username //ssh_password = var.connection_password diff --git a/packer/linux/ubuntu-24.04-x64/conf.pkrvars.hcl b/packer/linux/ubuntu-24.04-x64/conf.pkrvars.hcl index cdd3301..935113a 100644 --- a/packer/linux/ubuntu-24.04-x64/conf.pkrvars.hcl +++ b/packer/linux/ubuntu-24.04-x64/conf.pkrvars.hcl @@ -5,11 +5,11 @@ vcenter_folder = "VLAN-0221" vcenter_datastore = "Cluster01-LUN02" vm_name = "z-ubuntu-packer-vm" -vm_num_cpu = 2 -vm_ram = 4096 +vm_num_cpu = 1 +vm_ram = 2048 vm_hardware_version = "20" vm_guest_os_type = "ubuntu64Guest" -vm_disk_size = "6144" +vm_disk_size = "5120" vm_network = "VLAN-0221" vm_network_nic_type = "vmxnet3" diff --git a/packer/linux/ubuntu-24.04-x64/ubuntu-24.04-x64.pkr.hcl b/packer/linux/ubuntu-24.04-x64/ubuntu-24.04-x64.pkr.hcl index 4abd933..4610333 100644 --- a/packer/linux/ubuntu-24.04-x64/ubuntu-24.04-x64.pkr.hcl +++ b/packer/linux/ubuntu-24.04-x64/ubuntu-24.04-x64.pkr.hcl @@ -48,6 +48,7 @@ source "vsphere-iso" "ubuntu-24-04-x64" { network = var.vm_network network_card = var.vm_network_nic_type } + remove_cdrom = true // **************** ssh_username = var.connection_username //ssh_password = var.connection_password