Rerun with PACKER_LOG=1 packer build ... and supply the output.

On 28 May 2018 at 17:06, Mike M <[email protected]> wrote:

> Hello,
>
> Im looking to do what I consider a fairly vanilla task in packer but i'm
> getting a error message that is not very helpful.
>
> Basically what i'm trying to do is build a VM and upload it to ESXi.  Im
> vcenter 6.5 update 1 if that plays into it.  From ESXi it looks like it
> doesn't even try to upload.  It appears that the build goes through fine
> but when it gets to the post-processor I get:
>
> ==> vmware-iso: Downloading or copying ISO
>     vmware-iso: Found already downloaded, initial checksum matched, no
> download needed: http://centos.s.uw.edu/centos/
> 7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso
> ==> vmware-iso: Creating virtual machine disk
> ==> vmware-iso: Building and writing VMX file
> ==> vmware-iso: Starting HTTP server on port 8895
> ==> vmware-iso: Starting virtual machine...
> ==> vmware-iso: Waiting 10s for boot...
> ==> vmware-iso: Connecting to VM via VNC (127.0.0.1:5915)
> ==> vmware-iso: Typing the boot command over VNC...
> ==> vmware-iso: Waiting for SSH to become available...
> ==> vmware-iso: Connected to SSH!
> ==> vmware-iso: Executing local command: echo foo
>     vmware-iso: foo
> ==> vmware-iso: Gracefully halting virtual machine...
>     vmware-iso: Waiting for VMware to clean up after itself...
> ==> vmware-iso: Deleting unnecessary VMware files...
>     vmware-iso: Deleting: output-vmware-iso/startMenu.plist
>     vmware-iso: Deleting: output-vmware-iso/test_vm.plist
>     vmware-iso: Deleting: output-vmware-iso/vmware.log
> ==> vmware-iso: Compacting the disk image
> ==> vmware-iso: Cleaning VMX prior to finishing up...
>     vmware-iso: Unmounting floppy from VMX...
>     vmware-iso: Detaching ISO from CD-ROM device...
>     vmware-iso: Disabling VNC server...
> ==> vmware-iso: Skipping export of virtual machine (export is allowed only
> for ESXi and the format needs to be specified)...
> ==> vmware-iso: Running post-processor: vsphere
>     vmware-iso (vsphere): Uploading output-vmware-iso/test_vm.vmx to
> vSphere
> Build 'vmware-iso' errored: 1 error(s) occurred:
>
> * Post-processor failed: Failed: signal: abort trap
>
>
> Here is my config
>
> Enter code here...
>
> {
>
>   "builders":  [
>     {
>      "type": "vmware-iso",
>      "iso_url": 
> "http://centos.s.uw.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso";,
>      "iso_checksum": 
> "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd",
>      "iso_checksum_type": "sha256",
>      "ssh_username": "packer",
>      "ssh_password": "packer",
>      "ssh_wait_timeout":"60000s",
>       "vmx_data": {
>        "memsize": "4096",
>        "numvpus": "4",
>        "disk_size": "50000"
>       },
>       "shutdown_command": "sudo shutdown -P now",
>       "http_directory": "http",
>       "vm_name": "test_vm",
>       "boot_command": [
>         "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort 
> }}/ks.cfg<enter><wait>"
>       ]
>
>     }
>   ],
>
>   "provisioners": [
>     {
>       "type": "shell-local",
>       "command": "echo foo"
>     }
>    ],
>
>   "post-processors": [
>     {
>       "type": "vsphere",
>       "insecure": true,
>       "cluster":   "Cluster",
>       "datacenter": "Cluster",
>       "datastore": "Synology",
>       "host": "10.75.1.210",
>       "username": "admin",
>       "password": "xxxxxxx",
>       "vm_name": "test_packer",
>       "vm_network": "network"
>     }
>   ]
> }
>
> --
> 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/f477d35e-992f-4146-a391-31cd5ac9815d%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/f477d35e-992f-4146-a391-31cd5ac9815d%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_KWrNKek%3DoUE1nmvo%3D9usSvvGCWyWdZBy28znr6mMUWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to