SSH handshake error

127 views
Skip to first unread message

Bikash Bhandari

unread,
Feb 7, 2019, 6:07:30 AM2/7/19
to Packer
I am unable to to create an OVA/OVF from an existing OVA. The issue is on using ssh_private_key_file. I have tried with giving absolute path to id_rsa file with permission 600 and 400. However, the issue is stil the same. Having said, that I could connect to the machine form the host machine when the machine was powered on for few seconds in between. is this a packer bug or related to virtualbox I have no idea. Even I have tried with different versions of virtualbox, the issue is recurrent.


My json file. 

{  

"builders": [{

    "type": "virtualbox-ovf",

    "source_path": "/root/<filename>.ova",

    "ssh_username": "support",

    "ssh_private_key_file": "/home/ubuntu/id_rsa",

    "ssh_port": 22,

    "vrdp_bind_address": "0.0.0.0",

    "guest_additions_mode": "disable",

    "virtualbox_version_file": "",

    "headless": true,

    "ssh_skip_nat_mapping": "true",

    "boot_wait": "120s",

    "ssh_wait_timeout": "10m",

    "shutdown_command": "",

"vboxmanage": [  

[

    "modifyvm",

    "{{.Name}}",

    "--nic1",

    "bridged"

  ],

  [

    "modifyvm",

    "{{.Name}}",

    "--bridgeadapter1",

    "ens160"

  ]

]

}],

"provisioners": [

    {

      "type": "file",

      "source": "/home/ubuntu/<file>.sh",

      "destination": "/tmp/"

    },

{

      "type": "shell",

      "inline": ["sudo -S /bin/bash /tmp/<file>.sh"],

      "expect_disconnect": "true",

      "start_retry_timeout":"10m"

      

   }

    ]


  

}


Screen Shot 2019-02-07 at 16.42.02.png

Rickard von Essen

unread,
Feb 7, 2019, 6:18:15 AM2/7/19
to packe...@googlegroups.com
Could you rerun with
PACKER_LOG=1 packer build -on-error=ask template.json

When the ssh fails. Connect with ssh manually with -vv argument. Post the logs/output of both the manual ssh and Packer here. 

--
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/mitchellh/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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/5bcd338b-2db6-4854-8f5a-f2e8e0c3fe2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bikash Bhandari

unread,
Feb 7, 2019, 9:46:50 AM2/7/19
to packe...@googlegroups.com
packer.png
ssh.log

Rickard von Essen

unread,
Feb 7, 2019, 10:37:48 AM2/7/19
to packe...@googlegroups.com

Bikash Bhandari

unread,
Feb 7, 2019, 11:05:03 AM2/7/19
to packe...@googlegroups.com


===Packer_log====


2019/02/07 18:40:12 packer: 2019/02/07 18:40:12 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:12 packer: 2019/02/07 18:40:12 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:19 packer: 2019/02/07 18:40:19 [INFO] Attempting SSH connection...

2019/02/07 18:40:19 packer: 2019/02/07 18:40:19 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:19 packer: 2019/02/07 18:40:19 [DEBUG] handshaking with SSH

2019/02/07 18:40:19 packer: 2019/02/07 18:40:19 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:19 packer: 2019/02/07 18:40:19 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:26 packer: 2019/02/07 18:40:26 [INFO] Attempting SSH connection...

2019/02/07 18:40:26 packer: 2019/02/07 18:40:26 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:26 packer: 2019/02/07 18:40:26 [DEBUG] handshaking with SSH

2019/02/07 18:40:26 packer: 2019/02/07 18:40:26 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:26 packer: 2019/02/07 18:40:26 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:33 packer: 2019/02/07 18:40:33 [INFO] Attempting SSH connection...

2019/02/07 18:40:33 packer: 2019/02/07 18:40:33 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:33 packer: 2019/02/07 18:40:33 [DEBUG] handshaking with SSH

2019/02/07 18:40:33 packer: 2019/02/07 18:40:33 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:33 packer: 2019/02/07 18:40:33 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:40 packer: 2019/02/07 18:40:40 [INFO] Attempting SSH connection...

2019/02/07 18:40:40 packer: 2019/02/07 18:40:40 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:40 packer: 2019/02/07 18:40:40 [DEBUG] handshaking with SSH

2019/02/07 18:40:40 packer: 2019/02/07 18:40:40 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:40 packer: 2019/02/07 18:40:40 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:47 packer: 2019/02/07 18:40:47 [INFO] Attempting SSH connection...

2019/02/07 18:40:47 packer: 2019/02/07 18:40:47 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:47 packer: 2019/02/07 18:40:47 [DEBUG] handshaking with SSH

2019/02/07 18:40:47 packer: 2019/02/07 18:40:47 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:47 packer: 2019/02/07 18:40:47 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:54 packer: 2019/02/07 18:40:54 [INFO] Attempting SSH connection...

2019/02/07 18:40:54 packer: 2019/02/07 18:40:54 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:54 packer: 2019/02/07 18:40:54 [DEBUG] handshaking with SSH

2019/02/07 18:40:54 packer: 2019/02/07 18:40:54 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:54 packer: 2019/02/07 18:40:54 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:41:01 packer: 2019/02/07 18:41:01 [INFO] Attempting SSH connection...

2019/02/07 18:41:01 packer: 2019/02/07 18:41:01 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:41:01 packer: 2019/02/07 18:41:01 [DEBUG] handshaking with SSH

2019/02/07 18:41:01 packer: 2019/02/07 18:41:01 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:41:01 packer: 2019/02/07 18:41:01 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:41:01 ui error: ==> virtualbox-ovf: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:41:01 ui error: ==> virtualbox-ovf: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:41:01 ui: ==> virtualbox-ovf: Step "StepConnect" failed

2019/02/07 18:41:01 ui: ask: ==> virtualbox-ovf: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?

2019/02/07 18:41:38 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepTypeBootCommand'. Press enter to continue.

2019/02/07 18:41:38 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepRun'. Press enter to continue.

2019/02/07 18:41:39 packer: 2019/02/07 18:41:39 Executing VBoxManage: []string{"controlvm", "packer-virtualbox-ovf-1549542806", "poweroff"}

2019/02/07 18:41:41 packer: 2019/02/07 18:41:41 stdout:

2019/02/07 18:41:41 packer: 2019/02/07 18:41:41 stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/07 18:41:41 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepVBoxManage'. Press enter to continue.

2019/02/07 18:41:41 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepForwardSSH'. Press enter to continue.

2019/02/07 18:41:42 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepAttachFloppy'. Press enter to continue.

2019/02/07 18:41:43 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepConfigureVRDP'. Press enter to continue.

2019/02/07 18:41:43 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepAttachGuestAdditions'. Press enter to continue.

2019/02/07 18:41:44 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepImport'. Press enter to continue.

2019/02/07 18:41:44 ui: ==> virtualbox-ovf: Deregistering and deleting imported VM...

2019/02/07 18:41:44 packer: 2019/02/07 18:41:44 Executing VBoxManage: []string{"unregistervm", "packer-virtualbox-ovf-1549542806", "--delete"}

2019/02/07 18:41:46 packer: 2019/02/07 18:41:46 stdout:

2019/02/07 18:41:46 packer: 2019/02/07 18:41:46 stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/07 18:41:46 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepDownload'. Press enter to continue.

2019/02/07 18:41:46 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepDownloadGuestAdditions'. Press enter to continue.

2019/02/07 18:41:47 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepHTTPServer'. Press enter to continue.

2019/02/07 18:41:48 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepCreateFloppy'. Press enter to continue.

2019/02/07 18:41:49 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepSuppressMessages'. Press enter to continue.

2019/02/07 18:41:50 ui: ask: ==> virtualbox-ovf: Pausing before cleanup of step 'StepOutputDir'. Press enter to continue.

2019/02/07 18:41:50 ui: ==> virtualbox-ovf: Deleting output directory...

2019/02/07 18:41:50 [INFO] (telemetry) ending virtualbox-ovf

2019/02/07 18:41:50 ui error: Build 'virtualbox-ovf' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:41:50 Waiting on builds to complete...

2019/02/07 18:41:50 Builds completed. Waiting on interrupt barrier...

2019/02/07 18:41:50 machine readable: error-count []string{"1"}

2019/02/07 18:41:50 ui error: 

==> Some builds didn't complete successfully and had errors:

2019/02/07 18:41:50 machine readable: virtualbox-ovf,error []string{"ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"}

2019/02/07 18:41:50 ui error: --> virtualbox-ovf: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:41:50 ui: 

==> Builds finished but no artifacts were created.

2019/02/07 18:41:50 [INFO] (telemetry) Finalizing.

2019/02/07 18:41:52 waiting for all plugin processes to complete...

2019/02/07 18:41:52 /usr/sbin/packer: plugin process exited



===> ssh-log======

OpenSSH_7.2p2 Ubuntu-4ubuntu2.6, OpenSSL 1.0.2g  1 Mar 2016

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 19: Applying options for *

debug2: resolving "192.168.4.222" port 22

debug2: ssh_connect_direct: needpriv 0

debug1: Connecting to 192.168.4.222 [192.168.4.222] port 22.

debug1: Connection established.

debug1: permanently_set_uid: 0/0

debug1: key_load_public: No such file or directory

debug1: identity file id_rsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file id_rsa-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.6

debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4

debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000

debug2: fd 3 setting O_NONBLOCK

debug1: Authenticating to 192.168.4.222:22 as 'support'

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug2: local client KEXINIT proposal

debug2: KEX algorithms: curve255...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,ext-info-c

debug2: host key algorithms: ssh-rsa-...@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ssh-ed2551...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519

debug2: ciphers ctos: chacha20...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc

debug2: ciphers stoc: chacha20...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc

debug2: MACs ctos: umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-s...@openssh.com,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: MACs stoc: umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-s...@openssh.com,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: compression ctos: none,zl...@openssh.com,zlib

debug2: compression stoc: none,zl...@openssh.com,zlib

debug2: languages ctos: 

debug2: languages stoc: 

debug2: first_kex_follows 0 

debug2: reserved 0 

debug2: peer server KEXINIT proposal

debug2: KEX algorithms: curve255...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256

debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr

debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr

debug2: MACs ctos: hmac-sha1,hmac-ripemd160

debug2: MACs stoc: hmac-sha1,hmac-ripemd160

debug2: compression ctos: none,zl...@openssh.com

debug2: compression stoc: none,zl...@openssh.com

debug2: languages ctos: 

debug2: languages stoc: 

debug2: first_kex_follows 0 

debug2: reserved 0 

debug1: kex: algorithm: curve255...@libssh.org

debug1: kex: host key algorithm: rsa-sha2-512

debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none

debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug1: Server host key: ssh-rsa SHA256:JSPp7kqw7o7P0T5PcdckxnFpATXO5eXZi+oG+1lDpy4

debug1: Host '192.168.4.222' is known and matches the RSA host key.

debug1: Found key in /root/.ssh/known_hosts:6

debug2: set_newkeys: mode 1

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug2: set_newkeys: mode 0

debug1: rekey after 4294967296 blocks

debug2: key: id_rsa ((nil)), explicit

debug1: SSH2_MSG_EXT_INFO received

debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>

debug2: service_accept: ssh-userauth

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey

debug1: Next authentication method: publickey

debug1: Trying private key: id_rsa

debug2: we sent a publickey packet, wait for reply

debug1: Authentication succeeded (publickey).

Authenticated to 192.168.4.222 ([192.168.4.222]:22).

debug1: channel 0: new [client-session]

debug2: channel 0: send open

debug1: Requesting no-more-...@openssh.com

debug1: Entering interactive session.

debug1: pledge: network

debug1: client_input_global_request: rtype hostk...@openssh.com want_reply 0

debug2: callback start

debug2: fd 3 setting TCP_NODELAY

debug2: client_session2_setup: id 0

debug2: channel 0: request pty-req confirm 1

debug1: Sending environment.

debug1: Sending env LANG = en_US.UTF-8

debug2: channel 0: request env confirm 0

debug2: channel 0: request shell confirm 1

debug2: callback done

debug2: channel 0: open confirm rwindow 0 rmax 32768

debug2: channel_input_status_confirm: type 99 id 0

debug2: PTY allocation request accepted on channel 0

debug2: channel 0: rcvd adjust 2097152

debug2: channel_input_status_confirm: type 99 id 0


Rickard von Essen

unread,
Feb 7, 2019, 12:09:03 PM2/7/19
to packe...@googlegroups.com
Include the full packer log and the command line you execute ssh with. 

Bikash Bhandari

unread,
Feb 7, 2019, 7:16:19 PM2/7/19
to packe...@googlegroups.com

PACKER_LOG=1 PACKER_LOG_PATH=packer.log packer build -on-error=ask -debug test.json 


2019/02/07 18:18:26 [INFO] Packer version: 1.3.4

