Skip to content

Build 'proxmoc-clone' errored: error starting vm: VM xxx already running #167

Description

@gponciano

I am using 2 JSON(builder and variables) files to create a template on Proxmox. The template creation starts and after 'Starting the VM', it throws me an error stating that the VM xxx is already running and then destroys the VM template.

Find the files below:
----THIS IS THE BUILDER FILE----
{
"builders": [{
"type": "proxmox-clone",
"proxmox_url": "https://{{user proxmox_hostname}}/api2/json",
"username": "{{user proxmox_username}}",
"password": "{{user proxmox_password}}",
"node": "{{user proxmox_node}}",
"insecure_skip_tls_verify": true,
"task_timeout": "10m",

    "clone_vm": "{{ user `clone_vm`}}",
    "full_clone": true,

    "template_name": "{{ user `clone_vm` }}{{ user `version_tag`}}",
    "template_description": "image made from packer",

    "os": "l26",
    "cores": 1,
    "sockets": 1,
    "memory": 2048,
    "network_adapters": [{
        "bridge": "vmbr0"
    }],

    "ssh_timeout": "90m",
    "ssh_password": "{{ user `ssh_password` }}",
    "ssh_username": "{{ user `ssh_username` }}"
}],

"provisioners": [{
    "pause_before": "20s",
    "type": "shell",
    "inline": [
        "echo {{ user `version_tag` }} > provision.txt",
        "sudo apt update",
        "sudo apt -y upgrade",
        "sudo apt -y install apache2",
        "sudo apt -y install qemu-guest-agent cloud-init"
    ]
}]

}

Anyone has come across this before? I saw a trend that suggests adding efidisk. However, this has been deprecated. I tried adding efi_config but no luck either.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions