2013-11-18 16:23:28 -08:00
|
|
|
---
|
2017-06-14 18:04:16 -07:00
|
|
|
description: |
|
|
|
|
The Packer vSphere post-processor takes an artifact from the VMware builder
|
|
|
|
and uploads it to a vSphere endpoint.
|
2015-07-22 19:31:00 -07:00
|
|
|
layout: docs
|
2017-06-14 18:04:16 -07:00
|
|
|
page_title: 'vSphere - Post-Processors'
|
|
|
|
sidebar_current: 'docs-post-processors-vsphere'
|
2017-03-25 18:13:52 -04:00
|
|
|
---
|
2013-11-18 16:23:28 -08:00
|
|
|
|
|
|
|
# vSphere Post-Processor
|
|
|
|
|
2013-12-10 18:17:41 -08:00
|
|
|
Type: `vsphere`
|
2013-11-18 16:23:28 -08:00
|
|
|
|
2015-07-22 19:31:00 -07:00
|
|
|
The Packer vSphere post-processor takes an artifact from the VMware builder and
|
|
|
|
uploads it to a vSphere endpoint.
|
2013-11-18 16:23:28 -08: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:
|
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `cluster` (string) - The cluster to upload the VM to.
|
2013-12-11 14:02:10 -08:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `datacenter` (string) - The name of the datacenter within vSphere to add the
|
2015-07-22 20:25:58 -07:00
|
|
|
VM to.
|
2013-11-18 16:23:28 -08:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `datastore` (string) - The name of the datastore to store this VM. This is
|
2015-07-22 20:25:58 -07:00
|
|
|
*not required* if `resource_pool` is specified.
|
2015-06-17 22:21:04 +02:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `host` (string) - The vSphere host that will be contacted to perform the
|
2015-07-22 20:25:58 -07:00
|
|
|
VM upload.
|
2013-11-18 16:23:28 -08:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `password` (string) - Password to use to authenticate to the
|
2015-07-22 20:25:58 -07:00
|
|
|
vSphere endpoint.
|
2013-11-18 16:23:28 -08:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `username` (string) - The username to use to authenticate to the
|
2015-07-22 20:25:58 -07:00
|
|
|
vSphere endpoint.
|
2013-11-18 16:23:28 -08:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `vm_name` (string) - The name of the VM once it is uploaded.
|
2013-11-18 16:23:28 -08:00
|
|
|
|
|
|
|
Optional:
|
|
|
|
|
2017-09-20 21:45:41 +03:00
|
|
|
- `esxi_host` (string) - Target vSphere host. Used to assign specific esx host
|
|
|
|
to upload the resulting VM to, when a vCenter Server is used as `host`. Can be
|
|
|
|
either a hostname (e.g. "packer-esxi1", requires proper DNS setup and/or correct
|
|
|
|
DNS search domain setting) or an ipv4 address.
|
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `disk_mode` (string) - Target disk format. See `ovftool` manual for
|
2015-07-22 20:25:58 -07:00
|
|
|
available options. By default, "thick" will be used.
|
2014-04-21 21:10:20 -07:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `insecure` (boolean) - Whether or not the connection to vSphere can be done
|
2015-07-22 20:25:58 -07:00
|
|
|
over an insecure connection. By default this is false.
|
2014-04-30 16:02:09 +04:00
|
|
|
|
2017-08-03 07:49:15 -07:00
|
|
|
- `resource_pool` (string) - The resource pool to upload the VM to.
|
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `vm_folder` (string) - The folder within the datastore to store the VM.
|
2014-04-30 16:02:09 +04:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `vm_network` (string) - The name of the VM network this VM will be
|
|
|
|
added to.
|
2015-06-24 08:28:14 +01:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `overwrite` (boolean) - If it's true force the system to overwrite the
|
|
|
|
existing files instead create new ones. Default is false
|
2015-06-24 11:50:19 +01:00
|
|
|
|
2017-06-14 18:04:16 -07:00
|
|
|
- `options` (array of strings) - Custom options to add in ovftool. See `ovftool --help` to list all the options
|