Windows VMs deployed via Aria Automation receive APIPA (169.x.x.x) IP addresses instead of IPAM-assigned IPs
search cancel

Windows VMs deployed via Aria Automation receive APIPA (169.x.x.x) IP addresses instead of IPAM-assigned IPs

book

Article ID: 463094

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • Newly deployed Windows virtual machines provisioned via VMware Aria Automation are falling back to APIPA (169.254.x.x) IP addresses instead of receiving the expected static IPs assigned through the Infoblox/IPAM integration.
  • The issue is isolated to specific vSphere templates which were recently patched for security updates, causing Sysprep to fail on guest customization.
  • A review of %windir%\System32\Sysprep\Panther\setupact.log indicates this crash is triggered by the presence of a C:\Windows.old folder within the template containing leftover files from a previous Windows installation or patch update. Because the Sysprep process crashes upon encountering this residual directory, it fails to execute the final guest OS configuration steps necessary to apply the proper IP configuration.
    Info SYSPRP ActionPlatform: : LaunchModule: Executing method 'Sysprep_Clean_Opk' from C: \Windows\System32\spopk. dll
    Error pValidateChildDirectory: Failed to validate the working directory [C:\Windows.old]. hr = 0x80070002[gle=0x00000002]
    Error pLoadSetupPlatform: Child directory validation failed for [C:\Windows.old\$WINDOWS .~ BT\Sources]. hr = 0x80070002[gle=0x00000002]
    Error pGetUninstallInterfaceCommon: Failed loading the setupplatform, hr = 0x80070002[gle=0x00000002]
    Error SYSPRP RemoveUninstall:Failed to instantiate uninstall interface; hr = 0x80070002[gle=0x00000002]
    Error SYSPRP Sysprep_Clean_Opk:Failed to remove Uninstall; dwRet = 0x2[gle=0x00000002]
    Error SYSPRP ActionPlatform :: LaunchModule: Failure occurred while executing 'Sysprep_Clean_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x2[gle=0x00000002]
    Error SYSPRP SysprepSession :: ExecuteAction: Failed during sysprepModule operation; dwRet = 0x2[gle=0x00000006]
    Error SYSPRP SysprepSession :: ExecuteInternal: Error in executing action for Microsoft-Windows-Sysprep-SpOpk; dwRet = 0x2[gle=0x00000006]
    Error SYSPRP SysprepSession :: Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x2
    Info SYSPRP SysprepSession :: Execute: Sysprep mode was not specified, deleting it from registry
    Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x2
    Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
    Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070002
    Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    Info [0x0f0052] SYSPRP Shutting down SysPrep log

Environment

VMware Aria Automation 8.x

Cause

This issue occurs because the Windows System Preparation (Sysprep) utility encounters a fatal error and crashes during the Sysprep_Clean_Opk phase within the guest operating system.

Resolution

  1. Convert the windows template to virtual machine and fix the Sysprep issue at the windows level.
  2. Covert back the virtual machine to template and retry the deployment from Aria automation.

Additional Information

Guest OS customization via Sysprep falls outside VMware Aria Automation support.