VMware Cloud Community
GScully42
Enthusiast
Enthusiast

Guest customization fails - doesn't rename vm or reboot

I am having issues with Windows 7 vm refusing to customize, I even created a new vm OS = Windows 7 x64 Enterprise, fresh install latest vmware tools,

After I deploy the vm it powers up and autologs in the first time but fails to rename the vm and reboot to join the domain. The account I'm using is a local admin on the vm and has rights to add computers to the domain.

I created a Win8.1 vm today the same way and it works as expected.

Any idea's on wher to start looking?

this is the Script to join, but it never gets that far,

if "%1%" == "precustomization" (goto end)

else if "%1%" == "postcustomization" (net dom join %COMPUTERNAME% /domain:domain.local /userd:qaserv@domain.local /passwordd:********* /reboot)

:end

This is the tail of the log,

[2015-11-20T16:30:18:                              :  DEBUG] Successfully executed command C:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /reboot /unattend:C:\sysprep\sysprep.xml

[2015-11-20T16:30:18:      SysprepCustomizationFlow:   INFO] Sysprep flow completed

[2015-11-20T16:30:18: ExtendedWinCustomizationLogic:   INFO] Extended customization flow completed

[2015-11-20T16:30:18:                              :   INFO] GuestCustUtil exiting.

ToollsDeploy log,

Ran DeployPkg_DeployPackageFromFile successfully

VSphere 5.5 with latest updates.

I don't know which version of Director.

Tags (2)
0 Kudos
3 Replies
admin
Immortal
Immortal

0 Kudos
GScully42
Enthusiast
Enthusiast

Nope, not helpful the vm doens't even get renamed, it deploys and does nothing.

Log file contents:

[2016-01-08T09:38:43:                              :   INFO] GuestCustUtil invoked.

[2016-01-08T09:38:43:                              :   INFO] Params: customize -sealparam "/quiet /generalize /oobe /reboot" -schedulenativeunobfusc -custCfg 1466-ccd0-b6e6-7f7a.cust

[2016-01-08T09:38:43:                              :  DEBUG] Customization in progress set to 1 at 2016-Jan-08 09:38:43

[2016-01-08T09:38:43:                              :  DEBUG] Rpci: Sending request='deployPkg.update.state 4 0 C:/Windows/TEMP/vmware-imc/guestcust.log'

[2016-01-08T09:38:43:                              :  DEBUG] Rpci: Sent request='deployPkg.update.state 4 0 C:/Windows/TEMP/vmware-imc/guestcust.log', reply='', len=0, status=1

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:   INFO] Starting extended customization flow based on '1466-ccd0-b6e6-7f7a.cust'...

[2016-01-08T09:38:43:         CustomizationSettings:   INFO] Parsing customization settings from 1466-ccd0-b6e6-7f7a.cust

[2016-01-08T09:38:43:         CustomizationSettings:  DEBUG] NICs node count 1

[2016-01-08T09:38:43:         CustomizationSettings:  DEBUG] Parsing NIC...

[2016-01-08T09:38:43:                    GenericNic:  DEBUG] NIC [MAC 00:50:56:01:0e:78, Primary 1]

[2016-01-08T09:38:43:                    GenericNic:  DEBUG] dns=10.99.90.17; dns=10.99.90.24; dnsSuffix=domain.local;

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] Hostname: GregsTEst4

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] CustomizationScript initialized: true

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] ActualAdminPassword initialized: false

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] Generate SID: 1

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] AutoLogonCount initialized: false

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] ChangeProductKey: 1

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] ResetPassword: 0

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] Marker ID: e0a87c5f-21c5-4271-90d2-1920cd82bf7c

[2016-01-08T09:38:43:      ExtendedWinCustomization:  DEBUG] Post guestinfo.gc.status: true

[2016-01-08T09:38:43:                 GuestCustUtil:  DEBUG] Creating status marker file C:/Windows/.post-gc-status

