VMware Cloud Community
rds00
Enthusiast
Enthusiast

Guest customization sometimes fails : Exception while creating customization package

Hello,

I've got a problem with vCAC provisioning : when I request a virtual machine (Mostly Windows Server 2012R2 and 2008R2), the guest customization sometimes fails (about half the time) with this error in vpxd.log :

2014-05-27T09:39:30.072+02:00 [02844 info 'Default' opID=7f4f5ec8] [VmCustomizer] hostVersion = 5.1.0, tools version = 9226

2014-05-27T09:39:30.086+02:00 [02844 info 'Default' opID=7f4f5ec8] [VmCustomizer] Sysprep options: /quiet /generalize /oobe /reboot

2014-05-27T09:39:30.087+02:00 [02844 info 'Default' opID=7f4f5ec8] [VmCustomizer] Successfully created file C:\Users\****\AppData\Local\Temp\imc2AB2.tmp

2014-05-27T09:39:30.092+02:00 [02844 error 'Default' opID=7f4f5ec8] [VmCustomizer] Exception while creating customization package.

2014-05-27T09:39:30.096+02:00 [02844 info 'Default' opID=7f4f5ec8] [VmCustomizer] Successfully deleted file/directory C:\Users\****\AppData\Local\Temp\imc2AB2.tmp

2014-05-27T09:39:30.096+02:00 [02844 info 'commonvpxLro' opID=7f4f5ec8] [VpxLRO] -- FINISH task-23881 -- vm-510 -- vim.VirtualMachine.customize --

2014-05-27T09:39:30.096+02:00 [02844 info 'Default' opID=7f4f5ec8] [VpxLRO] -- ERROR task-23881 -- vm-510 -- vim.VirtualMachine.customize: vim.fault.CustomizationFault:

--> Result:

--> (vim.fault.CustomizationFault) {

-->    dynamicType = <unset>,

-->    faultCause = (vmodl.MethodFault) null,

-->    msg = "",

--> }

--> Args:

-->

And the logs when the guest customization works (to see the difference) :

2014-05-26T11:25:47.867+02:00 [01284 info 'commonvpxLro' opID=465be887] [VpxLRO] -- BEGIN task-23850 -- vm-506 -- vim.VirtualMachine.customize -- e61b43b1-cbcb-e4f1-97a8-17714dc2d924(52aa5f3f-112a-e24d-c6ef-e34e6e57a6ec)

2014-05-26T11:25:47.867+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] hostVersion = 5.1.0, tools version = 9226

2014-05-26T11:25:47.872+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] Sysprep options: /quiet /generalize /oobe /reboot

2014-05-26T11:25:47.873+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] Successfully created file C:\Users\****\AppData\Local\Temp\imcF8BB.tmp

2014-05-26T11:25:47.879+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] Successfully created directory C:\Users\****\AppData\Local\Temp\imc-2

2014-05-26T11:25:48.101+02:00 [04788 info 'commonvpxLro' opID=77b2a429] [VpxLRO] -- BEGIN task-internal-17062 --  -- vmodl.query.PropertyCollector.retrieveContents -- e61b43b1-cbcb-e4f1-97a8-17714dc2d924(52aa5f3f-112a-e24d-c6ef-e34e6e57a6ec)

2014-05-26T11:25:48.135+02:00 [04788 info 'commonvpxLro' opID=77b2a429] [VpxLRO] -- FINISH task-internal-17062 --  -- vmodl.query.PropertyCollector.retrieveContents --

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC] Create sysprep file package. Params:

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    file       = C:\Users\****\AppData\Local\Temp\imcF8BB.tmp

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    binary dir = C:\Program Files\VMware\Infrastructure\VirtualCenter Server\imgcust

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    options    = /quiet /generalize /oobe /reboot

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    config     = C:\Users\****\AppData\Local\Temp\imc-2

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    sysprep    =

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    tools      =

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    native     =

2014-05-26T11:25:48.333+02:00 [01284 info 'Default' opID=465be887] [IMC]    nativeArgs =

2014-05-26T11:25:48.335+02:00 [01284 info 'Default' opID=465be887] [IMC] Successfully created file C:\Users\****\AppData\Local\Temp\imcFA90.tmp

2014-05-26T11:25:48.682+02:00 [01284 info 'Default' opID=465be887] [IMC] Successfully deleted file/directory C:\Users\****\AppData\Local\Temp\imcFA90.tmp

2014-05-26T11:25:48.699+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] Successfully deleted file/directory C:\Users\****\AppData\Local\Temp\imc-2

2014-05-26T11:25:48.704+02:00 [01284 info 'Default' opID=465be887] [VmCustomizer] hostVersion = 5.1.0, tools version = 9226

I tried to switch to trivia logs but it didn't give me much more informations.

I thought about some rights problem on the TEMP directory (which by the way, I don't know why is located in a user folder and not in Windows folder) but more permissions didn't help.

If someone has an idea about this, it would be great Smiley Happy

Thank you !

0 Kudos
7 Replies
rds00
Enthusiast
Enthusiast

Anyone ?

0 Kudos
rds00
Enthusiast
Enthusiast

Just tried with a brand new template and new guest customization file with no success.. :smileyconfused:

0 Kudos
rds00
Enthusiast
Enthusiast

Bump

0 Kudos
GrantOrchardVMw
Commander
Commander

Doubt you'll get far in this forum sorry. Coming from the VPXD logs indicates that you're getting the issue from vCenter, rather than vCAC. It would be worth logging a GSS ticket to get to the bottom of it.

Are you able to provision that machine form vCenter with the customisation spec in question or does that fail too?

Grant

Grant http://grantorchard.com
0 Kudos
rds00
Enthusiast
Enthusiast

Thanks for your response. Yes I think I will open a GSS ticket about that.

And yes, it does work when I launch the provisioning myself (right-click, deploy VM from this template) with the customization spec. This is what I don't understand...

0 Kudos
GrantOrchardVMw
Commander
Commander

It's not quite the same error message.... but is the Administrator password blank by any chance (within the customisation spec or as an override property in the blueprint)?

Grant

Grant http://grantorchard.com
0 Kudos
rds00
Enthusiast
Enthusiast

I tried with and without a password. Also tried to override it in the XML file with the same error every time.

0 Kudos