Closed davdmrgn closed 1 year ago
This looks like a potential issue in PowerCLI. This repo contains some other open-source modules, but the core PowerCLI modules are not open-source and are not located here. If you have issues with PowerCLI you should open an SR as described in the PowerCLI user's guide - https://developer.vmware.com/docs/15315/GUID-0F835722-E667-4177-A8EF-51AB15FA837E.html
Describe the bug
Deploying a VM where a static IP is required while using an OS customization specification requires a copy of an existing OS customization spec, typically non-persistent as it is only used to deploy that virtual machine.
When creating a new OS customization spec from an existing one, data stored for Linux servers (time zone, scripts, etc) are buried under extensiondata in a separate, non-writable object and is not copied to the new non-persistent OS customization spec.
Work-around
Create a persistent customization spec for your deployment, and manually delete it afterwards. Creating a new persistent customization spec from an existing one copies the extension data required for Linux customization.
Reproduction steps
Expected behavior
Creating a non-persistent OS customization spec should copy all data required for Linux.
Furthermore, there are fields available in the primary object - these data could be stored there to ensure they're copied, rather than having it buried in another object under extension data.
Additional context
Persistent OS Customization Spec
Extension Data
Non-Persistent Copy