vSphere post-processor to a standalone ESXi-host

26 views
Skip to first unread message

Tom Seijmour

unread,
Apr 16, 2021, 4:54:46 AM4/16/21
to Packer

Hi,

I'm trying to set up the vSphere post-processor to upload an artifact to a standalone ESXi-host. But I can't get it to work. This is the error:

" vsphere-clone.vc4_build (vsphere): Error: Locator does not refer to an object: vi://esx...@esxhost01.local:443ha-datacenter/host/esxhost01.local/Resources/ha-datacenter/host/esxhost01"

This is my config:

post-processor "vsphere"{
          keep_input_artifact = true
          vm_name = "test"
          vm_network = "xxx"
          cluster = "esxhost01"
          datacenter = "ha-datacenter"
          datastore = "xxx"
          host = "esxhost01.local"
          password = "xxx"
          username = "xxx"
          insecure = true


Parameters "cluster" and "datacenter" are mandatory, even though a standalone ESXi-host doesn't have those.

Does anyone have a working example on how I can make this work? Or does the post-processor not support standalone ESXi-hosts?

Packer: 1.7.2
ovftool: VMware ovftool 4.4.1 (build-16812187)
Reply all
Reply to author
Forward
0 new messages