_Setting_up_a_Citrix_XenServer_environment
To set up an Citrix XenServer environment, you must:
- install a Red Hat Linux agent on an Red Hat Enterprise Linux server that you will use as a proxy server
- add that server to the BMC BladeLogic Server Automation console,
- enroll the XenServer master host as a agentless managed object as described in Add the Linux server and Citrix XenServer host object to BMC BladeLogic Server Automation
- use the BMC BladeLogic Server Automation console to perform configuration tasks that complete the setup.
The proxy server communicates with the Citrix XenServer master host using XML-RPC protocol.
Step 1: Review minimum requirements for Citrix XenServer environments
System requirements
To employ BMC BladeLogic Server Automation in an Citrix XenServer virtual environment, you must have a Red Hat Enterprise Linux server (version 5.4 or higher) to act as a proxy server.
Required access and privileges
For a Citrix XenServer environment, note the following requirements for permissions for the CONNECTION_USER:
- the root user on the master server
- Citrix VM Power Admin role, if you are using Active Directory-based authentication mode.
Step 2: Install the Linux agent
- Install the RSCD agent on the Red Hat Enterprise Linux server that will act as the proxy server, as described in Installing-the-RSCD-agent-only. Be sure to install the RSCD agent that is specifically designated for use with a Linux server.
- Open the /usr/lib/rsc/exportsfile and edit the last line so it reads:
- rw,user=root*
- License the RSCD agent, as described in Licensing-agents.
Step 3: Add the Linux server and Citrix XenServer host object to BMC BladeLogic Server Automation
- From within the BMC BladeLogic Server Automation console, add the Red Hat Enterprise Linux proxy server as a managed server to a server group (right-click a server group and select Add Server ).
- Right-click the server group in the Servers folder.
- Select Virtualization > Add Citrix XenServer host to add a Citrix XenServer agentless device to BMC BladeLogic Server Automation.
- On the Add a new agentless managed object - Properties page, add the name or IP address of the Citrix XenServer master server.
- Optionally, add a brief description.
- Under Properties, locate the AGENTLESS_MANAGED_OBJECT_PROXY_HOST* property.
- Edit the property value by browsing to the name of the Linux system configured as the proxy host.
- Click OK.
- Click Finish.
The agentless managed object for the Citrix XenServer is added to the folder you specified.
Best practice
While it is possible to use the same proxy host for multiple agentless managed objects, the best practice if to have separate proxy servers for each agentless managed object (representing a Citrix XenServer master server), for optimal performance.
To set the connection properties for the Citrix XenServer object
Set properties for the Connection instance
- In the BMC BladeLogic Server Automation console, select Configuration > Property Dictionary View.
- Browse the Built-in Property Classes > Connection class.
Click the Instances tab and set the connection details to the Citrix XenServer master host.
When you added the agentless managed object, BMC BladeLogic Server Automation automatically created a Connection instance with the name Connection_ agentlessManagedObjectName (where agentlessManagedObjectName is the name of theCitrix XenServer object_). This new instance contains the connection details to the Citrix XenServer master host.- Set the following properties for the newly added instance and save it:
Property | Value |
---|---|
CONNECTION_URL | Enter the name of the Citrix XenServer master host. |
CONNECTION_USER | Set this value to root. Citrix XenServer also supports users configured in Active Directory. If you intend to specify an Active Directory user, the user must be assigned at least the "VM Power Admin" role to be able to use all features supported by BMC BladeLogic Server Automation for Citrix XenServer. Enter the Windows Active Directory user in the following way:domainName{}userName |
CONNECTION_PASSWORD | Enter the password of the user root on the master host. |
Set the VIRTUAL_ENTITY_CONNECTION property
- Browse the Built-in Property Classes > Virtualization class.
For each Citrix XenServer object that has been added, there is a corresponding instance already created. - Ensure that the VIRTUAL_ENTITY_CONNECTION property Virtualization instance points to the previously created Connection instance.
- Save this instance.
Distribute the Citrix XenServer configuration object
To distribute the Citrix XenServer configuration object on the Citrix XenServer agentless managed object, complete the following steps:
- From the BMC BladeLogic Server Automation console, navigate to the Jobs folder.
- Right-click a job group and select New > Administration Task > Distribute Configuration Objects.
- Provide a name for the Job and click Next.
- Expand the Global Configuration Objects list, select the Citrix XenServer object, and add it to the Selected Configuration Objects section. Click Next.
- On the Targets panel, select the enrolled agentless managed object for the Citrix XenServer master server.
- Click Finish, and execute the job.
For details, see Distributing configuration objects.
Set values for Custom Objects Environment property
Navigate to the Servers folder and select the Citrix XenServer agentless managed object.
- In the properties tab, under the Extended properties object locate the Custom Objects Environment class.
Add an instance, and set the values in the instance as described in the following table.
The Citrix XenServer custom configuration object is based on the JPA (Java Program Adapter) technology of BMC BladeLogic Server Automation. The JPA creates a JVM at runtime and runs the custom configuration object inside it. As such, you must set the following JRE-related parameters for the custom configuration object.
Custom Objects Environment instance JPA values
Property | Update |
---|---|
JPA_JAVA_HOME* | Set this value to the JAVA_HOME of JRE that is distributed with the custom object. |
JPA_JVM_ARGUMENTS* | Can be used to set JVM arguments such as -Xms32m, Xmx256m, and so on. |
JPA_JVM_LIB* | Enter the path of the libjvm.so on the server inside the JRE that is distributed with the custom object. |
The typical values for a Red Hat Enterprise Linux on an x86 32-bit platform are:
/opt/bmc/BladeLogic/8.1/NSH/daal/Implementation/BMC_Citrix_Root_rhas3/rhas3/jre1.6.0_20
JPA_JVM_LIB*:
/opt/bmc/BladeLogic/8.1/NSH/daal/Implementation/BMC_Citrix_Root_rhas3/rhas3/jre1.6.0_20/lib/i386/server/libjvm.so
The typical values for Red Hat Enterprise Linux on an x86 64-bit platform are:
JPA_JVM_LIB*: /opt/bmc/BladeLogic/8.1/NSH/daal/Implementation/BMC_Citrix_Root_rhas4_x86_64/rhas4_x86_64/jre1.6.0_20/lib/amd64/server/libjvm.so.
You can now use the BMC BladeLogic Server Automation console to Live browse the Citrix XenServer agentless managed object and access the Citrix XenServer node.
For more information on adding a server and setting its properties, see the BMC BladeLogic Server Automation User Guide and the BMC BladeLogic Server Automation online help.