here some verbose log of the ansible run: packer build --var-file templates/vars.pkrvars.json templates/kvm/centos7/packer-kvm-centos7.json qemu: output will be in this color.
==> qemu: Retrieving ISO ==> qemu: Trying http://linuxsoft.cern.ch/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso ==> qemu: Trying http://linuxsoft.cern.ch/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso?checksum=sha256%3A07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a ==> qemu: http://linuxsoft.cern.ch/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso?checksum=sha256%3A07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a => /home/USER/packer-cloudstack-templates/packer_cache/e476ea1d3ef3c2e3966a7081ac4239cd5ae5e8a3.iso ==> qemu: Creating floppy disk... qemu: Copying files flatly from floppy_files qemu: Copying file: templates/ks/CentOS/7/CentOS-7-x86_64-cloud.cfg qemu: Done copying files from floppy_files qemu: Collecting paths from floppy_dirs qemu: Resulting paths from floppy_dirs : [] qemu: Done copying paths from floppy_dirs ==> qemu: Found port for communicator (SSH, WinRM, etc): 3139. ==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1 ==> qemu: Starting VM, booting from CD-ROM ==> qemu: Waiting 20s for boot... ==> qemu: Connecting to VM via VNC (127.0.0.1:5925) ==> qemu: Typing the boot command over VNC... qemu: Not using a NetBridge -- skipping StepWaitGuestAddress ==> qemu: Using ssh communicator to connect: 127.0.0.1 ==> qemu: Waiting for SSH to become available... ==> qemu: Connected to SSH! ==> qemu: Provisioning with Ansible... qemu: Not using Proxy adapter for Ansible run: qemu: Using ssh keys from Packer communicator... ==> qemu: Executing Ansible: ansible-playbook -e packer_build_name="qemu" -e packer_builder_type=qemu -e packer_http_addr=10.0.2.2:0 --ssh-extra-args '-o IdentitiesOnly=yes' -vvvv -e ansible_ssh_private_key_file=/tmp/ansible-key174874968 -i /tmp/packer-provisioner-ansible785963223 /home/USER/packer-cloudstack-templates/templates/kvm/centos7/playbooks/main.yml qemu: ansible-playbook 2.10.5 qemu: config file = /etc/ansible/ansible.cfg qemu: configured module search path = ['/home/USER/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] qemu: ansible python module location = /home/USER/packer-cloudstack-templates/ansible/lib/python3.9/site-packages/ansible qemu: executable location = /home/USER/packer-cloudstack-templates/ansible/bin/ansible-playbook qemu: python version = 3.9.1 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] qemu: Using /etc/ansible/ansible.cfg as config file qemu: setting up inventory plugins qemu: host_list declined parsing /tmp/packer-provisioner-ansible785963223 as it did not pass its verify_file() method qemu: script declined parsing /tmp/packer-provisioner-ansible785963223 as it did not pass its verify_file() method qemu: auto declined parsing /tmp/packer-provisioner-ansible785963223 as it did not pass its verify_file() method qemu: Parsed /tmp/packer-provisioner-ansible785963223 inventory source with ini plugin qemu: Loading callback plugin default of type stdout, v2.0 from /home/USER/packer-cloudstack-templates/ansible/lib/python3.9/site-packages/ansible/plugins/callback/default.py qemu: Skipping callback 'default', as we already have a stdout callback. qemu: Skipping callback 'minimal', as we already have a stdout callback. qemu: Skipping callback 'oneline', as we already have a stdout callback. qemu: qemu: PLAYBOOK: main.yml ************************************************************* qemu: Positional arguments: /home/USER/packer-cloudstack-templates/templates/kvm/centos7/playbooks/main.yml qemu: verbosity: 4 qemu: connection: smart qemu: timeout: 10 qemu: ssh_extra_args: '-o IdentitiesOnly=yes' qemu: become_method: sudo qemu: tags: ('all',) qemu: inventory: ('/tmp/packer-provisioner-ansible785963223',) qemu: extra_vars: ('packer_build_name="qemu"', 'packer_builder_type=qemu', 'packer_http_addr=10.0.2.2:0', 'ansible_ssh_private_key_file=/tmp/ansible-key174874968') qemu: forks: 5 qemu: 1 plays in /home/USER/packer-cloudstack-templates/templates/kvm/centos7/playbooks/main.yml qemu: qemu: PLAY [Configure new VM] ******************************************************** qemu: qemu: TASK [Gathering Facts] ********************************************************* qemu: task path: /home/USER/packer-cloudstack-templates/templates/kvm/centos7/playbooks/main.yml:1 qemu: <127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: root qemu: <127.0.0.1> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=3139 -o 'IdentityFile="/tmp/ansible-key174874968"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 '-o IdentitiesOnly=yes' -o ControlPath=/home/ismailli/.ansible/cp/d4ca02e546 127.0.0.1 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"'' qemu: <127.0.0.1> (255, b'', b'OpenSSH_8.4p1, OpenSSL 1.1.1i FIPS 8 Dec 2020 debug1: Reading configuration data /home/USER/.ssh/config debug1: /home/USER/.ssh/config line 5: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0 debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug2: checking match for \'final all\' host 127.0.0.1 originally 127.0.0.1 debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched \'final\' debug2: match not found debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only) debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-] debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512] debug1: configuration requests final Match pass debug2: resolve_canonicalize: hostname 127.0.0.1 is address debug1: re-parsing configuration debug1: Reading configuration data /home/USER/.ssh/config debug1: /home/USER/.ssh/config line 5: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0 debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug2: checking match for \'final all\' host 127.0.0.1 originally 127.0.0.1 debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: matched \'final\' debug2: match found debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-] debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512] debug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts\' -> \'/home/USER/.ssh/known_hosts\' debug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts2\' -> \'/home/USER/.ssh/known_hosts2\' debug1: auto-mux: Trying existing master debug1: Control socket "/home/USER/.ansible/cp/d4ca02e546" does not exist debug2: ssh_connect_direct debug1: Connecting to 127.0.0.1 [127.0.0.1] port 3139. debug2: fd 4 setting O_NONBLOCK debug1: fd 4 clearing O_NONBLOCK debug1: Connection established. debug3: timeout: 10000 ms remain after connect debug1: identity file /tmp/ansible-key174874968 type -1 debug1: identity file /tmp/ansible-key174874968-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006 debug2: fd 4 setting O_NONBLOCK debug1: Authenticating to 127.0.0.1:3139 as \'root\' debug3: put_host_port: [127.0.0.1]:3139 debug3: hostkeys_foreach: reading file "/home/USER/.ssh/known_hosts" debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],ssh-ed25519,[email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa debug2: ciphers ctos: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr debug2: ciphers stoc: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512 debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512 debug2: compression ctos: none,[email protected],zlib debug2: compression stoc: none,[email protected],zlib debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,[email protected] debug2: compression stoc: none,[email protected] debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none debug1: kex: curve25519-sha256 need=32 dh_need=32 debug1: kex: curve25519-sha256 need=32 dh_need=32 debug3: send packet: type 30 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug3: receive packet: type 31 debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Es8Oo2XjdSova3XecTHlqE/TfWdQu5mz0AkCnMBAuIc debug3: put_host_port: [127.0.0.1]:3139 debug3: put_host_port: [127.0.0.1]:3139 debug3: hostkeys_foreach: reading file "/home/USER/.ssh/known_hosts" debug1: checking without port identifier debug3: hostkeys_foreach: reading file "/home/USER/.ssh/known_hosts" Warning: Permanently added \'[127.0.0.1]:3139\' (ECDSA) to the list of known hosts. debug3: send packet: type 21 debug2: set_newkeys: mode 1 debug1: rekey out after 4294967296 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug3: receive packet: type 21 debug1: SSH2_MSG_NEWKEYS received debug2: set_newkeys: mode 0 debug1: rekey in after 4294967296 blocks debug1: Will attempt key: /tmp/ansible-key174874968 explicit debug2: pubkey_prepare: done debug3: send packet: type 5 debug3: receive packet: type 7 debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey debug3: authmethod_lookup gssapi-with-mic debug3: remaining preferred: gssapi-keyex,hostbased,publickey debug3: authmethod_is_enabled gssapi-with-mic debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information\nNo Kerberos credentials available (default cache: KCM:)\n\n debug1: Unspecified GSS failure. Minor code may provide more information\nNo Kerberos credentials available (default cache: KCM:)\n\n debug1: Unspecified GSS failure. Minor code may provide more information\nFeature not available\n\n debug2: we did not send a packet, disable method debug3: authmethod_lookup gssapi-keyex debug3: remaining preferred: hostbased,publickey debug3: authmethod_lookup publickey debug3: remaining preferred: ,publickey debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Trying private key: /tmp/ansible-key174874968 Load key "/tmp/ansible-key174874968": invalid format debug2: we did not send a packet, disable method debug1: No more authentication methods to try. [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). ') qemu: fatal: [packer-template]: UNREACHABLE! => { qemu: "changed": false, qemu: "msg": "Failed to connect to the host via ssh: OpenSSH_8.4p1, OpenSSL 1.1.1i FIPS 8 Dec 2020 debug1: Reading configuration data /home/USER/.ssh/config debug1: /home/USER/.ssh/config line 5: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0 debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug2: checking match for 'final all' host 127.0.0.1 originally 127.0.0.1 debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched 'final' debug2: match not found debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only) debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-] debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512] debug1: configuration requests final Match pass debug2: resolve_canonicalize: hostname 127.0.0.1 is address debug1: re-parsing configuration debug1: Reading configuration data /home/USER/.ssh/config debug1: /home/USER/.ssh/config line 5: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0 debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug2: checking match for 'final all' host 127.0.0.1 originally 127.0.0.1 debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: matched 'final' debug2: match found debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-] debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512] debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/USER/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/USER/.ssh/known_hosts2' debug1: auto-mux: Trying existing master debug1: Control socket \"/home/USER/.ansible/cp/d4ca02e546\" does not exist debug2: ssh_connect_direct debug1: Connecting to 127.0.0.1 [127.0.0.1] port 3139. debug2: fd 4 setting O_NONBLOCK debug1: fd 4 clearing O_NONBLOCK debug1: Connection established. debug3: timeout: 10000 ms remain after connect debug1: identity file /tmp/ansible-key174874968 type -1 debug1: identity file /tmp/ansible-key174874968-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006 debug2: fd 4 setting O_NONBLOCK debug1: Authenticating to 127.0.0.1:3139 as 'root' debug3: put_host_port: [127.0.0.1]:3139 debug3: hostkeys_foreach: reading file \"/home/USER/.ssh/known_hosts\" debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],ssh-ed25519,[email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa debug2: ciphers ctos: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr debug2: ciphers stoc: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512 debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512 debug2: compression ctos: none,[email protected],zlib debug2: compression stoc: none,[email protected],zlib debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,[email protected] debug2: compression stoc: none,[email protected] debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none debug1: kex: curve25519-sha256 need=32 dh_need=32 debug1: kex: curve25519-sha256 need=32 dh_need=32 debug3: send packet: type 30 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug3: receive packet: type 31 debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Es8Oo2XjdSova3XecTHlqE/TfWdQu5mz0AkCnMBAuIc debug3: put_host_port: [127.0.0.1]:3139 debug3: put_host_port: [127.0.0.1]:3139 debug3: hostkeys_foreach: reading file \"/home/USER/.ssh/known_hosts\" debug1: checking without port identifier debug3: hostkeys_foreach: reading file \"/home/USER/.ssh/known_hosts\" Warning: Permanently added '[127.0.0.1]:3139' (ECDSA) to the list of known hosts. debug3: send packet: type 21 debug2: set_newkeys: mode 1 debug1: rekey out after 4294967296 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug3: receive packet: type 21 debug1: SSH2_MSG_NEWKEYS received debug2: set_newkeys: mode 0 debug1: rekey in after 4294967296 blocks debug1: Will attempt key: /tmp/ansible-key174874968 explicit debug2: pubkey_prepare: done debug3: send packet: type 5 debug3: receive packet: type 7 debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey debug3: authmethod_lookup gssapi-with-mic debug3: remaining preferred: gssapi-keyex,hostbased,publickey debug3: authmethod_is_enabled gssapi-with-mic debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information\nNo Kerberos credentials available (default cache: KCM:)\n\n debug1: Unspecified GSS failure. Minor code may provide more information\nNo Kerberos credentials available (default cache: KCM:)\n\n debug1: Unspecified GSS failure. Minor code may provide more information\nFeature not available\n\n debug2: we did not send a packet, disable method debug3: authmethod_lookup gssapi-keyex debug3: remaining preferred: hostbased,publickey debug3: authmethod_lookup publickey debug3: remaining preferred: ,publickey debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Trying private key: /tmp/ansible-key174874968 Load key \"/tmp/ansible-key174874968\": invalid format debug2: we did not send a packet, disable method debug1: No more authentication methods to try. [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", qemu: "unreachable": true qemu: } qemu: qemu: PLAY RECAP ********************************************************************* qemu: packer-template : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 qemu: ==> qemu: Provisioning step had errors: Running the cleanup provisioner, if present... ==> qemu: Deleting output directory... Build 'qemu' errored after 5 minutes 57 seconds: Error executing Ansible: Non-zero exit Doni schrieb am Freitag, 5. Februar 2021 um 11:17:48 UTC+1: > Hi! > > I'm building a centos7 template from iso and use an ssh username / > password for authentication. As a provisioner I'm using ansible remote but > have no luck connecting to my instance... The generated key in > /tmp/ansible-key**** is always empty and ansible can't connect with it. > This did work perfectly fine in the past but something must have changed as > the the communication over ansible is not working any longer. Do you have a > hint for me? > > I can provide logs if you need some and the json as well just ask. > > Regards > Doni > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3db9b6bd-a458-47c1-a1d8-865bc8b4d6c7n%40googlegroups.com.