2019/02/07 18:18:26 Packer Target OS/Arch: linux amd64

2019/02/07 18:18:26 Built with Go Version: go1.11.4

2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 Using internal plugin for profitbricks

2019/02/07 18:18:26 Using internal plugin for googlecompute

2019/02/07 18:18:26 Using internal plugin for azure-arm

2019/02/07 18:18:26 Using internal plugin for hyperv-iso

2019/02/07 18:18:26 Using internal plugin for openstack

2019/02/07 18:18:26 Using internal plugin for qemu

2019/02/07 18:18:26 Using internal plugin for scaleway

2019/02/07 18:18:26 Using internal plugin for tencentcloud-cvm

2019/02/07 18:18:26 Using internal plugin for virtualbox-ovf

2019/02/07 18:18:26 Using internal plugin for amazon-chroot

2019/02/07 18:18:26 Using internal plugin for vmware-vmx

2019/02/07 18:18:26 Using internal plugin for digitalocean

2019/02/07 18:18:26 Using internal plugin for cloudstack

2019/02/07 18:18:26 Using internal plugin for lxd

2019/02/07 18:18:26 Using internal plugin for oracle-classic

2019/02/07 18:18:26 Using internal plugin for oracle-oci

2019/02/07 18:18:26 Using internal plugin for parallels-pvm

2019/02/07 18:18:26 Using internal plugin for vmware-iso

2019/02/07 18:18:26 Using internal plugin for amazon-ebs

2019/02/07 18:18:26 Using internal plugin for null

2019/02/07 18:18:26 Using internal plugin for oneandone

2019/02/07 18:18:26 Using internal plugin for alicloud-ecs

2019/02/07 18:18:26 Using internal plugin for amazon-instance

2019/02/07 18:18:26 Using internal plugin for hcloud

2019/02/07 18:18:26 Using internal plugin for hyperv-vmcx

2019/02/07 18:18:26 Using internal plugin for triton

2019/02/07 18:18:26 Using internal plugin for amazon-ebssurrogate

2019/02/07 18:18:26 Using internal plugin for parallels-iso

2019/02/07 18:18:26 Using internal plugin for docker

2019/02/07 18:18:26 Using internal plugin for file

2019/02/07 18:18:26 Using internal plugin for lxc

2019/02/07 18:18:26 Using internal plugin for ncloud

2019/02/07 18:18:26 Using internal plugin for virtualbox-iso

2019/02/07 18:18:26 Using internal plugin for amazon-ebsvolume

2019/02/07 18:18:26 Using internal plugin for powershell

2019/02/07 18:18:26 Using internal plugin for salt-masterless

2019/02/07 18:18:26 Using internal plugin for ansible

2019/02/07 18:18:26 Using internal plugin for chef-client

2019/02/07 18:18:26 Using internal plugin for chef-solo

2019/02/07 18:18:26 Using internal plugin for puppet-masterless

2019/02/07 18:18:26 Using internal plugin for windows-shell

2019/02/07 18:18:26 Using internal plugin for breakpoint

2019/02/07 18:18:26 Using internal plugin for converge

2019/02/07 18:18:26 Using internal plugin for file

2019/02/07 18:18:26 Using internal plugin for shell-local

2019/02/07 18:18:26 Using internal plugin for windows-restart

2019/02/07 18:18:26 Using internal plugin for ansible-local

2019/02/07 18:18:26 Using internal plugin for puppet-server

2019/02/07 18:18:26 Using internal plugin for shell

2019/02/07 18:18:26 Using internal plugin for artifice

2019/02/07 18:18:26 Using internal plugin for compress

2019/02/07 18:18:26 Using internal plugin for docker-save

2019/02/07 18:18:26 Using internal plugin for docker-tag

2019/02/07 18:18:26 Using internal plugin for googlecompute-export

2019/02/07 18:18:26 Using internal plugin for vsphere

2019/02/07 18:18:26 Using internal plugin for alicloud-import

2019/02/07 18:18:26 Using internal plugin for checksum

2019/02/07 18:18:26 Using internal plugin for docker-push

2019/02/07 18:18:26 Using internal plugin for manifest

2019/02/07 18:18:26 Using internal plugin for vagrant

2019/02/07 18:18:26 Using internal plugin for vagrant-cloud

2019/02/07 18:18:26 Using internal plugin for googlecompute-import

2019/02/07 18:18:26 Using internal plugin for amazon-import

2019/02/07 18:18:26 Using internal plugin for docker-import

2019/02/07 18:18:26 Using internal plugin for shell-local

2019/02/07 18:18:26 Using internal plugin for vsphere-template

2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 Attempting to open config file: /root/.packerconfig

2019/02/07 18:18:26 [WARN] Config file doesn't exist: /root/.packerconfig

2019/02/07 18:18:26 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[azure-arm:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm scaleway:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway oracle-oci:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci amazon-instance:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance file:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file hcloud:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud triton:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton parallels-iso:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso profitbricks:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks ncloud:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud tencentcloud-cvm:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm amazon-chroot:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot lxd:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd alicloud-ecs:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs googlecompute:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hyperv-iso:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso cloudstack:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack oracle-classic:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic null:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone virtualbox-iso:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf digitalocean:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean parallels-pvm:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm vmware-iso:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso docker:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker lxc:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc openstack:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack qemu:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu vmware-vmx:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-ebs:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs hyperv-vmcx:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-ebssurrogate:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume] PostProcessors:map[alicloud-import:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import docker-push:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push manifest:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vsphere-template:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template compress:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-save:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant-cloud:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud googlecompute-import:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import googlecompute-export:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vsphere:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere checksum:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum artifice:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice amazon-import:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import vagrant:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-import:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import] Provisioners:map[ansible:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible puppet-masterless:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless breakpoint:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint converge:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge shell-local:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local ansible-local:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local puppet-server:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server powershell:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell salt-masterless:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless chef-client:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client windows-shell:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell chef-solo:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo windows-restart:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart file:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file shell:/usr/sbin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell]}

2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 Setting cache directory: /home/ubuntu/packer_cache

2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 Loading builder: virtualbox-ovf

2019/02/07 18:18:26 Plugin could not be found. Checking same directory as executable.

2019/02/07 18:18:26 Current exe path: /usr/sbin/packer

2019/02/07 18:18:26 Creating plugin client for path: /usr/sbin/packer

2019/02/07 18:18:26 Starting plugin: /usr/sbin/packer []string{"/usr/sbin/packer", "plugin", "packer-builder-virtualbox-ovf"}

