Saturday, 20 December 2014

SRM - IP Customisation error


During an SRM (5.0) failover, a VM failed during the IP customisation failed at step 11. It was strange as we hadn't seen this error in quite a while.

11. Power On Priority 3 VMs     Error - Cannot complete customization, possibly due to a scripting runtime error or invalid script parameters (Error code: -1). IP settings may have been partially applied.

Looking through the SRM logs, they pointed to an error in C:\Windows\TEMP\vmware-imc\guestcust.log at the VM guest.

On the guest OS, looking at C:\Windows\TEMP\vmware-imc\guestcust.log:

Guestcust.log :
=================
 2014-12-04T13:12:07  INFO] GuestCustUtil invoked.
 2014-12-04T13:12:07  INFO] Params: setupNic -m 00:50:56:aa:aa:aa -s 10.10.10.145 -su 255.255.255.0
 2014-12-04T13:12:07 DEBUG] Rpci: Sending request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@No error message found for error code -2147217406 (0x80041002)'

 2014-12-04T13:12:07 DEBUG] Rpci: Sent request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@No error message found for error code -2147217406 (0x80041002)', reply='Unknown command', len=15, status=0

 2014-12-04T13:12:07 ERROR] Unable to set customization status in vmx.

 2014-12-04T13:12:07 ERROR] error number 80041002, No error message found for error code -2147217406 (0x80041002)
 2014-12-04T13:12:07  INFO] GuestCustUtil exiting.


Checking with VMware Support, they said this occurs when the WMI repository is corrupted. You have to rebuild the WMI repository.

For rebuilding the WMI repository, check out:

http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx

The solution looks pretty full on.

As always, be careful and contact VMware support for any issues like this. 


No comments:

Post a Comment