Packer Plugin for VMware vSphere¶
The Packer Plugin for VMware vSphere is a plugin for creating virtual machine images for use with VMware vSphere®.
Installation¶
To install this plugin add this code into your Packer configuration and run packer init
Alternatively, you can use packer plugins install to manage installation of this plugin.
Components¶
The plugin includes builders, post-processors, and data sources for creating virtual machine images, depending on your desired strategy:
Builders¶
-
vsphere-iso - This builder starts from an ISO file and uses the vSphere API to build a virtual machine image on an ESX host.
-
vsphere-clone - This builder clones a virtual machine from an existing template using the uses the vSphere API and then modifies and saves it as a new template.
-
vsphere-supervisor - This builder deploys and publishes new virtual machine to a vSphere Supervisor cluster using VM Service.
Post-Processors¶
-
vsphere - This post-processor uploads an artifact to a vSphere endpoint. The artifact must be a VMX, OVA, or OVF file.
-
vsphere-template - This post-processor uses an artifact from the vSphere post-processor. It then marks the virtual machine as a template and moves it to your specified path.
Data Sources¶
- virtualmachine - This data source retrieves information about existing virtual machines from vSphere and returns the name of a virtual machine that matches all specified filters. This virtual machine can be used in the vSphere Clone builder to select a template.
Requirements¶
The plugin supports versions in accordance with the Broadcom Product Lifecycle.
Support¶
The plugin is supported by the project maintainers and the plugin community.