Open 4censord opened 3 years ago
I assume it is some kind of ordering / race condition within the ubuntu installer. As in it installs packages first (and thus starting sshd) before creating users, so when packer tries to connect the user doesn't yet exist.
Centos works around this issue by opening the firewall as the last step, after everything has settled
This has been worked around in #7 (320e8de) but should be further investigated.
This timeout was lowered from the previous
60000s
value and thessh_handshake_attempts
(which was set to 10000) was removed. This is causing the ubuntu example to fail with the following errorI have not tested if adding the
ssh_handshake_attempts
is enough to get it working, but I was able to verify using the previous values work.While it's crappy to have those values set very high to get the example to work, I think we should keep the values as is (unless you want to investigate setting them more properly now).
_Originally posted by @ddelnano in https://github.com/ddelnano/packer-plugin-xenserver/pull/7#discussion_r616357669_