vSphere Clone configure winRm before packer wait winRm become available


We work with vSphere clone.
We have an existing template with no winRm config done.

In the order when we launch a packer build the process :

  • Clone template
  • Reconfigure machine
  • Load floppy files
  • Get an ip
  • Wait winRm to become available

How we can config winRm layer before packer wait winRm to become avaible please?

Thx for your help.

Hi ! in order to enable WinRM, you should use a script like this one : configure winrm for packer · GitHub

I advise to use it first in your template (or if you build a template, launch it at the end of your installation, or through an autounattend.xml, the easiest way in my opinion)

You can use floppy_files option ( vSphere ISO - Builders | Packer | HashiCorp Developer ) to load the script and manually launch it in the VM for example :slight_smile:

Here’s a great link about how to setup winRM (specially with VMWare too ) Communicators - Templates | Packer | HashiCorp Developer