2013-11-18 19:23:28 -05:00
|
|
|
---
|
2015-07-22 22:31:00 -04:00
|
|
|
description: |
|
|
|
|
The Packer vSphere post-processor takes an artifact from the VMware builder and
|
|
|
|
uploads it to a vSphere endpoint.
|
|
|
|
layout: docs
|
|
|
|
page_title: 'vSphere Post-Processor'
|
|
|
|
...
|
2013-11-18 19:23:28 -05:00
|
|
|
|
|
|
|
# vSphere Post-Processor
|
|
|
|
|
2013-12-10 21:17:41 -05:00
|
|
|
Type: `vsphere`
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 22:31:00 -04:00
|
|
|
The Packer vSphere post-processor takes an artifact from the VMware builder and
|
|
|
|
uploads it to a vSphere endpoint.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
There are many configuration options available for the post-processor. They are
|
|
|
|
segmented below into two categories: required and optional parameters. Within
|
|
|
|
each category, the available configuration keys are alphabetized.
|
|
|
|
|
|
|
|
Required:
|
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `cluster` (string) - The cluster to upload the VM to.
|
2013-12-11 17:02:10 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `datacenter` (string) - The name of the datacenter within vSphere to add the
|
|
|
|
VM to.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `datastore` (string) - The name of the datastore to store this VM. This is
|
|
|
|
*not required* if `resource_pool` is specified.
|
2015-06-17 16:21:04 -04:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `host` (string) - The vSphere host that will be contacted to perform the
|
|
|
|
VM upload.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `password` (string) - Password to use to authenticate to the
|
|
|
|
vSphere endpoint.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `resource_pool` (string) - The resource pool to upload the VM to. This is
|
|
|
|
*not required*.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `username` (string) - The username to use to authenticate to the
|
|
|
|
vSphere endpoint.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `vm_name` (string) - The name of the VM once it is uploaded.
|
2013-11-18 19:23:28 -05:00
|
|
|
|
|
|
|
Optional:
|
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `disk_mode` (string) - Target disk format. See `ovftool` manual for
|
|
|
|
available options. By default, "thick" will be used.
|
2014-04-22 00:10:20 -04:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `insecure` (boolean) - Whether or not the connection to vSphere can be done
|
|
|
|
over an insecure connection. By default this is false.
|
2014-04-30 08:02:09 -04:00
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
- `vm_folder` (string) - The folder within the datastore to store the VM.
|
2014-04-30 08:02:09 -04:00
|
|
|
|
2015-06-24 03:28:14 -04:00
|
|
|
- `vm_network` (string) - The name of the VM network this VM will be
|
|
|
|
added to.
|
|
|
|
|
|
|
|
- `overwrite` (boolean) - If it's true force the system to overwrite the
|
|
|
|
existing files instead create new ones. Default is false
|
2015-06-24 06:50:19 -04:00
|
|
|
|
2015-10-29 05:42:26 -04:00
|
|
|
- `options` (array of strings) - Custom options to add in ovftool. See `ovftool
|
2015-06-24 06:50:19 -04:00
|
|
|
--help` to list all the options
|