output will be in this color.
Warnings for build '':
* Headless mode uses VNC to retrieve output. Since VNC has been disabled,you won't be able to see any output.
Build '' errored: Failed creating VMware driver: Unable to initialize any driver for this platform. The errorsfrom each driver are shown below. Please fix at least one driverto continue:* exec: "vmware": executable file not found in $PATH* exec: "vmware": executable file not found in $PATH* exec: "vmplayer": executable file not found in $PATH* exec: "vmplayer": executable file not found in $PATH
==> Some builds didn't complete successfully and had errors:--> : Failed creating VMware driver: Unable to initialize any driver for this platform. The errorsfrom each driver are shown below. Please fix at least one driverto continue:* exec: "vmware": executable file not found in $PATH* exec: "vmware": executable file not found in $PATH* exec: "vmplayer": executable file not found in $PATH* exec: "vmplayer": executable file not found in $PATH
==> Builds finished but no artifacts were created.{ "builders": [ { "name": "{{user `name`}}", "tools_upload_flavor": "{{user `tools_upload_flavor`}}", "headless": "true", "ovftool_options": [ "--allowExtraConfig", "--noSSLVerify=true", "true" ], "cpus": "1", "disk_size": "61440", "disk_type_id": "{{user `disk_type_id`}}", "guest_os_type": "{{user `guest_os_type`}}", "iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c", "iso_checksum_type": "sha256", "iso_url": "http://10.150.1.9/isos/CentOS-7-x86_64-Minimal-1810.iso", "keep_registered": true, "memory": "2048", "network_adapter_type": "{{user `network_adapter_type`}}", "disable_vnc": "true", "remote_datastore": "{{user `remote_datastore`}}", "remote_host": "{{user `remote_host`}}", "remote_username": "{{user `remote_username`}}", "remote_password": "{{user `remote_password`}}", "remote_type": "{{user `remote_type`}}", "skip_compaction": true, "usb": "true", "ssh_password": "{{user `ssh_password`}}", "ssh_username": "root", "ssh_wait_timeout": "60m", "boot_wait": "7s", "type": "vmware-iso", "vm_name": "{{user `vm_name`}}", "shutdown_command": "echo 'shutdown -P now'" } ]}
[andrew.meyer@automation01 vmware]$ packer build -var-file=variables.json centos-esxi.json Usage: packer build [options] TEMPLATE
Will execute multiple builds in parallel as defined in the template. The various artifacts created by the template will be outputted.
Options:
-color=false Disable color output. (Default: color) -debug Debug mode enabled for builds. -except=foo,bar,baz Build all builds other than these. -only=foo,bar,baz Build only the specified builds. -force Force a build to continue if artifacts exist, deletes existing artifacts. -machine-readable Produce machine-readable output. -on-error=[cleanup|abort|ask] If the build fails do: clean up (default), abort, or ask. -parallel=false Disable parallelization. (Default: parallel) -timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp. -var 'key=value' Variable for templates, can be used multiple times. -var-file=path JSON file containing user variables.invalid value "variables.json" for flag -var-file: Error reading variables in 'variables.json': invalid character '"' after object key:value pair[andrew.meyer@automation01 vmware]$
--
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/3ddef954-230d-4e36-a3db-36238350a056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{
"esxi_host": "10.150.1.35",
"esxi_datastore": "datastore-nas",
"esxi_username": "root",
"esxi_password": "password"
"esxi_network": "v10101-prod",
"remote_type": "esx5",
"remote_host": "10.150.1.35",
"remote_datastore": "datastore-nas
"remote_username": "root",
"remote_password": "password",
"version": "13",
"name": "test123",
"tools_upload_flavor": "{{user `tools_upload_flavor`}}",
"cpus": "1",
"disk_size": "61440",
"disk_type_id": "thin",
"guest_os_type": "centos7-64",
"iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
"iso_checksum_type": "sha256",
"iso_url": "http://10.150.1.9/isos/CentOS-7-x86_64-Minimal-1810.iso",
"keep_registered": true,
"memory": "2048",
"network_adapter_type": "vmxnet3",
"disable_vnc": "true",
"remote_datastore": "datastore-nas",
"skip_compaction": true,
"usb": "true",
"ssh_password": "password",
"ssh_username": "root",
"ssh_wait_timeout": "60m",
"boot_wait": "7s",
"type": "vmware-iso",
"vm_name": "test123",To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1d0920ce-a41a-4070-9b40-989886318cc2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4d63a64b-077d-4f70-aced-5a5e047fd6c5%40googlegroups.com.
packer build centos-esxi.json
output will be in this color.
2 error(s) occurred:
* remote_host must be specified
* exporting the vm (with ovftool) requires that you set a value for remote_password$ packer build -var-file=variables.json centos-esxi.json
Usage: packer build [options] TEMPLATE
Will execute multiple builds in parallel as defined in the template.
The various artifacts created by the template will be outputted.
Options:
-color=false Disable color output. (Default: color)
-debug Debug mode enabled for builds.
-except=foo,bar,baz Build all builds other than these.
-only=foo,bar,baz Build only the specified builds.
-force Force a build to continue if artifacts exist, deletes existing artifacts.
-machine-readable Produce machine-readable output.
-on-error=[cleanup|abort|ask] If the build fails do: clean up (default), abort, or ask.
-parallel=false Disable parallelization. (Default: parallel)
-timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp.
-var 'key=value' Variable for templates, can be used multiple times.
-var-file=path JSON file containing user variables.
invalid value "variables.json" for flag -var-file: Error reading variables in 'variables.json': json: cannot unmarshal bool into Go value of type string
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/13a35046-ac07-4085-b772-85a5578a5945%40googlegroups.com.
[andrew.meyer@automation01 vmware]$ packer build -var-file="variables.json" centos-esxi.json Usage: packer build [options] TEMPLATE
Will execute multiple builds in parallel as defined in the template. The various artifacts created by the template will be outputted.
Options:
-color=false Disable color output. (Default: color) -debug Debug mode enabled for builds. -except=foo,bar,baz Build all builds other than these. -only=foo,bar,baz Build only the specified builds. -force Force a build to continue if artifacts exist, deletes existing artifacts. -machine-readable Produce machine-readable output. -on-error=[cleanup|abort|ask] If the build fails do: clean up (default), abort, or ask. -parallel=false Disable parallelization. (Default: parallel) -timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp. -var 'key=value' Variable for templates, can be used multiple times. -var-file=path JSON file containing user variables.invalid value "variables.json" for flag -var-file: Error reading variables in 'variables.json': json: cannot unmarshal bool into Go value of type string[andrew.meyer@automation01 vmware]$
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/76685169-df3d-4475-beb2-82940e99e7ee%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1b53a11d-73c8-442c-b21e-47297d94eea1%40googlegroups.com.
cat ~/Ops/packer/vmware/vars.json
{
"esxi_host": "10.150.1.35",
"esxi_datastore": "datastore-nas",
"esxi_username": "root",
"esxi_password": "infotech",
"esxi_network": "v10101-prod",
"remote_type": "esx5",
"remote_host": "10.150.1.35",
"remote_datastore": "datastore-nas",
"remote_username": "root",
"remote_password": "removed",
"version": "13",
"name": "test123",
"tools_upload_flavor": "linux",
"cpus": "1",
"disk_size": "61440",
"disk_type_id": "thin",
"guest_os_type": "centos7-64",
"iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
"iso_checksum_type": "sha256",
"iso_url": "http://10.150.1.7/isos/CentOS-7-x86_64-Minimal-1810.iso",
"vnc_disable_password": "true",
"keep_registered": "true",
"memory": "2048",
"network_adapter_type": "vmxnet3",
"skip_compaction": "true",
"disable_vnc": "false",
"usb": "true",
"ssh_password": "removed",
"ssh_username": "root",
"ssh_wait_timeout": "60m",
"boot_wait": "7s",
"type": "vmware-iso",
"vm_name": "test123",
"shutdown_command": "echo 'shutdown -P now'",
"boot_command": [ "<tab> text ks=http://10.150.1.7/centos7/ks.cfg<enter><wait>" ]
}
cat ~/Ops/packer/vmware/centos-esxi.json
{
"builders": [
{
"name": "{{user `name`}}",
"tools_upload_flavor": "{{user `tools_upload_flavor`}}",
"headless": "true",
"ovftool_options": [ "--allowExtraConfig", "--noSSLVerify=true", "true" ],
"cpus": "1",
"disk_size": "61440",
"disk_type_id": "{{user `disk_type_id`}}",
"guest_os_type": "{{user `guest_os_type`}}",
"iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
"iso_checksum_type": "sha256",
"memory": "2048",
"network_adapter_type": "{{user `network_adapter_type`}}",
"disable_vnc": "{{user `disable_vnc`}}",
"vnc_disable_password": "{{user `vnc_disable_password`}}",
"remote_datastore": "{{user `remote_datastore`}}",
"remote_host": "{{user `remote_host`}}",
"remote_username": "{{user `remote_username`}}",
"remote_password": "{{user `remote_password`}}",
"remote_type": "esx5",
"skip_compaction": "true",
"usb": "true",
"ssh_password": "{{user `ssh_password`}}",
"ssh_username": "root",
"ssh_wait_timeout": "60m",
"boot_wait": "7s",
"type": "vmware-iso",
"vm_name": "{{user `vm_name`}}",
"shutdown_command": "echo 'shutdown -P now'",
"boot_command": [ "<tab> text ks=http://10.150.1.7/centos7/ks.cfg<enter><wait>" ]
}
]
}
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/44d31e3d-00e8-4bfe-84bf-a345c9703bc0%40googlegroups.com.
I want to use the kickstart file to automate the build. What would be the best way to do this?
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/df49cfc4-2305-43eb-9d5a-1ca37b266983%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/6PCjTpzHKNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt_7eQ_cSPondKBni5jDOkYm9-ENQwP5M9TOZMpbpX8R8w%40mail.gmail.com.