You can generate an image of a VM that has a configured NSX agent.

To remove configurations from an existing NSX-managed VM and use it for generating images, do the following:

Procedure

  1. Removing NSX agent configurations from a Windows or Linux VM:
    1. Log in to the workload VM using preferably using a jumphost.
    2. Open the NSX-T CLI:
      sudo nsxcli
    3. Enter the following commands:
      hostname> set debug
      hostname> clear nsx-vm-agent state
      
  2. Locate this VM in your public cloud and create an image.