2019/02/07 18:18:26 Waiting for RPC address for: /usr/sbin/packer

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 [INFO] Packer version: 1.3.4

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Packer Target OS/Arch: linux amd64

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Built with Go Version: go1.11.4

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Attempting to open config file: /root/.packerconfig

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 [WARN] Config file doesn't exist: /root/.packerconfig

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Setting cache directory: /home/ubuntu/packer_cache

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Detected home directory from env var: /root

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 args: []string{"packer-builder-virtualbox-ovf"}

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Plugin minimum port: 10000

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Plugin maximum port: 25000

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Plugin address: unix /tmp/packer-plugin438356652

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Waiting for connection...

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 Serving a plugin connection...

2019/02/07 18:18:26 ui: Debug mode enabled. Builds will not be parallelized.

2019/02/07 18:18:26 ui: virtualbox-ovf output will be in this color.

2019/02/07 18:18:26 ui: 

2019/02/07 18:18:26 Build debug mode: true

2019/02/07 18:18:26 Force build: false

2019/02/07 18:18:26 On error: ask

2019/02/07 18:18:26 Preparing build: virtualbox-ovf

2019/02/07 18:18:26 ui: Warnings for build 'virtualbox-ovf':


2019/02/07 18:18:26 ui: * A shutdown_command was not specified. Without a shutdown command, Packer

will forcibly halt the virtual machine, which may result in data loss.

2019/02/07 18:18:26 ui: 

2019/02/07 18:18:26 Debug enabled, so waiting for build to finish: virtualbox-ovf

2019/02/07 18:18:26 Starting build run: virtualbox-ovf

2019/02/07 18:18:26 Running builder: virtualbox-ovf

2019/02/07 18:18:26 [INFO] (telemetry) Starting builder virtualbox-ovf

2019/02/07 18:18:26 packer: 2019/02/07 18:18:26 VBoxManage path: /usr/bin/VBoxManage

2019/02/07 18:18:26 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepOutputDir'. Press enter to continue.

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 Suppressing annoying messages in VirtualBox

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 Executing VBoxManage: []string{"setextradata", "global", "GUI/RegistrationData", "triesLeft=0"}

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stdout:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stderr:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 Executing VBoxManage: []string{"setextradata", "global", "GUI/SuppressMessages", "confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth"}

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stdout:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stderr:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateCheckCount", "60"}

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stdout:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stderr:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateDate", "1 d, 2020-01-01, stable"}

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stdout:

2019/02/07 18:18:32 packer: 2019/02/07 18:18:32 stderr:

2019/02/07 18:18:32 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepSuppressMessages'. Press enter to continue.

2019/02/07 18:18:33 packer: 2019/02/07 18:18:33 No floppy files specified. Floppy disk will not be made.

2019/02/07 18:18:33 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepCreateFloppy'. Press enter to continue.

2019/02/07 18:18:34 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepHTTPServer'. Press enter to continue.

2019/02/07 18:18:34 packer: 2019/02/07 18:18:34 Not downloading guest additions since it is disabled.

2019/02/07 18:18:34 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue.

2019/02/07 18:18:35 ui: ==> virtualbox-ovf: Retrieving OVF/OVA

2019/02/07 18:18:35 packer: 2019/02/07 18:18:35 Acquiring lock to download: file:///home/ubuntu/LogPoint-free-651-build1.ova

2019/02/07 18:18:35 packer: 2019/02/07 18:18:35 Parsed URL: &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/home/ubuntu/LogPoint-free-651-build1.ova", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}

2019/02/07 18:18:35 packer: 2019/02/07 18:18:35 [DEBUG] Using local file: /home/ubuntu/LogPoint-free-651-build1.ova

2019/02/07 18:18:35 ui:     virtualbox-ovf: Using file in-place: file:///home/ubuntu/LogPoint-free-651-build1.ova

2019/02/07 18:18:35 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepDownload'. Press enter to continue.

2019/02/07 18:18:36 ui: ==> virtualbox-ovf: Importing VM: /home/ubuntu/LogPoint-free-651-build1.ova

2019/02/07 18:18:36 packer: 2019/02/07 18:18:36 Executing VBoxManage: []string{"import", "/home/ubuntu/LogPoint-free-651-build1.ova", "--vsys", "0", "--vmname", "packer-virtualbox-ovf-1549542806"}

2019/02/07 18:32:02 packer: 2019/02/07 18:32:02 stdout: Disks:

2019/02/07 18:32:02 packer:   vmdisk1 100 33290452992 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized LogPoint-free-651-build1-disk1.vmdk 13814353408 -1

2019/02/07 18:32:02 packer: 

2019/02/07 18:32:02 packer: Virtual system 0:

2019/02/07 18:32:02 packer:  0: Suggested OS type: "Ubuntu_64"

2019/02/07 18:32:02 packer:     (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)

2019/02/07 18:32:02 packer:  1: VM name specified with --vmname: "packer-virtualbox-ovf-1549542806"

2019/02/07 18:32:02 packer:  2: Number of CPUs: 4

2019/02/07 18:32:02 packer:     (change with "--vsys 0 --cpus <n>")

2019/02/07 18:32:02 packer:  3: Guest memory: 8192 MB

2019/02/07 18:32:02 packer:     (change with "--vsys 0 --memory <MB>")

2019/02/07 18:32:02 packer:  4: Network adapter: orig VM Network, config 3, extra type=Bridged

2019/02/07 18:32:02 packer:  5: Floppy

2019/02/07 18:32:02 packer:     (disable with "--vsys 0 --unit 5 --ignore")

2019/02/07 18:32:02 packer:  6: SCSI controller, type LsiLogic

2019/02/07 18:32:02 packer:     (change with "--vsys 0 --unit 6 --scsitype {BusLogic|LsiLogic}";

2019/02/07 18:32:02 packer:     disable with "--vsys 0 --unit 6 --ignore")

2019/02/07 18:32:02 packer:  7: IDE controller, type PIIX4

2019/02/07 18:32:02 packer:     (disable with "--vsys 0 --unit 7 --ignore")

2019/02/07 18:32:02 packer:  8: IDE controller, type PIIX4

2019/02/07 18:32:02 packer:     (disable with "--vsys 0 --unit 8 --ignore")

2019/02/07 18:32:02 packer:  9: Hard disk image: source image=LogPoint-free-651-build1-disk1.vmdk, target path=/root/VirtualBox VMs/LogPoint-free-651-build1/LogPoint-free-651-build1-disk1.vmdk, controller=6;channel=0

