-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH communicator fails when ssh_password contains "#" #12904
Comments
Hi @digitalqualms, Looking into this one, this looks like a bug, but I'm not yet certain Packer is to blame here. I'll explain myself: I've not tested Proxmox yet (and likely won't as I don't have a working cluster to play with, nor am I an expert with the platform), but I've been playing with Qemu and a handcrafted preseed.txt on a Debian 12.5 VM. With a preseed statement like this:
In this scenario, the hash matches the expected password I did try as well to escape in the preseed file, and the quotes were part of the password in this case, but I'm not a preseed spec expert and I don't know what's the normal way to escape characters like these (if at all necessary). Looking at your template, I'm not sure how the VM's user accounts are initialised, but I suspect there may be something here, especially given that To help narrow-down the problem and help troubleshoot this, I suggest running Packer with a Hope that helps and we can narrow down the source of the problem! |
This issue has been migrated to hashicorp/packer-plugin-qemu#170 due to the Packer Plugin split. Please follow the new issue for updates. |
This issue has been migrated to hashicorp/packer-plugin-proxmox#258 due to the Packer Plugin split. Please follow the new issue for updates. |
Well, I thought I had a good reproducible issue but everything is working now. Not sure what changed but I'm not able to reproduce it. I'll reopen/refile if I find it again. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
When using the proxmox-iso, I was encountering SSH handshake error. It turned out that because my ssh_password value I was using contained the pound/hash symbol "#". It looks like this value isn't escaped properly.
Reproduction Steps
Create an HCL template that uses the ssh communicator. Set the ssh_password value to something that contain "#". Build fails with:
Packer version
1.9.4
Simplified Packer Template
Operating system and Environment details
Packer run from macOS 14.4.1 (23E224), arm64
Proxmox plugin: v1.1.7_x5.0_darwin_arm64
Connecting to Ubuntu 22.04
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: