New to packer, so probably totally messed up.
Trying to build an ubuntu-20.04 from the iso.
During the ubuntu install, I tell it to install the SSH server, but not copy any keys.
After initial install, ubuntu starts downloading updates, but before it finishes virtualbox terminates it with the message:
==> virtualbox-iso: Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
What are the username and password it is complaining about? I tried setting ssh_username and ssh_password in the .json file but nowhere are they given to the os during the install process, so I suspect I’m doing something wrong.
As the ubuntu os is still updating, it may be the ssh server isn’t even running at this point. I have ssh_timeout set to 1000s, which is about 16 min, and I get the above message much sooner than that.
Any hints would be much appreciated. Thanks.