[2016-01-08T09:38:43:                 GuestCustUtil:  DEBUG] Status marker file C:/Windows/.post-gc-status doesn't exist

[2016-01-08T09:38:43:                 GuestCustUtil:  DEBUG] Status marker created

[2016-01-08T09:38:43:                 GuestCustUtil:   INFO] VMware tools installation path=C:\Program Files\VMware\VMware Tools\

[2016-01-08T09:38:43:     WindowsOsAbstractionLayer:   INFO] Executing command: '"C:\Program Files\VMware\VMware Tools\vmtoolsd.exe" --cmd "info-set guestinfo.gc.status Started"'

[2016-01-08T09:38:43:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

'

[2016-01-08T09:38:43:                 GuestCustUtil:  DEBUG] Marker file C:\Windows\autoconfig-e0a87c5f-21c5-4271-90d2-1920cd82bf7c does not exist

[2016-01-08T09:38:43:      SysprepCustomizationFlow:   INFO] Running Sysprep flow

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:   INFO] Starting common extended customization flow

[2016-01-08T09:38:43:                              :  DEBUG] Successfully opened key SYSTEM\CurrentControlSet\Control\Session Manager\

[2016-01-08T09:38:43:                              :  DEBUG] Size of reg_multi_sz 21.

[2016-01-08T09:38:43:                              :  DEBUG] Read multi_sz value from registry autocheck autochk *, size 21.

[2016-01-08T09:38:43:                              :  DEBUG] string value from registry autocheck autochk *.

[2016-01-08T09:38:43:                              :  DEBUG] Returning 1 elements

[2016-01-08T09:38:43:                              :  DEBUG] Got BootExecute from session mgr.

[2016-01-08T09:38:43:                              :  DEBUG] Native App sysprepDecrypter.exe, arguments ''

[2016-01-08T09:38:43:                              :  DEBUG] Copied file sysprepDecrypter.exe to C:\Windows\system32\sysprepDecrypter.exe

[2016-01-08T09:38:43:                              :  DEBUG] Updated boot execute value.

[2016-01-08T09:38:43:                              :  DEBUG] Successfully created/opened key SOFTWARE\VMware, Inc.\Guest Customization\

[2016-01-08T09:38:43:                              :  DEBUG] New boot execute:

[2016-01-08T09:38:43:                              :  DEBUG] autocheck autochk *

[2016-01-08T09:38:43:                              :  DEBUG] sysprepDecrypter.exe

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] Initializing NICs...

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list...

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Populating the MAC address -> Adapter name map

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as '{5E16E8F1-E168-42A9-B457-AA3D56029B1F}'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as index '11'

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list completed

[2016-01-08T09:38:43:                     NICConfig:  DEBUG] Constructing NICConfig 00:50:56:01:0e:78

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] Validating NIC

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] NIC has been added successfully

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] Initializing 1 NICs completed

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:   INFO] Applying network settings before pre-customization...

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:   INFO] Applying network settings (IPv4: true, IPv6: true)...

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] Waiting for all NICs to become ready...

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list...

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Populating the MAC address -> Adapter name map

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as '{5E16E8F1-E168-42A9-B457-AA3D56029B1F}'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as index '11'

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list completed

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list...

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Populating the MAC address -> Adapter name map

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as '{5E16E8F1-E168-42A9-B457-AA3D56029B1F}'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Mapping '00:50:56:01:0e:78' as index '11'

[2016-01-08T09:38:43:                 AdapterConfig:   INFO] Initializing adapter list completed

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Getting adapter name corresponding to the MAC address '00:50:56:01:0e:78'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Adapter name: '{5E16E8F1-E168-42A9-B457-AA3D56029B1F}'

[2016-01-08T09:38:43: ExtendedWinCustomizationLogic:  DEBUG] NICs are ready: true

[2016-01-08T09:38:43:                     NICConfig:   INFO] Configuring NIC...

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Getting adapter name corresponding to the MAC address '00:50:56:01:0e:78'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Adapter name: '{5E16E8F1-E168-42A9-B457-AA3D56029B1F}'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Getting adapter index corresponding to the MAC address 00:50:56:01:0e:78

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Adapter index: '11'

[2016-01-08T09:38:43:                 AdapterConfig:  DEBUG] Query network config type for given adapter (static/DHCP)

[2016-01-08T09:38:43:                     NICConfig:  DEBUG] Applying networking configuration (IPv4: true, IPv6: true)...

[2016-01-08T09:38:43:                     NICConfig:  DEBUG] Setting DHCP IPv4 on NIC '11'

[2016-01-08T09:38:43:                     NICConfig:   INFO] Adapter is already DHCP enabled

[2016-01-08T09:38:43:                     NICConfig:  DEBUG] Setting DHCP IPv6 on NIC '11'

[2016-01-08T09:38:43:                VistaNicConfig:  DEBUG] Getting guest IPv6 addresses...

[2016-01-08T09:38:43:     WindowsOsAbstractionLayer:   INFO] Executing command: 'netsh int ipv6 show addresses 11'

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

'

[2016-01-08T09:38:49:                VistaNicConfig:  DEBUG] Deleting 0 IPv6 addresses

[2016-01-08T09:38:49:                VistaNicConfig:  DEBUG] Getting guest IPv6 gateways...

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Executing command: 'netsh int ipv6 show route'

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

Publish  Type      Met  Prefix                    Idx  Gateway/Interface Name

-------  --------  ---  ------------------------  ---  ------------------------

No       Manual    256  ::1/128                     1  Loopback Pseudo-Interface 1

No       Manual    256  ff00::/8                    1  Loopback Pseudo-Interface 1

'

[2016-01-08T09:38:49:                VistaNicConfig:  DEBUG] Deleting 0 IPv6 gateways

[2016-01-08T09:38:49:                VistaNicConfig:  DEBUG] Deleting IPv6 DNS Servers

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Executing command: 'netsh interface ipv6 delete dns 11 all'

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

There are no Domain Name Servers (DNS) configured on this computer.

'

[2016-01-08T09:38:49:                VistaNicConfig:  DEBUG] Renewing IPv6 DHCP

[2016-01-08T09:38:49:     WindowsOsAbstractionLayer:   INFO] Executing command: 'ipconfig /renew6 11'

[2016-01-08T09:38:50:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

Windows IP Configuration

The operation failed as no adapter is in the state permissible for

this operation.

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : domain.local

   IPv4 Address. . . . . . . . . . . : 10.100.113.20

   Subnet Mask . . . . . . . . . . . : 255.255.240.0

   Default Gateway . . . . . . . . . : 10.100.112.1

'

[2016-01-08T09:38:50:                     NICConfig:  DEBUG] Setting DHCP IPv6 completed

[2016-01-08T09:38:50:                     NICConfig:  DEBUG] Applying networking configuration completed

[2016-01-08T09:38:50:                     NICConfig:   INFO] Configuring NIC completed

[2016-01-08T09:38:50: ExtendedWinCustomizationLogic:   INFO] Applying network completed

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] RunCustomizationScript: step '0', scriptName 'script5012496462074707820.bat'

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Artifact full path: C:\Windows\TEMP\vmw98A7.tmp\script5012496462074707820.bat

[2016-01-08T09:38:50:                 GuestCustUtil:   INFO] About to run pre-customization inline...

[2016-01-08T09:38:50:     WindowsOsAbstractionLayer:   INFO] Executing command: 'cmd /c C:\Windows\TEMP\vmw98A7.tmp\script5012496462074707820.bat precustomization'

[2016-01-08T09:38:50:     WindowsOsAbstractionLayer:   INFO] Command execution succeeded, output: '

