-
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
Auth fails with Vagrant ubuntu/jammy64
image
#11785
Comments
I wonder if this is related to the same errors encountered in this issue: #11733. Namely, Ubuntu 22.04 updates OpenSSL to a version that does not accept |
I saw that issue too, but what surprised me is that a manual As far as I understood, it calls Also, tried the same directly on a Digital Ocean VPS instance, but got the same connection issue. For that case, it's probably the same problem as in #11733. |
Out of curiosity, what type of key is generated at |
Seems to be an RSA key. And there is an option to inject a more secure key (specific to that instance), which is done by Vagrant, but still an RSA key I believe. Even with that key injection enabled, it fails. And there seems to be no option to tell Vagrant to generate ed25519 keys instead, as mentioned in other issues for AWS. |
I saw that the relevant plugins are updated by now (as mentioned in the AWS issue). I added a plugin block to depend on the latest released version, and it solved the problem for me. Auth works again 🎉 |
@dnaka91 thanks for testing and closing the issue. I noted this issue yesterday but didn't get a chance to come back and update. Thanks to all for pushing this issue forward, and for your patience why we got this squared away. |
Just for reference, anybody that may find this issue in the future. This needed to be added to my Packer file to use the latest versions for Vagrant and Ansible (which contain the required fixes for the SSH authentication). packer {
required_plugins {
digitalocean = {
version = "~> 1.0" # effectively 1.0.6
source = "github.com/hashicorp/digitalocean"
}
vagrant = {
version = "~> 1.0" # effectively 1.0.2
source = "github.com/hashicorp/vagrant"
}
}
} |
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. |
Overview of the Issue
I have a Packer setup with DigitalOcean as main source to create VPS image snapshots, and using Vagrant as source for local testing.
For provisioning, I use Ansible.
My setup works perfectly fine when using
ubuntu/impish64
as image for Vagrant, but as soon a I try to update to the latest LTS releaseubuntu/jammy64
, an error happens during authentication.If I just create a new VM with Vagrant and image
ubuntu/jammy64
, everything works fine and I can ssh into the instance.Reproduction Steps
Use the Packer template from below and run
packer build
. The provisioner doesn't really matter, as the error happens before provisioning.Packer version
Simplified Packer Template
Operating system and Environment details
MacOS 12.3.1
Darwin 21.4.0 x86_64 i386
Using the VirtualBox provider with Vagrant.
Log Fragments and crash.log files
The relevant logs are probable these:
The text was updated successfully, but these errors were encountered: