VMware Cloud Community
AlexP012
Contributor
Contributor

Customisation not applying consistently

Hi

I've created a build script that uses a template and a customisation file in VMware 5.0.

When this does not seem to apply consistently. I've just used the script to build 6 servers and on three of them the customisation never completed. Below is the guestcust.log from a server that didn't complete it's customisation. This is the same as one that was successful, but the successful server has additional entries after the end of the unsuccessful one.

I'm mystified as to why some work and other don't.

Any Ideas??

[2017-11-23T12:16:47  INFO] GuestCustUtil invoked.
[2017-11-23T12:16:47  INFO] Params: customize -sealparam "/quiet /generalize /oobe /reboot" -schedulenativeunobfusc
[2017-11-23T12:16:47 DEBUG] Registry value 'CustomRescheduleFlags' is not set. Returning default value: 0
[2017-11-23T12:16:47  INFO] Checking for Windows Sysprep Respecialize operation.
[2017-11-23T12:16:47 DEBUG] Sysprep process is not running.
[2017-11-23T12:16:47  INFO] Windows Sysprep Respecialize operation was not detected.
[2017-11-23T12:16:47 DEBUG] Customization in progress set to 1 at 2017-Nov-23 12:16:47
[2017-11-23T12:16:47 DEBUG] Rpci: Sending request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log'

[2017-11-23T12:16:47 DEBUG] Rpci: Sent request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log', reply='', len=0, status=1

[2017-11-23T12:16:47 DEBUG] Successfully opened key SYSTEM\CurrentControlSet\Control\Session Manager\
[2017-11-23T12:16:47 DEBUG] Size of reg_multi_sz 27.
[2017-11-23T12:16:47 DEBUG] Read multi_sz value from registry autocheck autochk /q /v *, size 27.
[2017-11-23T12:16:47 DEBUG] string value from registry autocheck autochk /q /v *.
[2017-11-23T12:16:47 DEBUG] Returning 1 elements
[2017-11-23T12:16:47 DEBUG] Got BootExecute from session mgr.
[2017-11-23T12:16:47 DEBUG] Native App sysprepDecrypter.exe, arguments ''
[2017-11-23T12:16:47 DEBUG] Copied file sysprepDecrypter.exe to C:\Windows\system32\sysprepDecrypter.exe
[2017-11-23T12:16:47 DEBUG] Updated boot execute value.
[2017-11-23T12:16:47 DEBUG] Successfully created/opened key SOFTWARE\VMware, Inc.\Guest Customization\
[2017-11-23T12:16:47 DEBUG] New boot execute:
[2017-11-23T12:16:47 DEBUG] autocheck autochk /q /v *
[2017-11-23T12:16:47 DEBUG] sysprepDecrypter.exe
[2017-11-23T12:16:47 DEBUG] System Drive: C:

[2017-11-23T12:16:47 DEBUG] Moving directory 'sysprep' to 'C:'

[2017-11-23T12:16:48 DEBUG] select * from win32_networkadapter where Manufacturer != 'Microsoft' and ServiceName != 'VMnetAdapter' and  manufacturer is not null and MACAddress is not null
[2017-11-23T12:16:48 DEBUG] Found 1 objects. Pointer 6593e0. return code 0(0x0)
[2017-11-23T12:16:48 DEBUG] Found 0 objects. Pointer 0. return code 1(0x1)
[2017-11-23T12:16:48 DEBUG] Returning value 00:50:56:AA:55:17 for system property
[2017-11-23T12:16:48 DEBUG] Setting dhcp for nic # 0
[2017-11-23T12:16:48 DEBUG] Returning value \\W2K12R2-STD-SRC\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="12" for system property
[2017-11-23T12:16:48 DEBUG] ASSOCIATORS OF {\\W2K12R2-STD-SRC\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="12"} where ResultClass = Win32_NetworkAdapterConfiguration
[2017-11-23T12:16:48 DEBUG] Found 1 objects. Pointer 6a8db8. return code 0(0x0)
[2017-11-23T12:16:48 DEBUG] Found 0 objects. Pointer 0. return code 1(0x1)
[2017-11-23T12:16:48 DEBUG] Clearing gateway ip addresses.
[2017-11-23T12:16:48 DEBUG] Enabling DHCP on the computer
[2017-11-23T12:16:48 DEBUG] Returning value \\W2K12R2-STD-SRC\ROOT\CIMV2:Win32_NetworkAdapterConfiguration.Index=12 for system property
[2017-11-23T12:16:48 DEBUG] Setting DNS Server to ip
[2017-11-23T12:16:48 DEBUG] Executing command C:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /reboot /unattend:C:\sysprep\sysprep.xml

[2017-11-23T12:16:48 DEBUG] Successfully executed command C:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /reboot /unattend:C:\sysprep\sysprep.xml

[2017-11-23T12:16:48  INFO] GuestCustUtil exiting.

0 Kudos
0 Replies