2019/02/07 18:32:02 packer:     (change target path with "--vsys 0 --unit 9 --disk path";

2019/02/07 18:32:02 packer:     disable with "--vsys 0 --unit 9 --ignore")

2019/02/07 18:32:02 packer: Successfully imported the appliance.

2019/02/07 18:32:02 packer: 2019/02/07 18:32:02 stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/07 18:32:02 packer: Interpreting /home/ubuntu/LogPoint-free-651-build1.ova...

2019/02/07 18:32:02 packer: OK.

2019/02/07 18:32:02 packer: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/07 18:32:02 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepImport'. Press enter to continue.

2019/02/07 18:32:02 packer: 2019/02/07 18:32:02 Not attaching guest additions since we're uploading.

2019/02/07 18:32:02 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepAttachGuestAdditions'. Press enter to continue.

2019/02/07 18:32:42 packer: 2019/02/07 18:32:42 Looking for available port between 5900 and 6000 on 0.0.0.0

2019/02/07 18:32:42 packer: 2019/02/07 18:32:42 Trying port: 5994

2019/02/07 18:32:42 packer: 2019/02/07 18:32:42 Executing VBoxManage: []string{"modifyvm", "packer-virtualbox-ovf-1549542806", "--vrdeaddress", "0.0.0.0", "--vrdeauthtype", "null", "--vrde", "on", "--vrdeport", "5994"}

2019/02/07 18:32:43 packer: 2019/02/07 18:32:43 stdout:

2019/02/07 18:32:43 packer: 2019/02/07 18:32:43 stderr:

2019/02/07 18:32:43 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepConfigureVRDP'. Press enter to continue.

2019/02/07 18:32:46 packer: 2019/02/07 18:32:46 No floppy disk, not attaching.

2019/02/07 18:32:46 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepAttachFloppy'. Press enter to continue.

2019/02/07 18:32:46 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepForwardSSH'. Press enter to continue.

2019/02/07 18:32:54 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepVBoxManage'. Press enter to continue.

2019/02/07 18:32:56 ui: ==> virtualbox-ovf: Starting the virtual machine...

2019/02/07 18:32:56 ui:     virtualbox-ovf: The VM will be run headless, without a GUI. If you want to

    virtualbox-ovf: view the screen of the VM, connect via VRDP without a password to

    virtualbox-ovf: rdp://0.0.0.0:5994

2019/02/07 18:32:56 packer: 2019/02/07 18:32:56 Executing VBoxManage: []string{"startvm", "packer-virtualbox-ovf-1549542806", "--type", "headless"}

2019/02/07 18:32:57 packer: 2019/02/07 18:32:57 stdout: Waiting for VM "packer-virtualbox-ovf-1549542806" to power on...

2019/02/07 18:32:57 packer: VM "packer-virtualbox-ovf-1549542806" has been successfully started.

2019/02/07 18:32:57 packer: 2019/02/07 18:32:57 stderr:

2019/02/07 18:32:57 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepRun'. Press enter to continue.

2019/02/07 18:32:59 ui: ==> virtualbox-ovf: Waiting 2m0s for boot...

2019/02/07 18:34:59 ui: ==> virtualbox-ovf: Typing the boot command...

2019/02/07 18:34:59 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'boot_command: '. Press enter to continue.

2019/02/07 18:39:57 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepTypeBootCommand'. Press enter to continue.

2019/02/07 18:39:58 ui: ==> virtualbox-ovf: Using ssh communicator to connect: 127.0.0.1

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [INFO] Waiting for SSH, up to timeout: 2h46m40s

2019/02/07 18:39:58 ui: ==> virtualbox-ovf: Waiting for SSH to become available...

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [INFO] Attempting SSH connection...

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [DEBUG] handshaking with SSH

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:39:58 packer: 2019/02/07 18:39:58 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:05 packer: 2019/02/07 18:40:05 [INFO] Attempting SSH connection...

2019/02/07 18:40:05 packer: 2019/02/07 18:40:05 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:05 packer: 2019/02/07 18:40:05 [DEBUG] handshaking with SSH

2019/02/07 18:40:05 packer: 2019/02/07 18:40:05 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2019/02/07 18:40:05 packer: 2019/02/07 18:40:05 [DEBUG] Detected authentication error. Increasing handshake attempts.

2019/02/07 18:40:12 packer: 2019/02/07 18:40:12 [INFO] Attempting SSH connection...

2019/02/07 18:40:12 packer: 2019/02/07 18:40:12 [DEBUG] reconnecting to TCP connection for SSH

2019/02/07 18:40:12 packer: 2019/02/07 18:40:12 [DEBUG] handshaking with SSH

Neil Cawvey

unread,
Feb 7, 2019, 11:58:12 PM2/7/19
to packe...@googlegroups.com
No thanks

Rickard von Essen

unread,
Feb 8, 2019, 2:27:08 AM2/8/19
to packe...@googlegroups.com
And what about your manual ssh?

--
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/mitchellh/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 packer-tool...@googlegroups.com.

Bikash Bhandari

unread,
Feb 8, 2019, 2:31:20 AM2/8/19
to packe...@googlegroups.com
ssh  -i id_rsa -vv user@192.168.4.222

Rickard von Essen

unread,
Feb 8, 2019, 8:17:16 AM2/8/19
to packe...@googlegroups.com
So you are ssh'ing to different addresses, packer to 127.0.0.1 but you use 192.168.4.222.

If that is a hard-coded IP in the VM you should set it in the packer template with ssh_host. If not the solution is to set ssh_skip_nat_mapping to false since the packer will setup proper port forwarding to the VM. When you try to ssh after that you should use 127.0.0.1 with the port packer prints in the log (something like 2222).

No thanks
<p class="gmail-m_6515967854984904038gmail-m_4387396380784277056m_863655083997334633gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-colo

Rickard von Essen

unread,
Feb 8, 2019, 8:18:09 AM2/8/19
to packe...@googlegroups.com
And if you run with headless false its much simpler to access the console and troubleshoot. 

No thanks
<p class="m_-2166798458108720640gmail-m_6515967854984904038gmail-m_438739638078427705

Bikash Bhandari

unread,
Feb 8, 2019, 9:23:10 AM2/8/19
to packe...@googlegroups.com



On setiing "ssh_skip_nat_mapping to false" the ssh connection to host is denied. I am not able to ssh from host as well using ssh  -i id_rsa  us...@127.0.0.1. What I understood is,  keeping "ssh_skip_nat_mapping to true, let virtual machine to use the defined ssh port 22 in the template other than  dynamic port generated by vbox. Nd here is the detailed log on keeping  "ssh_skip_nat_mapping to false" .


2019/02/08 19:16:01 [INFO] Packer version: 1.3.3

2019/02/08 19:16:01 Packer Target OS/Arch: linux amd64

2019/02/08 19:16:01 Built with Go Version: go1.11.2

2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 Using internal plugin for amazon-instance

2019/02/08 19:16:01 Using internal plugin for googlecompute

2019/02/08 19:16:01 Using internal plugin for parallels-pvm

2019/02/08 19:16:01 Using internal plugin for virtualbox-ovf

2019/02/08 19:16:01 Using internal plugin for ncloud

2019/02/08 19:16:01 Using internal plugin for amazon-ebs

2019/02/08 19:16:01 Using internal plugin for file

2019/02/08 19:16:01 Using internal plugin for hcloud

2019/02/08 19:16:01 Using internal plugin for lxc

2019/02/08 19:16:01 Using internal plugin for triton

2019/02/08 19:16:01 Using internal plugin for amazon-chroot

2019/02/08 19:16:01 Using internal plugin for amazon-ebsvolume

2019/02/08 19:16:01 Using internal plugin for hyperv-vmcx

2019/02/08 19:16:01 Using internal plugin for openstack

2019/02/08 19:16:01 Using internal plugin for vmware-vmx

2019/02/08 19:16:01 Using internal plugin for alicloud-ecs

2019/02/08 19:16:01 Using internal plugin for hyperv-iso

2019/02/08 19:16:01 Using internal plugin for oneandone

2019/02/08 19:16:01 Using internal plugin for oracle-oci

2019/02/08 19:16:01 Using internal plugin for cloudstack

2019/02/08 19:16:01 Using internal plugin for docker

2019/02/08 19:16:01 Using internal plugin for profitbricks

2019/02/08 19:16:01 Using internal plugin for amazon-ebssurrogate

2019/02/08 19:16:01 Using internal plugin for lxd

2019/02/08 19:16:01 Using internal plugin for virtualbox-iso

2019/02/08 19:16:01 Using internal plugin for azure-arm

2019/02/08 19:16:01 Using internal plugin for digitalocean

2019/02/08 19:16:01 Using internal plugin for oracle-classic

2019/02/08 19:16:01 Using internal plugin for scaleway

2019/02/08 19:16:01 Using internal plugin for null

2019/02/08 19:16:01 Using internal plugin for parallels-iso

2019/02/08 19:16:01 Using internal plugin for qemu

2019/02/08 19:16:01 Using internal plugin for vmware-iso

2019/02/08 19:16:01 Using internal plugin for converge

2019/02/08 19:16:01 Using internal plugin for puppet-server

2019/02/08 19:16:01 Using internal plugin for salt-masterless

2019/02/08 19:16:01 Using internal plugin for windows-restart

2019/02/08 19:16:01 Using internal plugin for windows-shell

2019/02/08 19:16:01 Using internal plugin for chef-client

2019/02/08 19:16:01 Using internal plugin for powershell

2019/02/08 19:16:01 Using internal plugin for puppet-masterless

2019/02/08 19:16:01 Using internal plugin for shell

2019/02/08 19:16:01 Using internal plugin for ansible

2019/02/08 19:16:01 Using internal plugin for ansible-local

2019/02/08 19:16:01 Using internal plugin for breakpoint

2019/02/08 19:16:01 Using internal plugin for chef-solo

2019/02/08 19:16:01 Using internal plugin for file

2019/02/08 19:16:01 Using internal plugin for shell-local

2019/02/08 19:16:01 Using internal plugin for vsphere

2019/02/08 19:16:01 Using internal plugin for docker-tag

2019/02/08 19:16:01 Using internal plugin for vagrant-cloud

2019/02/08 19:16:01 Using internal plugin for artifice

2019/02/08 19:16:01 Using internal plugin for checksum

2019/02/08 19:16:01 Using internal plugin for compress

2019/02/08 19:16:01 Using internal plugin for googlecompute-import

2019/02/08 19:16:01 Using internal plugin for manifest

2019/02/08 19:16:01 Using internal plugin for vagrant

2019/02/08 19:16:01 Using internal plugin for alicloud-import

2019/02/08 19:16:01 Using internal plugin for amazon-import

2019/02/08 19:16:01 Using internal plugin for googlecompute-export

2019/02/08 19:16:01 Using internal plugin for vsphere-template

2019/02/08 19:16:01 Using internal plugin for docker-push

2019/02/08 19:16:01 Using internal plugin for docker-save

2019/02/08 19:16:01 Using internal plugin for docker-import

2019/02/08 19:16:01 Using internal plugin for shell-local

2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 Attempting to open config file: /root/.packerconfig

2019/02/08 19:16:01 [WARN] Config file doesn't exist: /root/.packerconfig

2019/02/08 19:16:01 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance hcloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd] PostProcessors:map[docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice googlecompute-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save] Provisioners:map[converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible breakpoint:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}

2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 Setting cache directory: /home/ubuntu/packer_cache

2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 Loading builder: virtualbox-ovf

2019/02/08 19:16:01 Plugin could not be found. Checking same directory as executable.

2019/02/08 19:16:01 Current exe path: /usr/local/bin/packer

2019/02/08 19:16:01 Creating plugin client for path: /usr/local/bin/packer

2019/02/08 19:16:01 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-virtualbox-ovf"}

2019/02/08 19:16:01 Waiting for RPC address for: /usr/local/bin/packer

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 [INFO] Packer version: 1.3.3

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Packer Target OS/Arch: linux amd64

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Built with Go Version: go1.11.2

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Attempting to open config file: /root/.packerconfig

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 [WARN] Config file doesn't exist: /root/.packerconfig

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Setting cache directory: /home/ubuntu/packer_cache

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 args: []string{"packer-builder-virtualbox-ovf"}

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Detected home directory from env var: /root

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Plugin minimum port: 10000

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Plugin maximum port: 25000

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Plugin address: unix /tmp/packer-plugin048442979

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Waiting for connection...

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 Serving a plugin connection...

2019/02/08 19:16:01 ui: Debug mode enabled. Builds will not be parallelized.

2019/02/08 19:16:01 ui: virtualbox-ovf output will be in this color.

2019/02/08 19:16:01 ui: 

2019/02/08 19:16:01 Build debug mode: true

2019/02/08 19:16:01 Force build: false

