github.com/aclaygray/packer@v1.3.2/website/source/docs/post-processors/vsphere.html.md (about) 1 --- 2 description: | 3 The Packer vSphere post-processor takes an artifact from the VMware builder 4 and uploads it to a vSphere endpoint. 5 layout: docs 6 page_title: 'vSphere - Post-Processors' 7 sidebar_current: 'docs-post-processors-vsphere' 8 --- 9 10 # vSphere Post-Processor 11 12 Type: `vsphere` 13 14 The Packer vSphere post-processor takes an artifact from the VMware builder and 15 uploads it to a vSphere endpoint. 16 17 ## Configuration 18 19 There are many configuration options available for the post-processor. They are 20 segmented below into two categories: required and optional parameters. Within 21 each category, the available configuration keys are alphabetized. 22 23 Required: 24 25 - `cluster` (string) - The cluster to upload the VM to. 26 27 - `datacenter` (string) - The name of the datacenter within vSphere to add the 28 VM to. 29 30 - `datastore` (string) - The name of the datastore to store this VM. This is 31 *not required* if `resource_pool` is specified. 32 33 - `host` (string) - The vSphere host that will be contacted to perform the 34 VM upload. 35 36 - `password` (string) - Password to use to authenticate to the 37 vSphere endpoint. 38 39 - `username` (string) - The username to use to authenticate to the 40 vSphere endpoint. 41 42 - `vm_name` (string) - The name of the VM once it is uploaded. 43 44 Optional: 45 46 - `esxi_host` (string) - Target vSphere host. Used to assign specific esx host 47 to upload the resulting VM to, when a vCenter Server is used as `host`. Can be 48 either a hostname (e.g. "packer-esxi1", requires proper DNS setup and/or correct 49 DNS search domain setting) or an ipv4 address. 50 51 - `disk_mode` (string) - Target disk format. See `ovftool` manual for 52 available options. By default, "thick" will be used. 53 54 - `insecure` (boolean) - Whether or not the connection to vSphere can be done 55 over an insecure connection. By default this is false. 56 57 - `resource_pool` (string) - The resource pool to upload the VM to. 58 59 - `vm_folder` (string) - The folder within the datastore to store the VM. 60 61 - `vm_network` (string) - The name of the VM network this VM will be 62 added to. 63 64 - `overwrite` (boolean) - If it's true force the system to overwrite the 65 existing files instead create new ones. Default is false 66 67 - `options` (array of strings) - Custom options to add in ovftool. See `ovftool --help` to list all the options