-
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
builder/amazon: Crashing getting auto-generated password for instance #4164
Comments
|
Please supply the information requested in the issue template:
|
privateKey := state.Get("privateKey").(string) |
is this behavior repeatable? It says that the operation may take up to 15 minutes, but we've got a timeout of 5 minutes. I wonder if we should increase @pagemedias in the mean time you could probably get around this by setting |
It's not a timeout. It crashes because there is no key. When using Windows the admin password is set by cloudbase-init and encrypted with the public key from the keypair and the owner of the keypair can decrypt it with the private ssh key. |
Most likely introduced in #3953 or a configuration error (that we should catch in prepare). |
One problem with the setup is that it can only work with temporary keypairs since you can't both specify communicator But something like: {
"communicator": "winrm",
"ssh_private_key_file": "{{ user `home` }}/.ssh/id_rsa",
"winrm_username": "Aministrator",
"winrm_password": "",
"ssh_keypair_name": "my_aws_keypair"
} Should be possible. |
@pagemedias Can you post a minimal json that will reproduce this issue? |
I think this happens when you give an "ssh_keypair_name", but no "ssh_private_key_file", so somehow the prepare check for this condition disappeared. Does that sound correct, @rickard-von-essen? |
Agree |
Packer version from
packer version
0.11.0
Host platform
Windows 7 Enterprise
Crash Log
https://gist.github.com/pagemedias/c73c67216236ccd8192a2de866a0aa14
The text was updated successfully, but these errors were encountered: