VMware Cloud Community
SDquality
Enthusiast
Enthusiast

Issue with Guest Customization for Windows 2012 OS

I created a template and I have existing customization. When I try to deploy VM from template and once the VM gets powered on, it takes the Computer Name of old machine(template) but not the new name which I gave during Guest customization.

Could not query rescheduled value in registry (The system cannot find the file specified.

)

Customization in progress set to 1 at 2013-Oct-14 11:19:18

Rpci: Sending request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log'

Rpci: Sent request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log', reply='', len=0, status=1

Successfully opened key SYSTEM\CurrentControlSet\Control\Session Manager\

Size of reg_multi_sz 27.

Read multi_sz value from registry autocheck autochk /q /v *, size 27.

string value from registry autocheck autochk /q /v *.

Returning 1 elements

Got BootExecute from session mgr.

Native App sysprepDecrypter.exe, arguments ''

Copied file sysprepDecrypter.exe to C:\Windows\system32\sysprepDecrypter.exe

Updated boot execute value.

Successfully created/opened key SOFTWARE\VMware, Inc.\Guest Customization\

New boot execute:

autocheck autochk /q /v *

sysprepDecrypter.exe

System Drive: C:

Moving directory 'sysprep' to 'C:'

select * from win32_networkadapter where Manufacturer != 'Microsoft' and ServiceName != 'VMnetAdapter' and manufacturer is not null and MACAddress is not null

Found 0 objects. Pointer 0. return code -2147217398(0x8004100a)

Rpci: Sending request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@WinMgmt : '

Rpci: Sent request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@WinMgmt : ', reply='', len=0, status=1

error number 8004100a, WinMgmt :

Please assist on this issue.

The version of ESXi in which template  created  is 5.1 U1

Reply
0 Kudos
8 Replies
thomasnas
Contributor
Contributor

Hi,

Did you manage to solve this issue ?
We are experiencing the exact same thing and cannot resolve it.


Thank you

Reply
0 Kudos
SDquality
Enthusiast
Enthusiast

Could not able to find root cause of the issue.

I ran into this issue after executing sysprep.exe within the guest OS before converting it to the template.

I created a new template by converting the new 2012 VM without executing the sysprep.exe in the guest OS and guest customization worked for me without any problem.

Reply
0 Kudos
SDquality
Enthusiast
Enthusiast

Please navigate to :

C:\Windows\System32\sysprep\Panther  and view the contents of setupact.log and setuperr.log

Reply
0 Kudos
matnheth
Contributor
Contributor

I am having the exact same issue as well, I will be submitting a ticket to VMware today. If anyone has resolved this, please share. Thanks

Reply
0 Kudos
bies
Contributor
Contributor

Same issue here with 2012 r2 customization. This is the second customer I experience issues. At the first the rolled out template was corrupt and we made a call at microsoft. They were unable to determine what was wrong with the server and decided we should reinstall our domain controller and exchange 2013 server..Strange part was I rolled out 3 servers from the same template and 2 were bad and 1 was good (according to Microsoft).

Now the second customer I cannot even get it working with customization.

Customer 1: vCenter appliance 5.5 update B / ESXi 5.5 HP Version

Customer 2: vCenter Server 5.5 Update B / ESXi 5.5 HP Version

Guestcust.log:

[2014-01-30T12:03:15  INFO] GuestCustUtil invoked.

[2014-01-30T12:03:15  INFO] Params: customize -sealparam "/quiet /generalize /oobe /reboot" -nics 4000 -schedulenativeunobfusc

[2014-01-30T12:03:15 DEBUG] Registry value 'CustomRescheduleFlags' is not set. Returning default value: 0

[2014-01-30T12:03:15  INFO] Checking for Windows Sysprep Respecialize operation.

[2014-01-30T12:03:15 DEBUG] Sysprep process is not running.

[2014-01-30T12:03:15  INFO] Windows Sysprep Respecialize operation was not detected.

[2014-01-30T12:03:15 DEBUG] Customization in progress set to 1 at 2014-Jan-30 12:03:15

[2014-01-30T12:03:15 DEBUG] Rpci: Sending request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log'

[2014-01-30T12:03:15 DEBUG] Rpci: Sent request='deployPkg.update.state 4 0 C:\Windows\TEMP\vmware-imc\guestcust.log', reply='', len=0, status=1

[2014-01-30T12:03:15 DEBUG] Successfully opened key SYSTEM\CurrentControlSet\Control\Session Manager\

[2014-01-30T12:03:15 DEBUG] Size of reg_multi_sz 27.

[2014-01-30T12:03:15 DEBUG] Read multi_sz value from registry autocheck autochk /q /v *, size 27.

[2014-01-30T12:03:15 DEBUG] string value from registry autocheck autochk /q /v *.

[2014-01-30T12:03:15 DEBUG] Returning 1 elements

[2014-01-30T12:03:15 DEBUG] Got BootExecute from session mgr.

[2014-01-30T12:03:15 DEBUG] Native App sysprepDecrypter.exe, arguments ''

