Hello,

I'm having difficulty with packer's vmware iso builder in a linux 
environment. I'm accessing this environment via ssh. I've copied over a 
working build from my windows machine and made needed changes to file 
path's and such, but it fails with an "error operation was canceled." I 
have not been able to find a solution to this online. You'll find a file 
with over 200 lines of output using PACKER_LOG=1 attached here. Anyone have 
any thoughts as to what I can do here? 

Packer json:
{
        "builders": [{
                "type": "vmware-iso",
                "boot_command": ["<up><wait><tab> text ks=http://{{ .HTTPIP 
}}:{{ .HTTPPort}}/{{ user `kickstart` }}<enter>"],
                "iso_checksum": 
"6d44331cc4f6c506c7bbe9feb8468fad6c51a88ca1393ca6b8b486ea04bec3c1",
                "iso_url": "/home/mdavis/CentOS-7-x86_64-DVD-1810.iso",
                "ssh_pty": "true",
                "headless": "true",
                "format": "ova",
                "vmx_data": {
                        "cpuid.coresPerSocket": "1",
                        "memsize": "1024",
                        "numvcpus": "2"
                },
                "vmx_remove_ethernet_interfaces": "false",
                "disk_size": "65536",
                "ssh_username": "root",
                "ssh_password": "atomicorp",
                "ssh_wait_timeout": "10000s",
                "http_directory": "/home/mdavis/awp-packer-build/",
                "output_directory": "./vmware-ova-upload-attempt",
                "vm_name": "vmware-ova-upload-attempt-headless",
                "shutdown_command": "echo 'atomicorp' | sudo -S shutdown -P 
now"
        }],

        "provisioners": [{
                "type": "file",
                "source": "./firstboot.sh",
                "destination": "/root/firstboot.sh"
        },
        {
        "type": "shell",
        "expect_disconnect": "true",
        "environment_vars": [
        "CLEANUP_BUILD_TOOLS={{user `cleanup_build_tools`}}",
        "DESKTOP={{user `desktop`}}",
        "UPDATE={{user `update`}}",
        "INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}",
        "SSH_USERNAME={{user `ssh_username`}}",
        "SSH_PASSWORD={{user `ssh_password`}}",
        "http_proxy={{user `http_proxy`}}",
        "https_proxy={{user `https_proxy`}}",
        "ftp_proxy={{user `ftp_proxy`}}",
        "rsync_proxy={{user `rsync_proxy`}}",
        "no_proxy={{user `no_proxy`}}"
      ],
                "execute_command": "echo 'atomicorp' | {{.Vars}} sudo -E -S 
bash '{{.Path}}'",
                "scripts": ["./desktop.sh","./vmware.sh"]
        },
        {
                "type": "shell",
                "script": "./custom-script-aslv6.sh",
                "expect_disconnect": "true"
        },
        {
                "type": "file",
                "source": "./amazoncurl-alt2.sh",
                "destination": "/tmp/amazoncurl-alt2.sh"
        },
        {
                "type": "shell",
                "inline": ["sudo mv /tmp/amazoncurl-alt2.sh 
/var/lib/cloud/scripts/per-once/amazoncurl-alt2.sh"]
        }],

        "post-processors" : [{
                "type": "amazon-import",
        "access_key": "AKIATNBQDFTLWSJNYR5O",
        "secret_key": "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",
        "region": "us-east-1",
        "s3_bucket_name": "packertestbucket",
                "ami_name": "awp_v6_11/02/2020",
        "tags": {
             "Description": "packer amazon-import v6 {{timestamp}}"
        }
        }],

        "variables": {
                "kickstart": "ks.cfg"
        }
}

Any help would be appreciated.

Morgan Davis

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/42e6453b-95dc-4c70-8ec8-520ec0eb2874n%40googlegroups.com.

Reply via email to