packer-plugin-vsphere icon indicating copy to clipboard operation
packer-plugin-vsphere copied to clipboard

`vsphere-clone` with `none` communicator does not start the vm, and proceeds to export after configuration

Open haunab-ornl opened this issue 9 months ago • 5 comments

When filing a bug please include the following headings, if possible.

Overview of the Issue

If the vsphere-clone build is configured with the "none" communicator, the VM is created, configured, and then immediately torn down and exported as per other config.

Reproduction Steps

Create a vsphere-clone builder with communicator now, shutdown_delay and disable_shutdown configered.

Packer Version

Please provide the Packer version.

1.9.4

Plugin Version and Builders

Please provide the plugin version.

1.2.7

Please select the builder.

  • [] vsphere-iso
  • [x] vsphere-clone

VMware vSphere Version

Please provide the VMware vSphere version.

7.0.3

Guest Operating System

Rocky 9 x86_64

Simplified Packer Buildfile

Can't provide :-(

Operating System and Environment Details

OSX

Log Fragments and crash.log Files

N/A

See that the build step is wrapped in an if here: https://github.com/hashicorp/packer-plugin-vsphere/blob/main/builder/vsphere/clone/builder.go#L82

haunab-ornl avatar May 03 '24 12:05 haunab-ornl