Skip to content

Packer proxmox not turning on vm after install #314

@jasonhillva

Description

@jasonhillva

Overview of the Issue

Using proxmox 8.3.0 - latest stable. Using proxmox-plugin

I have a kali VM that I'm trying to setup on proxmox with this plugin. When I run the packer build command it connects, i see the VM start to be created. I can see the installation run and then when it is finished the VM goes to shutdown and restart and then doesn't. Then sometimes it successfully restarts. I'd say it fails 7/10 times.

I watch journalctl and it looks like when it works there are a few tasks that get created and then end, but when it fails it looks like there may be some missing.

The funny thing, is that when I detach the console of the VM build process and watch it complete, it seems to work more.

Reproduction Steps

I just run my packer command. I don't change from run to run. I just rerun the last command.

Plugin and Packer version

Packer Version v1.12.0
I use the plugin that is installed via packer plugin install.
I also add the following to the top of my template file:
required_plugins {
proxmox = {
version = ">= 1.2.2"
source = "github.com/hashicorp/proxmox"
}

Simplified Packer Buildfile

packer buildfile:
https://gist.github.com/jasonhillva/9b715e3ccf56c7cebaf5f31ed568009d

Operating system and Environment details

proxmox 8.3.0 running on a minisforum HM90
ryzen 9 4900H
32gb ram

Log Fragments and crash.log files

025/03/11 15:57:03 ui: ==> proxmox-iso.kali: Starting HTTP server on port 8069
2025/03/11 15:57:03 ui: ==> proxmox-iso.kali: Waiting 10s for boot
2025/03/11 15:57:13 ui: ==> proxmox-iso.kali: Typing the boot command
2025/03/11 15:57:13 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:13 [INFO] Waiting 1s
2025/03/11 15:57:14 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:14 [INFO] Waiting 1s
2025/03/11 15:57:24 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:24 [DEBUG] Unable to get address during connection step: 500 QEMU guest agent is not running
2025/03/11 15:57:24 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:24 [INFO] Waiting for SSH, up to timeout: 20m0s
2025/03/11 15:57:24 ui: ==> proxmox-iso.kali: Waiting for SSH to become available...
2025/03/11 15:57:27 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:27 [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
2025/03/11 15:57:35 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:35 [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
2025/03/11 15:57:44 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:44 [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
2025/03/11 15:57:52 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:52 [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
2025/03/11 15:57:57 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:57:57 [DEBUG] Error getting SSH address: 500 VM 101 is not running
2025/03/11 15:58:02 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:58:02 [DEBUG] Error getting SSH address: 500 VM 101 is not running
2025/03/11 15:58:07 packer-plugin-proxmox_v1.2.2_x5.0_linux_amd64 plugin: 2025/03/11 15:58:07 [DEBUG] Error getting SSH address: 500 VM 101 is not running

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions