/buildfile.pkr.hcl Secret
Last active
January 26, 2025 14:15
Packer proxmox crash logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu Server jammy | |
# --- | |
# Packer Template to create an Ubuntu Server (jammy) on Proxmox | |
# Variable Definitions | |
variable "proxmox_api_url" { | |
type = string | |
} | |
variable "proxmox_api_token_id" { | |
type = string | |
} | |
variable "proxmox_api_token_secret" { | |
type = string | |
sensitive = true | |
} | |
# Resource Definiation for the VM Template | |
source "proxmox-iso" "ubuntu-server-jammy" { | |
# Proxmox Connection Settings | |
proxmox_url = "${var.proxmox_api_url}" | |
username = "${var.proxmox_api_token_id}" | |
token = "${var.proxmox_api_token_secret}" | |
# (Optional) Skip TLS Verification | |
insecure_skip_tls_verify = true | |
# VM General Settings | |
node = "nvk-prox-01" | |
vm_id = "900" | |
vm_name = "ubuntu-server-jammy" | |
template_description = "Ubuntu Server jammy Image" | |
# VM OS Settings | |
# (Option 1) Local ISO File | |
# iso_file = "qnap-iso2:ubuntu-22.04.04-live-server-amd64.iso" | |
# - or - | |
# (Option 2) Download ISO | |
# iso_url = "https://releases.ubuntu.com/22.04/ubuntu-22.04-live-server-amd64.iso" | |
# iso_checksum = "84aeaf7823c8c61baa0ae862d0a06b03409394800000b3235854a6b38eb4856f" | |
# iso_storage_pool = "local" | |
# unmount_iso = true | |
boot_iso { | |
type = "scsi" | |
iso_file = "qnap-iso2:ubuntu-22.04.04-live-server-amd64.iso" | |
unmount = true | |
iso_checksum = "none" | |
} | |
# VM System Settings | |
qemu_agent = true | |
# VM Hard Disk Settings | |
scsi_controller = "virtio-scsi-pci" | |
# VM CPU Settings | |
cores = "1" | |
# VM Memory Settings | |
memory = "2048" | |
# VM Network Settings | |
network_adapters { | |
model = "virtio" | |
bridge = "vmbr0" | |
firewall = "false" | |
} | |
[ | |
disks { | |
type = "scsi", | |
disk_size = "20G", | |
storage_pool = "local-lvm", | |
storage_pool_type = "lvm" | |
} | |
] | |
# VM Cloud-Init Settings | |
cloud_init = true | |
cloud_init_storage_pool = "local-lvm" | |
# PACKER Boot Commands | |
boot_command = [ | |
"<esc><wait>", | |
"e<wait>", | |
"<down><down><down><end>", | |
"<bs><bs><bs><bs><wait>", | |
"autoinstall ds=nocloud-net\\;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ---<wait>", | |
"<f10><wait>" | |
] | |
boot = "c" | |
boot_wait = "5s" | |
# PACKER Autoinstall Settings | |
http_directory = "http" | |
# (Optional) Bind IP Address and Port | |
# http_bind_address = "0.0.0.0" | |
# http_port_min = 8802 | |
# http_port_max = 8802 | |
ssh_username = "your-user-name" | |
# (Option 1) Add your Password here | |
# ssh_password = "your-password" | |
# - or - | |
# (Option 2) Add your Private SSH KEY file here | |
# ssh_private_key_file = "~/.ssh/id_rsa" | |
# Raise the timeout, when installation takes longer | |
ssh_timeout = "20m" | |
} | |
# Build Definition to create the VM Template | |
build { | |
name = "ubuntu-server-jammy" | |
sources = ["proxmox-iso.ubuntu-server-jammy"] | |
# Provisioning the VM Template for Cloud-Init Integration in Proxmox #1 | |
provisioner "shell" { | |
inline = [ | |
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done", | |
"sudo rm /etc/ssh/ssh_host_*", | |
"sudo truncate -s 0 /etc/machine-id", | |
"sudo apt -y autoremove --purge", | |
"sudo apt -y clean", | |
"sudo apt -y autoclean", | |
"sudo cloud-init clean", | |
"sudo rm -f /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg", | |
"sudo rm -f /etc/netplan/00-installer-config.yaml", | |
"sudo sync" | |
] | |
} | |
# Provisioning the VM Template for Cloud-Init Integration in Proxmox #2 | |
provisioner "file" { | |
source = "files/99-pve.cfg" | |
destination = "/tmp/99-pve.cfg" | |
} | |
# Provisioning the VM Template for Cloud-Init Integration in Proxmox #3 | |
provisioner "shell" { | |
inline = [ "sudo cp /tmp/99-pve.cfg /etc/cloud/cloud.cfg.d/99-pve.cfg" ] | |
} | |
# Add additional provisioning scripts here | |
# ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025/01/26 14:44:23 [INFO] Packer version: 1.12.0 [go1.22.9 windows amd64] | |
2025/01/26 14:44:23 [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2025/01/26 14:44:23 [INFO] PACKER_CONFIG env var set; attempting to open config file: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 [WARN] Config file doesn't exist: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 [INFO] Setting cache directory: C:\Users\rikvt\OneDrive\Documenten\nvk-terraform\ubuntu-server-jammy\packer_cache | |
e: cannot determine if process is in background: Process background check error: not implemented yet | |
2025/01/26 14:44:23 [TRACE] listing potential installations for <nil> that match "". plugingetter.ListInstallationsOptions{PluginDirectory:"C:\\Users\\rikvt\\AppData\\Roaming\\packer.d\\plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"windows", ARCH:"amd64", Ext:".exe", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0005b4100)}}, ReleasesOnly:false}} | |
2025/01/26 14:44:23 [INFO] found external [-packer-default-plugin-name- clone iso] builders from proxmox plugin | |
2025/01/26 14:44:23 plugin "C:\\Users\\rikvt\\AppData\\Roaming\\packer.d\\plugins\\github.com\\hashicorp\\proxmox\\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe" does not support Protobuf, forcing use of Gob | |
2025/01/26 14:44:23 [TRACE] validateValue: not active for proxmox_api_token_id, so skipping | |
2025/01/26 14:44:23 [TRACE] validateValue: not active for proxmox_api_token_secret, so skipping | |
2025/01/26 14:44:23 [TRACE] validateValue: not active for proxmox_api_url, so skipping | |
2025/01/26 14:44:23 [INFO] Starting external plugin C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe start builder iso | |
2025/01/26 14:44:23 Starting plugin: C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe []string{"C:\\Users\\rikvt\\AppData\\Roaming\\packer.d\\plugins\\github.com\\hashicorp\\proxmox\\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe", "start", "builder", "iso"} | |
2025/01/26 14:44:23 Waiting for RPC address for: C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Plugin port range: [10000,25000] | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Plugin address: tcp 127.0.0.1:10000 | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Waiting for connection... | |
2025/01/26 14:44:23 Received tcp RPC address for C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe: addr is 127.0.0.1:10000 | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Serving a plugin connection... | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 [TRACE] starting builder iso | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Number of sockets 0 is too small, using default: 1 | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 CPU type not set, using default 'kvm64' | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 OS not set, using default 'other' | |
2025/01/26 14:44:23 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:23 Cloud-Init disk type not set, using default 'ide' | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 [INFO] Starting external plugin C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe execute packer-provisioner-shell | |
2025/01/26 14:44:23 Starting plugin: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe []string{"C:\\Users\\rikvt\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\\packer.exe", "execute", "packer-provisioner-shell"} | |
2025/01/26 14:44:23 Waiting for RPC address for: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] Packer version: 1.12.0 [go1.22.9 windows amd64] | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 packer.exe plugin: [WARN] Config file doesn't exist: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] Setting cache directory: C:\Users\rikvt\OneDrive\Documenten\nvk-terraform\ubuntu-server-jammy\packer_cache | |
2025/01/26 14:44:23 packer.exe plugin: Plugin port range: [10000,25000] | |
2025/01/26 14:44:23 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000 | |
2025/01/26 14:44:23 Received tcp RPC address for C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: addr is 127.0.0.1:10000 | |
2025/01/26 14:44:23 packer.exe plugin: Waiting for connection... | |
2025/01/26 14:44:23 packer.exe plugin: Serving a plugin connection... | |
2025/01/26 14:44:23 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 [INFO] Starting external plugin C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe execute packer-provisioner-file | |
2025/01/26 14:44:23 Starting plugin: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe []string{"C:\\Users\\rikvt\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\\packer.exe", "execute", "packer-provisioner-file"} | |
2025/01/26 14:44:23 Waiting for RPC address for: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] Packer version: 1.12.0 [go1.22.9 windows amd64] | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 packer.exe plugin: [WARN] Config file doesn't exist: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:23 packer.exe plugin: [INFO] Setting cache directory: C:\Users\rikvt\OneDrive\Documenten\nvk-terraform\ubuntu-server-jammy\packer_cache | |
2025/01/26 14:44:23 packer.exe plugin: Plugin port range: [10000,25000] | |
2025/01/26 14:44:23 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000 | |
2025/01/26 14:44:23 Received tcp RPC address for C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: addr is 127.0.0.1:10000 | |
2025/01/26 14:44:23 packer.exe plugin: Waiting for connection... | |
2025/01/26 14:44:23 packer.exe plugin: Serving a plugin connection... | |
2025/01/26 14:44:23 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:23 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:23 [INFO] Starting external plugin C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe execute packer-provisioner-shell | |
2025/01/26 14:44:23 Starting plugin: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe []string{"C:\\Users\\rikvt\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\\packer.exe", "execute", "packer-provisioner-shell"} | |
2025/01/26 14:44:23 Waiting for RPC address for: C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe | |
2025/01/26 14:44:24 packer.exe plugin: [INFO] Packer version: 1.12.0 [go1.22.9 windows amd64] | |
2025/01/26 14:44:24 packer.exe plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2025/01/26 14:44:24 packer.exe plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:24 packer.exe plugin: [WARN] Config file doesn't exist: C:\Users\rikvt\AppData\Roaming\packer.config | |
2025/01/26 14:44:24 packer.exe plugin: [INFO] Setting cache directory: C:\Users\rikvt\OneDrive\Documenten\nvk-terraform\ubuntu-server-jammy\packer_cache | |
2025/01/26 14:44:24 packer.exe plugin: Plugin port range: [10000,25000] | |
2025/01/26 14:44:24 packer.exe plugin: Plugin address: tcp 127.0.0.1:10000 | |
2025/01/26 14:44:24 Received tcp RPC address for C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: addr is 127.0.0.1:10000 | |
2025/01/26 14:44:24 packer.exe plugin: Waiting for connection... | |
2025/01/26 14:44:24 packer.exe plugin: Serving a plugin connection... | |
2025/01/26 14:44:24 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:24 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:24 packer.exe plugin: [DEBUG] - common: sending ConfigSpec as gob | |
2025/01/26 14:44:24 [DEBUG] - common: receiving ConfigSpec as gob | |
2025/01/26 14:44:24 ui: ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: output will be in this color. | |
2025/01/26 14:44:24 ui: | |
2025/01/26 14:44:24 Build debug mode: false | |
2025/01/26 14:44:24 Force build: false | |
2025/01/26 14:44:24 On error: | |
2025/01/26 14:44:24 Waiting on builds to complete... | |
2025/01/26 14:44:24 Starting build run: ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy | |
2025/01/26 14:44:24 Running builder: proxmox-iso | |
2025/01/26 14:44:24 [INFO] (telemetry) Starting builder proxmox-iso.ubuntu-server-jammy | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:24 using token auth | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:24 No CD files specified. CD disk will not be made. | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: 2025/01/26 14:44:24 No URLs were provided to Step Download. Continuing... | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: panic: runtime error: index out of range [1] with length 1 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: goroutine 9 [running]: | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.generateProxmoxDisks({0x209ea00, 0x0, 0x0?}, {0xc000132000, 0x1, 0x1?}, {0x0?, 0x0, 0x0?}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:593 +0x213c | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*stepStartVM).Run(0xc0001edec0, {0x13ff4fd?, 0xc00048c320?}, {0x17ac8e8, 0xc000715800}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:110 +0x165 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk/multistep.(*BasicRunner).Run(0xc000715920, {0x17acb50, 0xc00048c320}, {0x17ac8e8, 0xc000715800}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk@v0.5.4/multistep/basic_runner.go:73 +0x2be | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*Builder).Run(0xc00016c000, {0x17acb50, 0xc00048c320}, {0x17b2058?, 0xc0007157d0}, {0x17a0b60?, 0xc0003c7960}, {0x17ac8e8?, 0xc000715800?}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/builder.go:111 +0xeab | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso.(*Builder).Run(0xc00017c000, {0x17acb50, 0xc00048c320}, {0x17b2058, 0xc0007157d0}, {0x17a0b60, 0xc0003c7960}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso/builder.go:47 +0x357 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk/rpc.(*BuilderServer).Run(0xc00050e580, 0x3a7ad8?, 0xc0003a7abc) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk@v0.5.4/rpc/builder.go:120 +0x1c8 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect.Value.call({0xc000528d80?, 0xc000516838?, 0x0?}, {0x13f8e19, 0x4}, {0xc0007d9ef8, 0x3, 0x0?}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect/value.go:596 +0xce7 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect.Value.Call({0xc000528d80?, 0xc000516838?, 0x0?}, {0xc0007d9ef8?, 0x0?, 0x0?}) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect/value.go:380 +0xb9 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc.(*service).call(0xc00050e5c0, 0x0?, 0x0?, 0xc000171f80, 0xc000189d00, 0x0?, {0x11f3d20?, 0xc0003a7ab8?, 0x0?}, {0x11c4620, ...}, ...) | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc/server.go:382 +0x211 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: created by net/rpc.(*Server).ServeCodec in goroutine 1 | |
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc/server.go:479 +0x410 | |
2025/01/26 14:44:24 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51614->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 14:44:24 [INFO] (telemetry) ending proxmox-iso.ubuntu-server-jammy | |
2025/01/26 14:44:24 ui error: Build 'ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy' errored after 9 milliseconds 581 microseconds: unexpected EOF | |
2025/01/26 14:44:24 ui: | |
==> Wait completed after 9 milliseconds 581 microseconds | |
2025/01/26 14:44:24 machine readable: error-count []string{"1"} | |
2025/01/26 14:44:24 ui error: | |
==> Some builds didn't complete successfully and had errors: | |
2025/01/26 14:44:24 machine readable: ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy,error []string{"unexpected EOF"} | |
2025/01/26 14:44:24 ui error: --> ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: unexpected EOF | |
2025/01/26 14:44:24 ui: | |
==> Builds finished but no artifacts were created. | |
2025/01/26 14:44:24 [INFO] (telemetry) Finalizing. | |
2025/01/26 14:44:24 C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe: plugin process exited | |
2025/01/26 14:44:24 waiting for all plugin processes to complete... | |
2025/01/26 14:44:24 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51615->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 14:44:24 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51617->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 14:44:24 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51616->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 14:44:24 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited | |
2025/01/26 14:44:24 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited | |
2025/01/26 14:44:24 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\rikvt\OneDrive\Documenten\nvk-terraform\ubuntu-server-jammy> packer build -var-file='proxmox-credentials.pkr.hcl' .\ubuntu-server-jammy.pkr.hcl | |
ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: output will be in this color. | |
Build 'ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy' errored after 9 milliseconds 792 microseconds: unexpected EOF | |
==> Wait completed after 10 milliseconds 331 microseconds | |
==> Some builds didn't complete successfully and had errors: | |
--> ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: unexpected EOF | |
==> Builds finished but no artifacts were created. | |
panic: runtime error: index out of range [1] with length 1 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: goroutine 10 [running]: | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.generateProxmoxDisks({0x209ea00, 0x0, 0x0?}, {0xc00043c000, 0x1, 0x1?}, {0x0?, 0x0, 0x0?}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:593 +0x213c | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*stepStartVM).Run(0xc0005c8040, {0x13ff4fd?, 0xc00008a8c0?}, {0x17ac8e8, 0xc00010a480}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:110 +0x165 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk/multistep.(*BasicRunner).Run(0xc00010ad20, {0x17acb50, 0xc00008a8c0}, {0x17ac8e8, 0xc00010a480}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk@v0.5.4/multistep/basic_runner.go:73 +0x2be | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*Builder).Run(0xc00077f800, {0x17acb50, 0xc00008a8c0}, {0x17b2058?, 0xc00010a420}, {0x17a0b60?, 0xc00007c000}, {0x17ac8e8?, 0xc00010a480?}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/builder.go:111 +0xeab | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso.(*Builder).Run(0xc000166000, {0x17acb50, 0xc00008a8c0}, {0x17b2058, 0xc00010a420}, {0x17a0b60, 0xc00007c000}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso/builder.go:47 +0x357 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk/rpc.(*BuilderServer).Run(0xc0001e2840, 0x47fb48?, 0xc00047fb2c) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-sdk@v0.5.4/rpc/builder.go:120 +0x1c8 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect.Value.call({0xc00070cd20?, 0xc000706830?, 0x0?}, {0x13f8e19, 0x4}, {0xc000439ef8, 0x3, 0x0?}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect/value.go:596 +0xce7 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect.Value.Call({0xc00070cd20?, 0xc000706830?, 0x0?}, {0xc000439ef8?, 0x0?, 0x0?}) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: reflect/value.go:380 +0xb9 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc.(*service).call(0xc0001e2880, 0x0?, 0x0?, 0xc0003e0020, 0xc000717100, 0x0?, {0x11f3d20?, 0xc00047fb28?, 0xc00043a248?}, {0x11c4620, ...}, ...) | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc/server.go:382 +0x211 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: created by net/rpc.(*Server).ServeCodec in goroutine 1 | |
2025/01/26 15:15:01 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: net/rpc/server.go:479 +0x410 | |
2025/01/26 15:15:01 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51984->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 15:15:01 [INFO] (telemetry) ending proxmox-iso.ubuntu-server-jammy | |
2025/01/26 15:15:01 ui error: Build 'ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy' errored after 9 milliseconds 792 microseconds: unexpected EOF | |
2025/01/26 15:15:01 ui: | |
==> Wait completed after 10 milliseconds 331 microseconds | |
2025/01/26 15:15:01 machine readable: error-count []string{"1"} | |
2025/01/26 15:15:01 ui error: | |
==> Some builds didn't complete successfully and had errors: | |
2025/01/26 15:15:01 machine readable: ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy,error []string{"unexpected EOF"} | |
2025/01/26 15:15:01 ui error: --> ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: unexpected EOF | |
2025/01/26 15:15:01 ui: | |
==> Builds finished but no artifacts were created. | |
2025/01/26 15:15:01 [INFO] (telemetry) Finalizing. | |
2025/01/26 15:15:01 C:\Users\rikvt\AppData\Roaming\packer.d\plugins\github.com\hashicorp\proxmox\packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe: plugin process exited | |
2025/01/26 15:15:02 waiting for all plugin processes to complete... | |
2025/01/26 15:15:02 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51985->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 15:15:02 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51989->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 15:15:02 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:51988->127.0.0.1:10000: wsarecv: De externe host heeft een verbinding verbroken. | |
2025/01/26 15:15:02 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited | |
2025/01/26 15:15:02 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited | |
2025/01/26 15:15:02 C:\Users\rikvt\AppData\Local\Microsoft\WinGet\Packages\Hashicorp.Packer_Microsoft.Winget.Source_8wekyb3d8bbwe\packer.exe: plugin process exited | |
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
Packer crashed! This is always indicative of a bug within Packer. | |
A crash log has been placed at "crash.log" relative to your current | |
working directory. It would be immensely helpful if you could please | |
report the crash with Packer[1] so that we can fix this. | |
[1]: https://github.com/hashicorp/packer/issues | |
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment