Contributor
Contributor

vcac 6.0.1 windows guest agent

I have the windows guest agent running in my template.  Two things i am looking to accomplish.

     - run a script from within the OS

          I have defined properties of

               -     virtualmachine.agent.guirunonce

               -     virtualmachine.customize.waitcomplete

               -     virtualmachine.software0.name

               -     virtualmachin.software0.scriptpath

With these values populated the script seems to hang when it customizes.  I am looking to see if these values are not correct for 6.0.1

second...

     -     I am looking to have new volumes formatted.  When a user selects an additional volume, it is created in the OS but not formated with mount points.  Is this another function that i need the guest agent to perform?

Tags (4)
0 Kudos
33 Replies
VMware Employee
VMware Employee

For the first issue, check to make sure that the guest agent batch files are not blocked.  Also, look at the gugent log to see what's going on there.  You may be having an issue that I wrote about here -- StorageGumbo: vCAC Windows Deployment Stuck at CustomizeOS State

Yes, the guest agent performs this task.

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
Contributor
Contributor

Thanks for the link.  That pointed me to my problem.  I had the agent pointing to the vcac appliance.  One question.  I have the IaaS windows components broken down to 3 servers.  Which service provides work for the guest agent?

0 Kudos
VMware Employee
VMware Employee

The guest agent communicates with the Manager Service.

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Contributor
Contributor

Does the agent default to port 80 or 443?

0 Kudos
Enthusiast
Enthusiast

What about the automatic formatting/adding of the drive?  I can add disks, but they just add to the VM and are still unitialized when I login. I've installed the guest agent and added the property VirtualMachine.Admin.UseGuestAgent to the blueprint.  

I'm not sure of any logs to check either. 

0 Kudos
Enthusiast
Enthusiast

bump, anyone?

0 Kudos
VMware Employee
VMware Employee

Make sure the value for the property is set to "True" otherwise you can look at the log file in c:\vrmguestagent for clues.  By the way, the install path for the guest agent on Windows must be c:\vrmguestagent or no configuration scripts will run.

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Enthusiast
Enthusiast

is the value case sensitive?  I have the value set to "true".  

The only log file I can find in the vrmguestagent folder is the vrmguestagentservice.log with this:

07/07/2014, 09:41:01

    WinService entry

07/07/2014, 09:41:01

    FixScript exit

07/07/2014, 09:41:01

    ServiceMainProc entry

07/07/2014, 09:41:01

    ServiceMainProc Install

07/07/2014, 09:41:02

    Service installed

07/07/2014, 09:41:02

    ServiceMainProc Exit

07/07/2014, 10:09:32

    WinService entry

07/07/2014, 10:09:32

    ServiceMainProc entry

07/07/2014, 10:09:32

    ServiceMainProc StartServiceCtrl

07/07/2014, 10:34:37

    ServiceMainProc Exit

07/08/2014, 07:25:47

    WinService entry

07/08/2014, 07:25:47

    ServiceMainProc entry

07/08/2014, 07:25:47

    ServiceMainProc StartServiceCtrl

07/08/2014, 07:26:34

    ServiceMainProc Exit

07/08/2014, 07:27:43

    WinService entry

07/08/2014, 07:27:43

    ServiceMainProc entry

07/08/2014, 07:27:43

    ServiceMainProc StartServiceCtrl

07/08/2014, 07:27:58

    ServiceMainProc Exit

07/08/2014, 07:29:02

    WinService entry

07/08/2014, 07:29:02

    ServiceMainProc entry

07/08/2014, 07:29:02

    ServiceMainProc StartServiceCtrl

0 Kudos
VMware Employee
VMware Employee

You should also have a c:\vrmguestagent\guestagent.log - this indicates to me that the service isn't running or starting.  Can you share with me the exact command line you used to install the agent?

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Enthusiast
Enthusiast

It would have been:

winservice -i -h iaas.server:443 -p ssl

It said installed successfully and the service starts however

0 Kudos
VMware Employee
VMware Employee

And you can resolve the iaas server by hostname from the VM?

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Enthusiast
Enthusiast

Yes I can resolve the hostname to the iaas server.  Do I need the :443 at the end of the name when installing still?

0 Kudos
VMware Employee
VMware Employee

I don't think you need it but I always put it there anyway.  Try reinstalling the agent in your template - also, check to make sure that the agent files are not blocked by Windows UAC.

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Enthusiast
Enthusiast

I checked to see if the files were blocked, they were not.  UAC is also turned off on my template.  I'll try the reinstall. 

0 Kudos
Enthusiast
Enthusiast

Still no luck.  the cert.pem is at 0kb and the nocert.out keeps repeating No cert in the file.

I did import the iias certificate as a trusted certificate on the template as well.

This seems eerily similar to some blogs i've read with the VM stuck at "CustomizeOS" which mine seems to be stuck at.  But the files are not blocked, I've got UAC turned off.  I turned it back on and I'm still not seeing it blocked. 

0 Kudos
Enthusiast
Enthusiast

It's just weird I'm not seeing any log files in the VRMGuestAgent folder, other than the service log.  So i'm not having much to troubleshoot at this point.

0 Kudos
Enthusiast
Enthusiast

should the iaas.server:443 resolve to anything?  or https://iaas.server.com

0 Kudos
VMware Employee
VMware Employee

It should prompt you for a login at least.  Is the IaaS a Windows 2012 or Windows 2008?

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
Enthusiast
Enthusiast

2008,  I'm not getting any login or anything when browsing to that URL.  Best of my knowledge we've used the defaults for ports as well.  That could be part of my issue.

0 Kudos