Adding the Microsoft VMM server to BMC Server Automation
The following sections provide instructions for adding the Microsoft Hyper-V System Center virtual machine manager (VMM) to BMC Server Automation:
Before you begin
Ensure that your environment meets the following requirements.
To use BMC Server Automation in a Microsoft Hyper-V virtual environment, you must have the following minimum hardware and software:
- Microsoft Hyper-V 2012 System Center VMM installed
- Hyper-V role enabled
- PowerShell 2.0 installed
The BMC Server Automation Application Server must be allowed access to the target through the RSCD agent on the VMM server.
Access and privileges
For a Microsoft Hyper-V virtual environment, Administrative Privilege to the VMM is required.
Prerequisites for SCVMM 2012 SP1
The following are the pre-requisites for SCVMM 2012 SP1 support for Hyper-V Custom Object:
- SCVMM version should be SCVMM 2012 SP1
- Host should be Windows Server 2012
- To enable BMC Server Automation to execute Powershell commands on the SCVMM setup, set the Execution Policy. On SCVMM Setup, open a Powershell command prompt, and run the following command:
- Ensure that Windows templates and Linux templates are created as described in Creating Virtual Machine Templates on SCVMM in the BMC Server Automation online technical documentation.
- Create at least one VM network, to which the VMs can connect. BMC Server Automation supports VM Network of type noIsolation only.
- Apply a workaround in Windows 2012 server to point to .NET 4.0 version. This workaround is necessary because the Windows Server 2012 environment runs with .NET 2.0 version, while SCVMM 2012 SP1 DLLs are built with a newer .NET framework 4.0. The workaround is as follows:
powershell.exe.configwith the following:
<?xml version="1.0"?><configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0.30319"/> <supportedRuntime version="v2.0.50727"/> </startup> </configuration>
- Copy the file into powershell root directory: C:\Windows\System32\WindowsPowerShell\v1.0
Run following from the command line:
reg add hklm\software\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 1 reg add hklm\software\wow6432node\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 1
To install the Windows agent on the Microsoft VMM server
- Install the RSCD agent on the VMM server, as described in Installing an RSCD agent (Windows). Be sure to install the Windows x64 agent.
- Push Acls to the system and ensure the Role(s) that will be interacting with SCVMM are mapped to a local or domain account with the appropriate privileges to mange the server.
To add the Microsoft VMM server to BMC Server Automation
To add the Microsoft VMM server to BMC Server Automation, complete the following steps:
- From within the BMC Server Automation Console, add the SCVMM server as a managed server to a server group (right-click a server group and select Add Server ).
- Select Configuration > Property Dictionary View.
- Browse the Built-in Property Classes > Connection class.
Click the Instances tab.
A Connection instance is automatically created with the name
<nameofVMMEnrolled>is the name of the SCVMM server.
Your user role must have the appropriate role-based access permissions to update the Connection instance, otherwise the association between the instances is not created and the server is not enrolled. Also, if a Connection instance is already associated with the Virtualization instance then a new instance is not automatically created.
This new instance contains the connection details for the SCVMM server.
You can modify the following properties for the new Connection instance:
Enter the host name or IP address of the Microsoft VMM Server. Ensure that this URL matches with the VMM server name registered in BMC Server Automation.
For example, if the VMM server name is pw-aus-bsa-qa02.sqltest.bladelogic.com then the CONNECTION_URL will be pw-aus-bsa-qa02.sqltest.bladelogic.com
Enter the name of an administrator of Microsoft VMM, or another user with required privileges.
If you need to provide a domain name with the username, enter it here as
Enter the password of the user that is mentioned in the
- Distribute configuration objects to the SCVMM server:
- From the BMC 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 Microsoft VMM object, and add it to the Selected Configuration Objects section. Click Next.
- On the Targets panel, select the VMM server.
- Click Finish, and execute the job. For details, see Distributing configuration objects.
If you upgrade to the latest version of BMC Server Automation, you must immediately update the RSCD agent on the system used for the integration and add the new configuration object version for the integration.