• No results found

Manually Insert the Guest Agent into a WinPE Image

You do not have to use the vRealize Automation PEBuilder to create your WinPE. However, if you do not use the PEBuilder you must manually insert the vRealize Automation guest agent into your WinPE image.

Prerequisites

n Select a Windows system from which the staging area you prepared is accessible and on which .NET 4.5 and Windows Automated Installation Kit (AIK) for Windows 7 (including WinPE 3.0) are installed.

n Create a WinPE.

Procedure

1 Install the Guest Agent in a WinPE on page 54

If you choose not to use the vRealize Automation PEBuilder to create you WinPE, you must install PEBuilder to manually copy the guest agent files to your WinPE image.

2 Configure the doagent.bat File on page 54

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the doagent.bat file.

Chapter 3 Preparing for Provisioning

3 Configure the doagentc.bat File on page 55

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the doagentc.bat file.

4 Configure the Guest Agent Properties Files on page 56

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the guest agent properties files.

Install the Guest Agent in a WinPE

If you choose not to use the vRealize Automation PEBuilder to create you WinPE, you must install PEBuilder to manually copy the guest agent files to your WinPE image.

PEBuilder has a 32 bit guest agent. If you need to run commands specific to 64 bit, install PEBuilder and then get the 64 bit files from the GugentZipx64.zip file.

Prerequisites

n Select a Windows system from which the staging area you prepared is accessible and on which .NET 4.5 and Windows Automated Installation Kit (AIK) for Windows 7 (including WinPE 3.0) are installed.

n Create a WinPE.

Procedure

1 Navigate to the vCloud Automation Center Appliance management console installation page.

For example: https://vcac-hostname.domain.name:5480/installer/.

2 Download the PEBuilder.

3 (Optional) Download the Windows bit guest agent package if you want to include the Windows 64-bit guest agent in your WinPE instead of the Windows 32-64-bit guest agent.

4 Execute vCAC-WinPEBuilder-Setup.exe. 5 Deselect both Plugins and PEBuilder.

6 Expand Plugins and select VRMAgent.

7 Follow the prompts to complete the installation.

8 (Optional) After installation is complete, replace the Windows 32-bit guest agent files located in \PE Builder\Plugins\VRM Agent\VRMGuestAgent with the 64-bit files to include the 64-bit agent in your WinPE.

9 Copy the contents of %SystemDrive%\Program Files (x86)\VMware\PE Builder\Plugins\VRM Agent\VRMGuestAgent to a new location within your WinPE Image.

For example: C:\Program Files (x86)\VMware\PE Builder\Plugins\VRM Agent\VRMGuestAgent. Configure the doagent.bat File

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the doagent.bat file.

Prerequisites

“Install the Guest Agent in a WinPE,” on page 54.

Procedure

1 Navigate to the VRMGuestAgent directory within your WinPE Image.

For example: C:\Program Files (x86)\VMware\PE Builder\Plugins\VRM Agent\VRMGuestAgent. 2 Make a copy of the file doagent-template.bat and name it doagent.bat.

3 Open doagent.bat in a text editor.

4 Replace all instances of the string #Dcac Hostname# with the fully qualified domain name and port number of the IaaS Manager Service host.

Option Description

If you are using a load balancer Enter the fully qualified domain name and port of the load balancer for the IaaS Manager Service. For example,

manager_service_LB.mycompany.com:443

With no load balancer Enter the fully qualified domain name and port of the machine on which the IaaS Manager Service is installed. For example,

manager_service.mycompany.com:443

5 Replace all instances of the string #Protocol# with the string /ssl.

6 Replace all instances of the string #Comment# with REM (REM must be followed by a trailing space).

7 (Optional) If you are using self-signed certificates, uncomment the openSSL command.

echo QUIT | c:\VRMGuestAgent\bin\openssl s_client –connect 8 Save and close the file.

9 Edit the Startnet.cmd script for your WinPE to include the doagent.bat as a custom script.

Configure the doagentc.bat File

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the doagentc.bat file.

Prerequisites

“Configure the doagent.bat File,” on page 54.

Procedure

1 Navigate to the VRMGuestAgent directory within your WinPE Image.

For example: C:\Program Files (x86)\VMware\PE Builder\Plugins\VRM Agent\VRMGuestAgent. 2 Make a copy of the file doagentsvc-template.bat and name it doagentc.bat.

3 Open doagentc.bat in a text editor.

4 Remove all instance of the string #Comment#.

5 Replace all instances of the string #Dcac Hostname# with the fully qualified domain name and port number of the Manager Service host.

The default port for the Manager Service is 443.

Option Description

If you are using a load balancer Enter the fully qualified domain name and port of the load balancer for the Manager Service. For example,

load_balancer_manager_service.mycompany.com:443

With no load balancer Enter the fully qualified domain name and port of the Manager Service.

For example,

manager_service.mycompany.com:443

6 Replace all instances of the string #errorlevel# with the character 1. 7 Replace all instances of the string #Protocol# with the string /ssl. 8 Save and close the file.

Chapter 3 Preparing for Provisioning

Configure the Guest Agent Properties Files

If you choose not to use the vRealize Automation PEBuilder, you must manually configure the guest agent properties files.

Prerequisites

“Configure the doagentc.bat File,” on page 55.

Procedure

1 Navigate to the VRMGuestAgent directory within your WinPE Image.

For example: C:\Program Files (x86)\VMware\PE Builder\Plugins\VRM Agent\VRMGuestAgent. 2 Make a copy of the file gugent.properties and name it gugent.properties.template.

3 Make a copy of the file gugent.properties.template and name it gugentc.properties. 4 Open gugent.properties in a text editor.

5 Replace all instances of the string GuestAgent.log the string X:/VRMGuestAgent/GuestAgent.log. 6 Save and close the file.

7 Open gugentc.properties in a text editor.

8 Replace all instances of the string GuestAgent.log the string C:/VRMGuestAgent/GuestAgent.log. 9 Save and close the file.

Related documents