2019/02/08 19:16:01 On error: 

2019/02/08 19:16:01 Preparing build: virtualbox-ovf

2019/02/08 19:16:01 ui: Warnings for build 'virtualbox-ovf':


2019/02/08 19:16:01 ui: * A shutdown_command was not specified. Without a shutdown command, Packer

will forcibly halt the virtual machine, which may result in data loss.

2019/02/08 19:16:01 ui: 

2019/02/08 19:16:01 Debug enabled, so waiting for build to finish: virtualbox-ovf

2019/02/08 19:16:01 Starting build run: virtualbox-ovf

2019/02/08 19:16:01 Running builder: virtualbox-ovf

2019/02/08 19:16:01 [INFO] (telemetry) Starting builder virtualbox-ovf

2019/02/08 19:16:01 packer: 2019/02/08 19:16:01 VBoxManage path: /usr/bin/VBoxManage

2019/02/08 19:16:01 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepOutputDir'. Press enter to continue.

2019/02/08 19:16:02 packer: 2019/02/08 19:16:02 Suppressing annoying messages in VirtualBox

2019/02/08 19:16:02 packer: 2019/02/08 19:16:02 Executing VBoxManage: []string{"setextradata", "global", "GUI/RegistrationData", "triesLeft=0"}

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stdout:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stderr:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 Executing VBoxManage: []string{"setextradata", "global", "GUI/SuppressMessages", "confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth"}

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stdout:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stderr:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateCheckCount", "60"}

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stdout:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stderr:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 Executing VBoxManage: []string{"setextradata", "global", "GUI/UpdateDate", "1 d, 2020-01-01, stable"}

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stdout:

2019/02/08 19:16:03 packer: 2019/02/08 19:16:03 stderr:

2019/02/08 19:16:03 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepSuppressMessages'. Press enter to continue.

2019/02/08 19:16:07 packer: 2019/02/08 19:16:07 No floppy files specified. Floppy disk will not be made.

2019/02/08 19:16:07 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepCreateFloppy'. Press enter to continue.

2019/02/08 19:16:07 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepHTTPServer'. Press enter to continue.

2019/02/08 19:16:07 packer: 2019/02/08 19:16:07 Not downloading guest additions since it is disabled.

2019/02/08 19:16:07 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue.

2019/02/08 19:16:08 ui: ==> virtualbox-ovf: Retrieving OVF/OVA

2019/02/08 19:16:08 packer: 2019/02/08 19:16:08 Acquiring lock to download: file:///root/Documents/LPNepal.ova

2019/02/08 19:16:08 packer: 2019/02/08 19:16:08 Parsed URL: &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/root/Documents/LPNepal.ova", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}

2019/02/08 19:16:08 packer: 2019/02/08 19:16:08 [DEBUG] Using local file: /root/Documents/LPNepal.ova

2019/02/08 19:16:08 ui:     virtualbox-ovf: Using file in-place: file:///root/Documents/LPNepal.ova

2019/02/08 19:16:08 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepDownload'. Press enter to continue.

2019/02/08 19:16:08 ui: ==> virtualbox-ovf: Importing VM: /root/Documents/LPNepal.ova

2019/02/08 19:16:08 packer: 2019/02/08 19:16:08 Executing VBoxManage: []string{"import", "/root/Documents/LPNepal.ova", "--vsys", "0", "--vmname", "packer-virtualbox-ovf-1549632661"}

2019/02/08 19:39:28 packer: 2019/02/08 19:39:28 stdout: Disks:

2019/02/08 19:39:28 packer:   vmdisk1 91830091776 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized LPNepal-disk001.vmdk -1 -1

2019/02/08 19:39:28 packer: 

2019/02/08 19:39:28 packer: Virtual system 0:

2019/02/08 19:39:28 packer:  0: Suggested OS type: "Ubuntu_64"

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)

2019/02/08 19:39:28 packer:  1: VM name specified with --vmname: "packer-virtualbox-ovf-1549632661"

2019/02/08 19:39:28 packer:  2: Suggested VM group "/"

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --group <group>")

2019/02/08 19:39:28 packer:  3: Suggested VM settings file name "/root/VirtualBox VMs/New Folder/LPNepal/LPNepal.vbox"

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --settingsfile <filename>")

2019/02/08 19:39:28 packer:  4: Suggested VM base folder "/root/VirtualBox VMs/New Folder"

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --basefolder <path>")

2019/02/08 19:39:28 packer:  5: Number of CPUs: 1

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --cpus <n>")

2019/02/08 19:39:28 packer:  6: Guest memory: 2021 MB

2019/02/08 19:39:28 packer:     (change with "--vsys 0 --memory <MB>")

2019/02/08 19:39:28 packer:  7: Sound card (appliance expects "", can change on import)

2019/02/08 19:39:28 packer:     (disable with "--vsys 0 --unit 7 --ignore")

2019/02/08 19:39:28 packer:  8: USB controller

2019/02/08 19:39:28 packer:     (disable with "--vsys 0 --unit 8 --ignore")

2019/02/08 19:39:28 packer:  9: Network adapter: orig NAT, config 3, extra slot=0;type=NAT

2019/02/08 19:39:28 packer: 10: IDE controller, type PIIX4

2019/02/08 19:39:28 packer:     (disable with "--vsys 0 --unit 10 --ignore")

2019/02/08 19:39:28 packer: 11: IDE controller, type PIIX4

2019/02/08 19:39:28 packer:     (disable with "--vsys 0 --unit 11 --ignore")

2019/02/08 19:39:28 packer: 12: SATA controller, type AHCI

2019/02/08 19:39:28 packer:     (disable with "--vsys 0 --unit 12 --ignore")

2019/02/08 19:39:28 packer: 13: Hard disk image: source image=LPNepal-disk001.vmdk, target path=LPNepal-disk001.vmdk, controller=12;channel=0

2019/02/08 19:39:28 packer:     (change target path with "--vsys 0 --unit 13 --disk path";

2019/02/08 19:39:28 packer:     disable with "--vsys 0 --unit 13 --ignore")

2019/02/08 19:39:28 packer: Successfully imported the appliance.

2019/02/08 19:39:28 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepImport'. Press enter to continue.

2019/02/08 19:39:28 packer: 2019/02/08 19:39:28 stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/08 19:39:28 packer: Interpreting /root/Documents/LPNepal.ova...

2019/02/08 19:39:28 packer: OK.

2019/02/08 19:39:28 packer: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

2019/02/08 19:39:28 packer: 2019/02/08 19:39:28 Not attaching guest additions since we're uploading.

2019/02/08 19:39:28 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepAttachGuestAdditions'. Press enter to continue.

2019/02/08 19:54:58 packer: 2019/02/08 19:54:58 Looking for available port between 5900 and 6000 on 0.0.0.0

2019/02/08 19:54:58 packer: 2019/02/08 19:54:58 Trying port: 5988

2019/02/08 19:54:58 packer: 2019/02/08 19:54:58 Executing VBoxManage: []string{"modifyvm", "packer-virtualbox-ovf-1549632661", "--vrdeaddress", "0.0.0.0", "--vrdeauthtype", "null", "--vrde", "on", "--vrdeport", "5988"}

2019/02/08 19:55:00 packer: 2019/02/08 19:55:00 stdout:

2019/02/08 19:55:00 packer: 2019/02/08 19:55:00 stderr:

2019/02/08 19:55:00 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepConfigureVRDP'. Press enter to continue.

2019/02/08 19:55:01 packer: 2019/02/08 19:55:01 No floppy disk, not attaching.

2019/02/08 19:55:01 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepAttachFloppy'. Press enter to continue.

2019/02/08 19:55:04 packer: 2019/02/08 19:55:04 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444

2019/02/08 19:55:04 packer: 2019/02/08 19:55:04 Trying port: 3282

2019/02/08 19:55:04 ui: ==> virtualbox-ovf: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 3282)

2019/02/08 19:55:04 packer: 2019/02/08 19:55:04 Executing VBoxManage: []string{"modifyvm", "packer-virtualbox-ovf-1549632661", "--natpf1", "packercomm,tcp,127.0.0.1,3282,,22"}

2019/02/08 19:55:05 packer: 2019/02/08 19:55:05 stdout:

2019/02/08 19:55:05 packer: 2019/02/08 19:55:05 stderr:

2019/02/08 19:55:05 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepForwardSSH'. Press enter to continue.

2019/02/08 19:55:07 ui: ==> virtualbox-ovf: Executing custom VBoxManage commands...

2019/02/08 19:55:07 ui:     virtualbox-ovf: Executing: modifyvm packer-virtualbox-ovf-1549632661 --nic1 bridged

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 Executing VBoxManage: []string{"modifyvm", "packer-virtualbox-ovf-1549632661", "--nic1", "bridged"}

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 stdout:

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 stderr:

2019/02/08 19:55:07 ui:     virtualbox-ovf: Executing: modifyvm packer-virtualbox-ovf-1549632661 --bridgeadapter1 ens160

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 Executing VBoxManage: []string{"modifyvm", "packer-virtualbox-ovf-1549632661", "--bridgeadapter1", "ens160"}

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 stdout:

2019/02/08 19:55:07 packer: 2019/02/08 19:55:07 stderr:

2019/02/08 19:55:07 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepVBoxManage'. Press enter to continue.

2019/02/08 19:55:11 ui: ==> virtualbox-ovf: Starting the virtual machine...

2019/02/08 19:55:11 packer: 2019/02/08 19:55:11 Executing VBoxManage: []string{"startvm", "packer-virtualbox-ovf-1549632661", "--type", "gui"}

2019/02/08 19:55:17 packer: 2019/02/08 19:55:17 stdout: Waiting for VM "packer-virtualbox-ovf-1549632661" to power on...

2019/02/08 19:55:17 packer: VM "packer-virtualbox-ovf-1549632661" has been successfully started.

2019/02/08 19:55:17 packer: 2019/02/08 19:55:17 stderr:

2019/02/08 19:55:17 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepRun'. Press enter to continue.

2019/02/08 19:56:38 ui: ==> virtualbox-ovf: Waiting 2m0s for boot...

2019/02/08 19:58:38 ui: ==> virtualbox-ovf: Typing the boot command...

2019/02/08 19:58:38 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'boot_command: '. Press enter to continue.

2019/02/08 20:01:31 ui: ask: ==> virtualbox-ovf: Pausing after run of step 'StepTypeBootCommand'. Press enter to continue.

2019/02/08 20:01:32 ui: ==> virtualbox-ovf: Using ssh communicator to connect: 127.0.0.1

2019/02/08 20:01:32 packer: 2019/02/08 20:01:32 [INFO] Waiting for SSH, up to timeout: 10m0s

2019/02/08 20:01:32 ui: ==> virtualbox-ovf: Waiting for SSH to become available...

2019/02/08 20:01:32 packer: 2019/02/08 20:01:32 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:01:37 packer: 2019/02/08 20:01:37 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:01:42 packer: 2019/02/08 20:01:42 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:01:47 packer: 2019/02/08 20:01:47 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:01:52 packer: 2019/02/08 20:01:52 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:01:57 packer: 2019/02/08 20:01:57 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:02 packer: 2019/02/08 20:02:02 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:07 packer: 2019/02/08 20:02:07 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:12 packer: 2019/02/08 20:02:12 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:17 packer: 2019/02/08 20:02:17 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:22 packer: 2019/02/08 20:02:22 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:27 packer: 2019/02/08 20:02:27 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:32 packer: 2019/02/08 20:02:32 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused

2019/02/08 20:02:37 packer: 2019/02/08 20:02:37 [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:3282: connect: connection refused


--
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/mitchellh/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 packer-tool...@googlegroups.com.

Rickard von Essen

unread,
Feb 8, 2019, 9:57:54 AM2/8/19
to packe...@googlegroups.com
Why do set the network to bridge?

Bikash Bhandari

unread,
Feb 8, 2019, 10:23:36 AM2/8/19
to packe...@googlegroups.com
To allow guest machine to take the same network as host machine.

<p class="gmail-m_-2120609801393412642gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family

Rickard von Essen

unread,
Feb 8, 2019, 10:43:28 AM2/8/19
to packe...@googlegroups.com
But when you do that neither Packer nor VirtualBox will know which IP address the VM gets assigned. To be able to work with such setup you need to either create a static lease for the VMs MAC or use a static IP address and put that in ssh_host.

If you need a bridge interface for accessing the VM from somewhere else I recommend that you instead add a second NIC in bridge mode and keep the first NIC in NAT-mode, or modify it in vboxmanage_post.

--
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/mitchellh/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 packer-tool...@googlegroups.com.

Bikash Bhandari

unread,
Feb 8, 2019, 11:44:43 AM2/8/19
to packe...@googlegroups.com
With NAT enabled I am able to create an OVA. Thank you so much making this clear. Kudos !!

Reply all
Reply to author
Forward
0 new messages