[2014-01-30T12:03:15 DEBUG] Copied file sysprepDecrypter.exe to C:\Windows\system32\sysprepDecrypter.exe

[2014-01-30T12:03:15 DEBUG] Updated boot execute value.

[2014-01-30T12:03:15 DEBUG] Successfully created/opened key SOFTWARE\VMware, Inc.\Guest Customization\

[2014-01-30T12:03:15 DEBUG] New boot execute:

[2014-01-30T12:03:15 DEBUG] autocheck autochk /q /v *

[2014-01-30T12:03:15 DEBUG] sysprepDecrypter.exe

[2014-01-30T12:03:15 DEBUG] System Drive: C:

[2014-01-30T12:03:15 DEBUG] Moving directory 'sysprep' to 'C:'

[2014-01-30T12:03:16 DEBUG] select * from win32_networkadapter where Manufacturer != 'Microsoft' and ServiceName != 'VMnetAdapter' and  manufacturer is not null and MACAddress is not null

[2014-01-30T12:03:16 DEBUG] Found 0 objects. Pointer 0. return code -2147217398(0x8004100a)

[2014-01-30T12:03:16 DEBUG] Rpci: Sending request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@WinMgmt : '

[2014-01-30T12:03:16 DEBUG] Rpci: Sent request='deployPkg.update.state 4 101 C:\Windows\TEMP\vmware-imc\guestcust.log@WinMgmt : ', reply='', len=0, status=1

[2014-01-30T12:03:16 ERROR] error number 8004100a, WinMgmt :

[2014-01-30T12:03:16  INFO] GuestCustUtil exiting.

The setupact.log is clean and the setuperr.log is clear (0 kb).

An other interesting part is when I deploy "vm from template" the VMXNET3 NIC is not connected (turned of in vm) while it is connected in the Template itself (i checked with edit settings). Seems VMware is making a few mistakes in this one. Please fix it as I have a project running and want to roll out a template cause of memory sharing etc!

--

[2014-01-30T12:03:16 DEBUG] select * from win32_networkadapter where Manufacturer != 'Microsoft' and ServiceName != 'VMnetAdapter' and  manufacturer is not null and MACAddress is not null

[2014-01-30T12:03:16 DEBUG] Found 0 objects. Pointer 0. return code -2147217398(0x8004100a)

This is where it goes wrong. It does not see a NIC... I think it is important in a server ;-).

Reply
0 Kudos
justinhamlin_ti
Contributor
Contributor

Just wanted to chime in and bump this to the top

seeing the same thing here, but a few more oddities.

Running ESX1 5.1U2, which is official support for Windows 2012 R2.  Also, this issue is documented in the Update 2 release notes as 'resolved' with Update 2, however, I am still seeing the issue.

I have had loads of success with VMware customizations on Windows 2012 R2 template, however lately, a new template (sys prepped prior to turning into a template) - now, new template, prepped the same way, I am running into this issue.

Also to note, I have run into this on Windows 2003 as well

Bump for anyone who has made any progress on this, but I do believe it to be NIC and dVS related.

Reply
0 Kudos
matnheth
Contributor
Contributor

I had the exact same issue, and had submitted a ticket with VMware. After extensive troubleshooting, the advise was to upgrade to vSphere 5.5 U1. After upgrading, I am now able to provision with customization without any issues, I consider the issue resolved for me. I hope this helps. Thanks

Reply
0 Kudos
bies
Contributor
Contributor

I have created an support ticket. It is closed now and not solved. This was the official answer:

Hello Michel,

I have asked our Engineering team, if we can workaround the limitations of our VC, so you can use syspreped VM as a template.

This is the answer from Engineering team:

"I believe this issue is about the licensing limitations enforced by Microsoft (which BTW works differently on different versions of Windows and sometimes even between the Service Packs).  VC doesn't have an option to run the KMS activation. Thus, the template must always have RearmsCount > 0.

The new OGC framework will have enough flexibility to resolve this by allowing the user to tweak the "sysprep" Script to use something like SkipRearm or add any custom steps like "register with KMS".

My recommendation for this bug is "won't fix".

Michel, I'm afraid in this situation we cannot do now anything more for you, but your issue will be addressed in  next generation OGC framework.

--

So VMware said it is not supported to use an syspreped template anymore. That it worked before was a coincedence and they say a sysprepped template is not needed when using the customization. This is true if you do not use a domain joined template. In my case it was a sysprepped Citrix Server XenApp 6.5 2008 R2. Because it was domain joined I need to sysprep it otherwise XenApp and the Domain would not like the machine very much (machine sid is the same then for all rolled out machines).

VMware says this is "working as intended"....

Fact is that they refuse to see it as a bug. It is in my eyes because the VMXNET3 card is not visible when you sysprep a machine and use customization. If I sysprep a domain joined vmxnet3 vm it works perfect without customization but fails with it....

But maybe it will be fixed it the next vCenter Update.

Reply
0 Kudos