C:\Windows\TEMP\vmw98A7.tmp>if "precustomization" == "precustomization" (goto end )  else if "precustomization" == "postcustomization" (net dom join CAD57WIN7 /domain:domain.local /userd:user /passwordd:**** /reboot )

'

[2016-01-08T09:38:50:                 GuestCustUtil:   INFO] Customization script successfully executed.

[2016-01-08T09:38:50:                 GuestCustUtil:   INFO] Performing password configuration...

[2016-01-08T09:38:50:                 GuestCustUtil:   INFO] Performing password configuration completed

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Creating marker file C:\Windows\autoconfig-e0a87c5f-21c5-4271-90d2-1920cd82bf7c

[2016-01-08T09:38:50: ExtendedWinCustomizationLogic:   INFO] Common extended customization flow completed

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Getting enabled accounts...

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Reading user info...

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] NET_API_STATUS=0

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Reading user info completed: 3 entries read

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Processing user Administrator/500

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Administrator/500 is enabled

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Processing user Guest/501

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Skipping non-admin

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Processing user qaserv/1000

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] qaserv/1000 is enabled

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Getting enabled accounts completed

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Persisting enabled accounts...

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Persisting 500

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Persisting 1000

[2016-01-08T09:38:50:                 GuestCustUtil:  DEBUG] Persisting enabled accounts completed

[2016-01-08T09:38:50:                              :  DEBUG] System Drive: C:

[2016-01-08T09:38:50:                              :  DEBUG] Moving directory 'sysprep' to 'C:'

[2016-01-08T09:38:51:                              :  DEBUG] select * from win32_networkadapter where Manufacturer != 'Microsoft' and ServiceName != 'VMnetAdapter' and  manufacturer is not null and MACAddress is not null

[2016-01-08T09:38:52:                              :  DEBUG] Found 1 objects. Pointer 3eded0. return code 0(0x0)

[2016-01-08T09:38:52:                              :  DEBUG] Found 0 objects. Pointer 0. return code 1(0x1)

[2016-01-08T09:38:52:                              :  DEBUG] Returning value 00:50:56:01:0E:78 for system property

[2016-01-08T09:38:52:                              :  DEBUG] Setting dhcp for nic # 0

[2016-01-08T09:38:52:                              :  DEBUG] Returning value \\CAD57WIN7\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="7" for system property

[2016-01-08T09:38:52:                              :  DEBUG] ASSOCIATORS OF {\\CAD57WIN7\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="7"} where ResultClass = Win32_NetworkAdapterConfiguration

[2016-01-08T09:38:52:                              :  DEBUG] Found 1 objects. Pointer 3f9c00. return code 0(0x0)

[2016-01-08T09:38:52:                              :  DEBUG] Found 0 objects. Pointer 0. return code 1(0x1)

[2016-01-08T09:38:52:                              :  DEBUG] Clearing gateway ip addresses.

[2016-01-08T09:38:52:                              :  DEBUG] Enabling DHCP on the computer

[2016-01-08T09:38:52:                              :  DEBUG] Returning value \\CAD57WIN7\ROOT\CIMV2:Win32_NetworkAdapterConfiguration.Index=7 for system property

[2016-01-08T09:38:52:                              :  DEBUG] Setting DNS Server to ip

[2016-01-08T09:38:52:                              :  DEBUG] Executing command C:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /reboot /unattend:C:\sysprep\sysprep.xml

[2016-01-08T09:38:52:                              :  DEBUG] Successfully executed command C:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /reboot /unattend:C:\sysprep\sysprep.xml

[2016-01-08T09:38:52:      SysprepCustomizationFlow:   INFO] Sysprep flow completed

[2016-01-08T09:38:52: ExtendedWinCustomizationLogic:   INFO] Extended customization flow completed

[2016-01-08T09:38:52:                              :   INFO] GuestCustUtil exiting.

0 Kudos
GScully42
Enthusiast
Enthusiast

I realized I tried using net dom when it should be netdom but I still have this issue.

0 Kudos