Skip to content

Boot command not working #163

@PessimistTech

Description

@PessimistTech

Getting the following error when trying to build an image using a boot command

Error detecting local IP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

The actual failure here seems to be when packer tries to connect to the VM via SSH after the VNC connection, but this fails as the VM is still sitting at the install menu. No boot command or interaction is getting sent to the VM over the VNC connection as far as I am able to tell. The VM is only up for a few seconds before this failure tears it back down.

My assumption is that the VNC connection is getting established (as the logs indicate a 200 response to console connection request), but the boot command is failing to be sent and the packer process just moves on to the next step, where it fails to connect as it wasn't able to get far enough to get an IP address and initialize the VM.

Extra info

following the guide here: https://xcp-ng.org/blog/2024/02/22/using-packer-with-xcp-ng/
saw this issue with the exact setup described in the guide, and after various tweaks to try and get this working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions