What's the content of centos7-ks.cfg? And how does the console look when
Packer is trying to connect to SSH? Run with headless false until it works.

On Mon, Jan 7, 2019 at 1:43 PM Tim Bücher <[email protected]> wrote:

> Hi all,
>
> I have the following issue: Running on a physical host, I want to build a
> CentOS 7 Machine with QEMU/KVM. I'm using packer 1.3.3 and CentOS 7.6.1810
> Netinstall Image.
>
> My config file is as following:
>
> centos7.json
>
> {
> "variables": {
> "rootpw":""
> },
> "builders":
> [
> {
> "type": "qemu",
> "accelerator": "kvm",
> "headless": true,
> "qemuargs": [
> [ "-m", "2048M" ],
> [ "-smp", "cpus=1,maxcpus=16,cores=4" ]
> ],
> "disk_interface": "virtio",
> "disk_size": 10000,
> "format": "qcow2",
> "net_device": "virtio-net",
> "iso_url": "./CentOS-7-x86_64-NetInstall-1810.iso",
> "iso_checksum": "d74ea11d73e7183fbbd8dcdc4f1a74a5",
> "iso_checksum_type": "md5",
> "vm_name": "centos7-base",
> "output_directory": "centos7-base-img",
> "http_directory": "docroot",
> "http_port_min": 10082,
> "http_port_max": 10089,
> "ssh_host_port_min": 2222,
> "ssh_host_port_max": 2229,
> "ssh_username": "root",
> "ssh_password": "{{ user `rootpw` }}",
> "ssh_port": 22,
> "ssh_wait_timeout": "1200s",
> "boot_wait": "40s",
> "boot_command": [
> "<up><wait><tab><wait> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort
> }}/centos7-ks.cfg<enter><wait>"
> ],
>
> "shutdown_command": "shutdown -P now"
> }
> ],
> "provisioners":
> [
> {
> "type": "file",
> "source": "my-pulp7.repo",
> "destination": "/etc/yum.repos.d/my-pulp.repo"
> },
> {
> "type": "file",
> "source": "ntp.conf",
> "destination": "/etc/ntp.conf"
> },
> {
> "type": "shell",
> "pause_before": "5s",
> "inline": [
> "yum-config-manager --disable base",
> "yum-config-manager --disable updates",
> "yum-config-manager --disable extras",
> "yum clean all",
> "yum update -y",
> "yum install -y htop net-tools bind-utils ksh my-one-context7 sysstat zip
> vim-enhanced vim-filesystem vim-common unzip haveged",
> "mkdir -p /root/.ssh; chmod 700 /root/.ssh",
> "echo 'ssh-dss dontyoudarelookingatmykeybecausethisisjustanexample.id_dsa'
> > /root/.ssh/authorized_keys",
> "chmod 600 /root/.ssh/authorized_keys",
> "echo 'relayhost = [mail.my.com]' >> /etc/postfix/main.cf",
> "systemctl enable ntpd",
> "timedatectl set-timezone Europe/Berlin"
> ]
> }
> ]
> }
>
> Log output:
> PACKER_LOG=1 ./packer build -var-file=secrets.json centos7.json >> log
> 2019/01/07 13:35:45 [INFO] Packer version: 1.3.3 2019/01/07 13:35:45 Packer
> Target OS/Arch: linux amd64 2019/01/07 13:35:45 Built with Go Version:
> go1.11.2 2019/01/07 13:35:45 Detected home directory from env var:
> /home/packer 2019/01/07 13:35:45 Using internal plugin for alicloud-ecs
> 2019/01/07 13:35:45 Using internal plugin for amazon-chroot 2019/01/07
> 13:35:45 Using internal plugin for hyperv-vmcx 2019/01/07 13:35:45 Using
> internal plugin for ncloud 2019/01/07 13:35:45 Using internal plugin for
> openstack 2019/01/07 13:35:45 Using internal plugin for oracle-oci
> 2019/01/07 13:35:45 Using internal plugin for parallels-pvm 2019/01/07
> 13:35:45 Using internal plugin for triton 2019/01/07 13:35:45 Using
> internal plugin for vmware-iso 2019/01/07 13:35:45 Using internal plugin
> for file 2019/01/07 13:35:45 Using internal plugin for hcloud 2019/01/07
> 13:35:45 Using internal plugin for hyperv-iso 2019/01/07 13:35:45 Using
> internal plugin for lxd 2019/01/07 13:35:45 Using internal plugin for
> oneandone 2019/01/07 13:35:45 Using internal plugin for amazon-instance
> 2019/01/07 13:35:45 Using internal plugin for azure-arm 2019/01/07 13:35:45
> Using internal plugin for googlecompute 2019/01/07 13:35:45 Using internal
> plugin for oracle-classic 2019/01/07 13:35:45 Using internal plugin for
> virtualbox-iso 2019/01/07 13:35:45 Using internal plugin for lxc 2019/01/07
> 13:35:45 Using internal plugin for null 2019/01/07 13:35:45 Using internal
> plugin for parallels-iso 2019/01/07 13:35:45 Using internal plugin for
> profitbricks 2019/01/07 13:35:45 Using internal plugin for scaleway
> 2019/01/07 13:35:45 Using internal plugin for amazon-ebssurrogate
> 2019/01/07 13:35:45 Using internal plugin for cloudstack 2019/01/07
> 13:35:45 Using internal plugin for docker 2019/01/07 13:35:45 Using
> internal plugin for amazon-ebsvolume 2019/01/07 13:35:45 Using internal
> plugin for amazon-ebs 2019/01/07 13:35:45 Using internal plugin for
> digitalocean 2019/01/07 13:35:45 Using internal plugin for qemu 2019/01/07
> 13:35:45 Using internal plugin for virtualbox-ovf 2019/01/07 13:35:45 Using
> internal plugin for vmware-vmx 2019/01/07 13:35:45 Using internal plugin
> for chef-client 2019/01/07 13:35:45 Using internal plugin for chef-solo
> 2019/01/07 13:35:45 Using internal plugin for salt-masterless 2019/01/07
> 13:35:45 Using internal plugin for shell 2019/01/07 13:35:45 Using internal
> plugin for shell-local 2019/01/07 13:35:45 Using internal plugin for
> ansible 2019/01/07 13:35:45 Using internal plugin for ansible-local
> 2019/01/07 13:35:45 Using internal plugin for puppet-masterless 2019/01/07
> 13:35:45 Using internal plugin for windows-restart 2019/01/07 13:35:45
> Using internal plugin for puppet-server 2019/01/07 13:35:45 Using internal
> plugin for windows-shell 2019/01/07 13:35:45 Using internal plugin for
> converge 2019/01/07 13:35:45 Using internal plugin for file 2019/01/07
> 13:35:45 Using internal plugin for breakpoint 2019/01/07 13:35:45 Using
> internal plugin for powershell 2019/01/07 13:35:45 Using internal plugin
> for alicloud-import 2019/01/07 13:35:45 Using internal plugin for
> docker-tag 2019/01/07 13:35:45 Using internal plugin for
> googlecompute-export 2019/01/07 13:35:45 Using internal plugin for
> docker-import 2019/01/07 13:35:45 Using internal plugin for
> googlecompute-import 2019/01/07 13:35:45 Using internal plugin for
> vsphere-template 2019/01/07 13:35:45 Using internal plugin for vsphere
> 2019/01/07 13:35:45 Using internal plugin for checksum 2019/01/07 13:35:45
> Using internal plugin for compress 2019/01/07 13:35:45 Using internal
> plugin for docker-save 2019/01/07 13:35:45 Using internal plugin for
> shell-local 2019/01/07 13:35:45 Using internal plugin for vagrant
> 2019/01/07 13:35:45 Using internal plugin for vagrant-cloud 2019/01/07
> 13:35:45 Using internal plugin for amazon-import 2019/01/07 13:35:45 Using
> internal plugin for artifice 2019/01/07 13:35:45 Using internal plugin for
> docker-push 2019/01/07 13:35:45 Using internal plugin for manifest
> 2019/01/07 13:35:45 Detected home directory from env var: /home/packer
> 2019/01/07 13:35:45 Attempting to open config file:
> /home/packer/.packerconfig 2019/01/07 13:35:45 [WARN] Config file doesn't
> exist: /home/packer/.packerconfig 2019/01/07 13:35:45 Packer config:
> &{DisableCheckpoint:false DisableCheckpointSignature:false
> PluginMinPort:10000 PluginMaxPort:25000
> Builders:map[amazon-instance:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance
> profitbricks:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks
> lxd:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd
> oneandone:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone
> oracle-classic:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic
> virtualbox-ovf:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf
> parallels-pvm:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm
> file:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file
> googlecompute:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute
> parallels-iso:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso
> amazon-ebssurrogate:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate
> ncloud:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud
> openstack:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack
> amazon-ebs:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs
> lxc:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc
> amazon-ebsvolume:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume
> virtualbox-iso:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso
> qemu:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu
> triton:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton
> hcloud:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud
> hyperv-iso:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso
> vmware-vmx:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx
> amazon-chroot:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot
> vmware-iso:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso
> docker:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker
> digitalocean:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean
> alicloud-ecs:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs
> cloudstack:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack
> azure-arm:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
> null:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null
> scaleway:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway
> hyperv-vmcx:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx
> oracle-oci:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci]
> PostProcessors:map[docker-tag:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag
> googlecompute-export:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export
> vsphere-template:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template
> shell-local:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
> alicloud-import:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import
> vagrant:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant
> docker-push:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push
> googlecompute-import:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import
> vsphere:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere
> docker-save:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save
> vagrant-cloud:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud
> artifice:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice
> docker-import:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import
> checksum:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum
> compress:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress
> amazon-import:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import
> manifest:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest]
> Provisioners:map[shell-local:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local
> windows-shell:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell
> shell:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell
> ansible-local:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local
> puppet-masterless:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless
> powershell:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell
> ansible:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
> windows-restart:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart
> puppet-server:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server
> converge:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge
> file:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file
> breakpoint:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint
> chef-client:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client
> chef-solo:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo
> salt-masterless:/home/packer/packer-centos-images/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless]}
> 2019/01/07 13:35:45 Detected home directory from env var: /home/packer
> 2019/01/07 13:35:45 Setting cache directory:
> /home/packer/packer-centos-images/packer_cache 2019/01/07 13:35:45
> Detected home directory from env var: /home/packer 2019/01/07 13:35:45
> Loading builder: qemu 2019/01/07 13:35:45 Plugin could not be found.
> Checking same directory as executable. 2019/01/07 13:35:45 Current exe
> path: /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 Creating
> plugin client for path: /home/packer/packer-centos-images/packer 2019/01/07
> 13:35:45 Starting plugin: /home/packer/packer-centos-images/packer
> []string{"/home/packer/packer-centos-images/packer", "plugin",
> "packer-builder-qemu"} 2019/01/07 13:35:45 Waiting for RPC address for:
> /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 [ERR]
> Checkpoint error: Get
> https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=62366ffc-0b51-a28d-12ce-58841a784e90&version=1.3.3:
> dial tcp 23.23.145.13:443: connect: connection refused 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 [INFO] Packer version: 1.3.3
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Packer Target OS/Arch:
> linux amd64 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Built with Go
> Version: go1.11.2 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Detected
> home directory from env var: /home/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Attempting to open config file:
> /home/packer/.packerconfig 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> [WARN] Config file doesn't exist: /home/packer/.packerconfig 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Packer config:
> &{DisableCheckpoint:false DisableCheckpointSignature:false
> PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
> Provisioners:map[]} 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> Detected home directory from env var: /home/packer 2019/01/07 13:35:45
> packer: 2019/01/07 13:35:45 Setting cache directory:
> /home/packer/packer-centos-images/packer_cache 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Detected home directory from env var: /home/packer
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 args:
> []string{"packer-builder-qemu"} 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin minimum port: 10000 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin maximum port: 25000 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin address: unix /tmp/packer-plugin011576475 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Waiting for connection... 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Serving a plugin connection...
> 2019/01/07 13:35:45 Loading provisioner: file 2019/01/07 13:35:45 Plugin
> could not be found. Checking same directory as executable. 2019/01/07
> 13:35:45 Current exe path: /home/packer/packer-centos-images/packer
> 2019/01/07 13:35:45 Creating plugin client for path:
> /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 Starting
> plugin: /home/packer/packer-centos-images/packer
> []string{"/home/packer/packer-centos-images/packer", "plugin",
> "packer-provisioner-file"} 2019/01/07 13:35:45 Waiting for RPC address for:
> /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 [ERR] Checkpoint error: Get
> https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=62366ffc-0b51-a28d-12ce-58841a784e90&version=1.3.3:
> dial tcp 54.243.195.169:443: connect: connection refused 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 [INFO] Packer version: 1.3.3
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Packer Target OS/Arch:
> linux amd64 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Built with Go
> Version: go1.11.2 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Detected
> home directory from env var: /home/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Attempting to open config file:
> /home/packer/.packerconfig 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> [WARN] Config file doesn't exist: /home/packer/.packerconfig 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Packer config:
> &{DisableCheckpoint:false DisableCheckpointSignature:false
> PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
> Provisioners:map[]} 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> Detected home directory from env var: /home/packer 2019/01/07 13:35:45
> packer: 2019/01/07 13:35:45 Setting cache directory:
> /home/packer/packer-centos-images/packer_cache 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 args: []string{"packer-provisioner-file"} 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Plugin minimum port: 10000 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Plugin maximum port: 25000 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Detected home directory from env var:
> /home/packer 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Plugin
> address: unix /tmp/packer-plugin316907116 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Waiting for connection... 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Serving a plugin connection... 2019/01/07 13:35:45
> Loading provisioner: file 2019/01/07 13:35:45 Plugin could not be found.
> Checking same directory as executable. 2019/01/07 13:35:45 Current exe
> path: /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 Creating
> plugin client for path: /home/packer/packer-centos-images/packer 2019/01/07
> 13:35:45 Starting plugin: /home/packer/packer-centos-images/packer
> []string{"/home/packer/packer-centos-images/packer", "plugin",
> "packer-provisioner-file"} 2019/01/07 13:35:45 Waiting for RPC address for:
> /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 [ERR] Checkpoint error: Get
> https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=62366ffc-0b51-a28d-12ce-58841a784e90&version=1.3.3:
> dial tcp 54.243.195.169:443: connect: connection refused 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 [INFO] Packer version: 1.3.3
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Packer Target OS/Arch:
> linux amd64 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Built with Go
> Version: go1.11.2 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Detected
> home directory from env var: /home/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Attempting to open config file:
> /home/packer/.packerconfig 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> [WARN] Config file doesn't exist: /home/packer/.packerconfig 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Packer config:
> &{DisableCheckpoint:false DisableCheckpointSignature:false
> PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
> Provisioners:map[]} 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> Detected home directory from env var: /home/packer 2019/01/07 13:35:45
> packer: 2019/01/07 13:35:45 Setting cache directory:
> /home/packer/packer-centos-images/packer_cache 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 args: []string{"packer-provisioner-file"} 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Plugin minimum port: 10000 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Plugin maximum port: 25000 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Detected home directory from env var:
> /home/packer 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Plugin
> address: unix /tmp/packer-plugin697207787 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Waiting for connection... 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Serving a plugin connection... 2019/01/07 13:35:45
> Loading provisioner: shell 2019/01/07 13:35:45 Plugin could not be found.
> Checking same directory as executable. 2019/01/07 13:35:45 Current exe
> path: /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 Creating
> plugin client for path: /home/packer/packer-centos-images/packer 2019/01/07
> 13:35:45 Starting plugin: /home/packer/packer-centos-images/packer
> []string{"/home/packer/packer-centos-images/packer", "plugin",
> "packer-provisioner-shell"} 2019/01/07 13:35:45 Waiting for RPC address
> for: /home/packer/packer-centos-images/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 [ERR] Checkpoint error: Get
> https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=62366ffc-0b51-a28d-12ce-58841a784e90&version=1.3.3:
> dial tcp 23.23.145.13:443: connect: connection refused 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 [INFO] Packer version: 1.3.3
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Packer Target OS/Arch:
> linux amd64 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Built with Go
> Version: go1.11.2 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Detected
> home directory from env var: /home/packer 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Attempting to open config file:
> /home/packer/.packerconfig 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> [WARN] Config file doesn't exist: /home/packer/.packerconfig 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Packer config:
> &{DisableCheckpoint:false DisableCheckpointSignature:false
> PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[]
> Provisioners:map[]} 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45
> Detected home directory from env var: /home/packer 2019/01/07 13:35:45
> packer: 2019/01/07 13:35:45 Setting cache directory:
> /home/packer/packer-centos-images/packer_cache 2019/01/07 13:35:45 packer:
> 2019/01/07 13:35:45 Detected home directory from env var: /home/packer
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 args:
> []string{"packer-provisioner-shell"} 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin minimum port: 10000 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin maximum port: 25000 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Plugin address: unix /tmp/packer-plugin107512890 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Waiting for connection... 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Serving a plugin connection...
> 2019/01/07 13:35:45 Build debug mode: false 2019/01/07 13:35:45 Force
> build: false 2019/01/07 13:35:45 On error: 2019/01/07 13:35:45 Preparing
> build: qemu 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 [ERR]
> Checkpoint error: Get
> https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=62366ffc-0b51-a28d-12ce-58841a784e90&version=1.3.3:
> dial tcp 23.23.145.13:443: connect: connection refused 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 use specified accelerator: kvm
> 2019/01/07 13:35:45 Waiting on builds to complete... 2019/01/07 13:35:45
> Starting build run: qemu 2019/01/07 13:35:45 Running builder: qemu
> 2019/01/07 13:35:45 [INFO] (telemetry) Starting builder qemu 2019/01/07
> 13:35:45 packer: 2019/01/07 13:35:45 Qemu path: /bin/qemu-system-x86_64,
> Qemu Image page: /bin/qemu-img 2019/01/07 13:35:45 packer: 2019/01/07
> 13:35:45 Acquiring lock to download:
> file:///home/packer/packer-centos-images/CentOS-7-x86_64-NetInstall-1810.iso
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Parsed URL:
> &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"",
> Path:"/home/packer/packer-centos-images/CentOS-7-x86_64-NetInstall-1810.iso",
> RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""} 2019/01/07 13:35:45
> packer: 2019/01/07 13:35:45 [DEBUG] Using local file:
> /home/packer/packer-centos-images/CentOS-7-x86_64-NetInstall-1810.iso
> 2019/01/07 13:35:45 packer: 2019/01/07 13:35:45 Verifying checksum of
> /home/packer/packer-centos-images/CentOS-7-x86_64-NetInstall-1810.iso
> 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 No floppy files specified.
> Floppy disk will not be made. 2019/01/07 13:35:46 packer: 2019/01/07
> 13:35:46 Executing qemu-img: []string{"create", "-f", "qcow2",
> "centos7-base-img/centos7-base", "10000M"} 2019/01/07 13:35:46 packer:
> 2019/01/07 13:35:46 stdout: Formatting 'centos7-base-img/centos7-base',
> fmt=qcow2 size=10485760000 encryption=off cluster_size=65536
> lazy_refcounts=off 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 stderr:
> 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Trying port: 10085
> 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Looking for available
> communicator (SSH, WinRM, etc) port between 2222 and 2229 2019/01/07
> 13:35:46 packer: 2019/01/07 13:35:46 Trying port: 2222 2019/01/07 13:35:46
> packer: 2019/01/07 13:35:46 Looking for available port between 5900 and
> 6000 on 127.0.0.1 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Trying
> port: 5926 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Found available
> VNC port: 5926 on IP: 127.0.0.1 2019/01/07 13:35:46 packer: 2019/01/07
> 13:35:46 Qemu --version output: QEMU emulator version 2.0.0, Copyright (c)
> 2003-2008 Fabrice Bellard 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46
> Qemu version: 2.0.0 qemu: view the screen of the VM, connect via VNC
> without a password to qemu: vnc://127.0.0.1:5926 2019/01/07 13:35:46
> packer: 2019/01/07 13:35:46 Qemu Builder has no floppy files, not attaching
> a floppy. 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Executing
> /bin/qemu-system-x86_64: []string{"-vnc", "127.0.0.1:26", "-name",
> "centos7-base", "-netdev", "user,id=user.0,hostfwd=tcp::2222-:22",
> "-device", "virtio-net,netdev=user.0", "-drive",
> "file=centos7-base-img/centos7-base,if=virtio,cache=writeback,discard=ignore,format=qcow2",
> "-cdrom",
> "/home/packer/packer-centos-images/CentOS-7-x86_64-NetInstall-1810.iso",
> "-m", "2048M", "-boot", "once=d", "-machine", "type=pc,accel=kvm", "-smp",
> "cpus=1,maxcpus=16,cores=4"} 2019/01/07 13:35:46 packer: 2019/01/07
> 13:35:46 Started Qemu. Pid: 37290 2019/01/07 13:35:46 packer: 2019/01/07
> 13:35:46 Qemu stderr: 2019/01/07 13:35:46 packer: 2019/01/07 13:35:46 Qemu
> stderr: (process:37290): GLib-WARNING **: 13:35:46.580: gmem.c:489: custom
> memory allocation vtable not supported 2019/01/07 13:36:28 packer:
> 2019/01/07 13:36:28 Connected to VNC desktop: QEMU (centos7-base)
> 2019/01/07 13:36:28 packer: 2019/01/07 13:36:28 Special code '<up>' found,
> replacing with: 0xFF52 2019/01/07 13:36:28 packer: 2019/01/07 13:36:28
> [INFO] Waiting 1s 2019/01/07 13:36:29 packer: 2019/01/07 13:36:29 Special
> code '<tab>' found, replacing with: 0xFF09 2019/01/07 13:36:29 packer:
> 2019/01/07 13:36:29 [INFO] Waiting 1s 2019/01/07 13:36:30 packer:
> 2019/01/07 13:36:30 Sending char ' ', code 0x20, shift false 2019/01/07
> 13:36:31 packer: 2019/01/07 13:36:31 Sending char 't', code 0x74, shift
> false 2019/01/07 13:36:31 packer: 2019/01/07 13:36:31 Sending char 'e',
> code 0x65, shift false 2019/01/07 13:36:31 packer: 2019/01/07 13:36:31
> Sending char 'x', code 0x78, shift false 2019/01/07 13:36:31 packer:
> 2019/01/07 13:36:31 Sending char 't', code 0x74, shift false 2019/01/07
> 13:36:31 packer: 2019/01/07 13:36:31 Sending char ' ', code 0x20, shift
> false 2019/01/07 13:36:32 packer: 2019/01/07 13:36:32 Sending char 'k',
> code 0x6B, shift false 2019/01/07 13:36:32 packer: 2019/01/07 13:36:32
> Sending char 's', code 0x73, shift false 2019/01/07 13:36:32 packer:
> 2019/01/07 13:36:32 Sending char '=', code 0x3D, shift false 2019/01/07
> 13:36:32 packer: 2019/01/07 13:36:32 Sending char 'h', code 0x68, shift
> false 2019/01/07 13:36:32 packer: 2019/01/07 13:36:32 Sending char 't',
> code 0x74, shift false 2019/01/07 13:36:33 packer: 2019/01/07 13:36:33
> Sending char 't', code 0x74, shift false 2019/01/07 13:36:33 packer:
> 2019/01/07 13:36:33 Sending char 'p', code 0x70, shift false 2019/01/07
> 13:36:33 packer: 2019/01/07 13:36:33 Sending char ':', code 0x3A, shift
> true 2019/01/07 13:36:33 packer: 2019/01/07 13:36:33 Sending char '/', code
> 0x2F, shift false 2019/01/07 13:36:34 packer: 2019/01/07 13:36:34 Sending
> char '/', code 0x2F, shift false 2019/01/07 13:36:34 packer: 2019/01/07
> 13:36:34 Sending char '1', code 0x31, shift false 2019/01/07 13:36:34
> packer: 2019/01/07 13:36:34 Sending char '0', code 0x30, shift false
> 2019/01/07 13:36:34 packer: 2019/01/07 13:36:34 Sending char '.', code
> 0x2E, shift false 2019/01/07 13:36:34 packer: 2019/01/07 13:36:34 Sending
> char '0', code 0x30, shift false 2019/01/07 13:36:35 packer: 2019/01/07
> 13:36:35 Sending char '.', code 0x2E, shift false 2019/01/07 13:36:35
> packer: 2019/01/07 13:36:35 Sending char '2', code 0x32, shift false
> 2019/01/07 13:36:35 packer: 2019/01/07 13:36:35 Sending char '.', code
> 0x2E, shift false 2019/01/07 13:36:35 packer: 2019/01/07 13:36:35 Sending
> char '2', code 0x32, shift false 2019/01/07 13:36:35 packer: 2019/01/07
> 13:36:35 Sending char ':', code 0x3A, shift true 2019/01/07 13:36:36
> packer: 2019/01/07 13:36:36 Sending char '1', code 0x31, shift false
> 2019/01/07 13:36:36 packer: 2019/01/07 13:36:36 Sending char '0', code
> 0x30, shift false 2019/01/07 13:36:36 packer: 2019/01/07 13:36:36 Sending
> char '0', code 0x30, shift false 2019/01/07 13:36:36 packer: 2019/01/07
> 13:36:36 Sending char '8', code 0x38, shift false 2019/01/07 13:36:37
> packer: 2019/01/07 13:36:37 Sending char '5', code 0x35, shift false
> 2019/01/07 13:36:37 packer: 2019/01/07 13:36:37 Sending char '/', code
> 0x2F, shift false 2019/01/07 13:36:37 packer: 2019/01/07 13:36:37 Sending
> char 'c', code 0x63, shift false 2019/01/07 13:36:37 packer: 2019/01/07
> 13:36:37 Sending char 'e', code 0x65, shift false 2019/01/07 13:36:37
> packer: 2019/01/07 13:36:37 Sending char 'n', code 0x6E, shift false
> 2019/01/07 13:36:38 packer: 2019/01/07 13:36:38 Sending char 't', code
> 0x74, shift false 2019/01/07 13:36:38 packer: 2019/01/07 13:36:38 Sending
> char 'o', code 0x6F, shift false 2019/01/07 13:36:38 packer: 2019/01/07
> 13:36:38 Sending char 's', code 0x73, shift false 2019/01/07 13:36:38
> packer: 2019/01/07 13:36:38 Sending char '7', code 0x37, shift false
> 2019/01/07 13:36:38 packer: 2019/01/07 13:36:38 Sending char '-', code
> 0x2D, shift false 2019/01/07 13:36:39 packer: 2019/01/07 13:36:39 Sending
> char 'k', code 0x6B, shift false 2019/01/07 13:36:39 packer: 2019/01/07
> 13:36:39 Sending char 's', code 0x73, shift false 2019/01/07 13:36:39
> packer: 2019/01/07 13:36:39 Sending char '.', code 0x2E, shift false
> 2019/01/07 13:36:39 packer: 2019/01/07 13:36:39 Sending char 'c', code
> 0x63, shift false 2019/01/07 13:36:39 packer: 2019/01/07 13:36:39 Sending
> char 'f', code 0x66, shift false 2019/01/07 13:36:40 packer: 2019/01/07
> 13:36:40 Sending char 'g', code 0x67, shift false 2019/01/07 13:36:40
> packer: 2019/01/07 13:36:40 Special code '<enter>' found, replacing with:
> 0xFF0D 2019/01/07 13:36:40 packer: 2019/01/07 13:36:40 [INFO] Waiting 1s
> 2019/01/07 13:36:41 packer: 2019/01/07 13:36:41 [INFO] Waiting for SSH, up
> to timeout: 20m0s 2019/01/07 13:36:41 packer: 2019/01/07 13:36:41 [INFO]
> Attempting SSH connection... 2019/01/07 13:36:41 packer: 2019/01/07
> 13:36:41 [DEBUG] reconnecting to TCP connection for SSH 2019/01/07 13:36:41
> packer: 2019/01/07 13:36:41 [DEBUG] handshaking with SSH 2019/01/07
> 13:37:01 packer: 2019/01/07 13:37:01 [DEBUG] SSH handshake err: ssh:
> handshake failed: read tcp 127.0.0.1:55710->127.0.0.1:2222: read:
> connection reset by peer 2019/01/07 13:37:08 packer: 2019/01/07 13:37:08
> [INFO] Attempting SSH connection... 2019/01/07 13:37:08 packer: 2019/01/07
> 13:37:08 [DEBUG] reconnecting to TCP connection for SSH 2019/01/07 13:37:08
> packer: 2019/01/07 13:37:08 [DEBUG] handshaking with SSH 2019/01/07
> 13:37:08 packer: 2019/01/07 13:37:08 [DEBUG] SSH handshake err: ssh:
> handshake failed: read tcp 127.0.0.1:55718->127.0.0.1:2222: read:
> connection reset by peer
>
> After that, it just keeps on repeating the SSH handshare err message until
> it times out.....
>
> Any suggestions?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/156769d0-dd98-4469-b61d-97d3f8d224b9%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/156769d0-dd98-4469-b61d-97d3f8d224b9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_HgM2wtWJRpu2tg4zMucJCefnrVKZFYinr7-_2WZjtfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to