The deployment failure is most likely caused by how the template VM was prepared and the local Administrator account/password configuration before Sysprep.
From the documented guidance for creating templates and SAN‑copy–capable templates in VMM:
- Before creating a template from an existing VM, a new local administrator account must be created on that VM. Using the default built‑in Administrator account causes Sysprep to fail.
- The VM must not be joined to a domain when Sysprep/generalization is run.
- The virtual hard disk used for the template must be Sysprepped (generalized) correctly before being added to the library and used as a VM template.
If the template was created with only the built‑in Administrator account (even with a blank password), or the VM was domain‑joined when generalized, Sysprep can fail during the “customize virtual machine” phase, which in VMM typically appears as a deployment failure around the customization step.
To resolve:
- Rebuild or fix the source VM for the template:
- Deploy a fresh VM from the Windows Server 2025 media.
- Create a new local administrator account (do not rely on the built‑in Administrator account).
- Ensure the VM is in a workgroup (not joined to a domain).
- Install and configure any required applications.
- Generalize the VM correctly:
- Run Sysprep with
/generalize and /oobe on the VM so that the associated VHD is properly generalized.
- Ensure no ISO files are attached to the virtual DVD drive when capturing.
- Create a new VM template from this correctly prepared VM/VHD in the VMM library.
- Deploy a VM from the new template, specifying the local admin password and domain/workgroup settings during deployment.
Also note:
- Static IP settings are only available when deploying from a VM template, so if static IPs are being used, ensure they are configured only at deployment time, not baked into the generalized image.
- For security, avoid granting template access to users who do not also have rights to any Run As accounts embedded in the template, as they could extract credentials during deployment.
After recreating the template following these requirements, the “customize virtual machine” step should complete successfully instead of failing at 83%.
References: