• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Packer
  • Install
  • Tutorials
  • Documentation
  • Guides
  • Plugins
  • Try Cloud(opens in new tab)
  • Sign up
Packer Home

Plugins

Skip to main content
  • Plugins

      • Overview
      • Clone
      • ISO
      • Supervisor

  • Resources

  • Tutorial Library
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  1. Developer
  2. Packer
  3. Plugins
  4. Builders
  5. VMware vSphere
Official
HCP Packer Ready
v1.1.1

»vSphere Builder

The vSphere Packer builder is able to create vSphere virtual machines for use with any VMware product.

This Packer plugin includes three builders to create vSphere machines, depending on the strategy you want to use to build the image:

  • vsphere-iso - This builder starts from an ISO file and utilizes the vSphere API to build on a remote esx instance. This allows you to build vms even if you do not have SSH access to your vSphere cluster.

  • vsphere-clone - This builder clones a vm from an existing template, then modifies it and saves it as a new template. It uses the vSphere API to build on a remote esx instance. This allows you to build vms even if you do not have SSH access to your vSphere cluster.

  • vsphere-supervisor - This builder deploys a vm to a vSphere Supervisor cluster, using the VM-Service API. This allows you to build vms without spec yaml files and configure them after using the Packer provisioners.

How to use this plugin

From Packer v1.7.0, copy and paste this code into your Packer configuration to install this plugin. Then, run packer init.

packer {
  required_plugins {
    vsphere = {
      version = ">= 1.1.1"
      source = "github.com/hashicorp/vsphere"
    }
  }
}
Edit this page on GitHub

On this page

  1. vSphere Builder
  2. How to use this plugin
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)