VMware Cloud Community
devs159
Contributor
Contributor
Jump to solution

vRA guest agent customisation - W2012

Have a new 7.5 vRA deployment and verifying the guest customisation using some custom properties to execute two scripts. This is purely for validation purposes that they'll execute. The custom properties are listed below.

VirtualMachine.Admin.UseGuestAgent True

VirtualMachine.Customize.WaitComplete True

VirtualMachine.Software0.Name Date

VirtualMachine.Sofware0.ScriptPath C:\date.cmd

VirtualMachine.Software1.Name IP info

VirtualMachine.Sofware1.ScriptPath C:\ipdetails.bat

The VM gets deployed successfully using the customisation spec and in the guestagent.log it lists the 2 scripts above but they don't actually execute. Executing these manually within the O/S completes successfully. The deployments are to W2012 currently.

Is something being missed in the configuration for custom properties as to why they're not running the script even though vRA seems to say they do?

1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

The answer to your problem is staring you in the face. I missed it myself the first time. Let's see if you see it Smiley Happy

VirtualMachine.Software0.Name Date

VirtualMachine.Sofware0.ScriptPath C:\date.cmd

View solution in original post

6 Replies
daphnissov
Immortal
Immortal
Jump to solution

With what user did you install/run the guest agent during the installation script?

Reply
0 Kudos
devs159
Contributor
Contributor
Jump to solution

It was installed as the local administrator and the service is running under 'local system'. The template from which the VMs are provisioned is not on the domain.

Reply
0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

The answer to your problem is staring you in the face. I missed it myself the first time. Let's see if you see it Smiley Happy

VirtualMachine.Software0.Name Date

VirtualMachine.Sofware0.ScriptPath C:\date.cmd

devs159
Contributor
Contributor
Jump to solution

Smiley Happy yes it is!!

Thanks a lot - staring me in the face is right!

Reply
0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Report back and let me know if that does it for you.

Reply
0 Kudos
devs159
Contributor
Contributor
Jump to solution

That worked - saved me a lot of headache!!

Thanks

Reply
0 Kudos