Closed dashkan closed 2 years ago
Hello @dashkan, thanks for trying out the image-builder to build vsphere ubuntu nodes. It looks like the ssh process running on vm/machine running the image-builder, doesnt have ssh-rsa
as an accepted algorithm. Please edit the sshd config at /home/$USER/.ssh/config
and add the following two lines.
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
This will add rsa as an accepted algorithm and allow packer to negotiate with the vm being created during image building process. Try running the image-builder command after these changes.
image-builder build --os ubuntu --hypervisor vsphere --release-channel 1-23 --vsphere-config vsphere-connection.json --force
The ssh config changes do not need ssh process to be restarted to take effect. But if you still see the problem, you can try restarting the process with systemctl restart ssh
I will also update the documentation to reflect these instructions.
That resolved the issue. Docs state to use Ubuntu 22.04 which defaults to not having ssh-rsa algorithm enabled. Maybe docs should be updated....
What happened: Followed directions here
Everything seems to work until provisioning ansible.
Get the following error when building ubuntu vSphere ova image:
What you expected to happen: Successful build
How to reproduce it (as minimally and precisely as possible): N/A
Anything else we need to know?:
Environment: