This topic is a work in progress. Please help correct and extend it. It is the Wiki way! See the official (non-extensible) version of this topic at Managing a VMware Infrastructure in VMM.

Note: This article is based on VMM 2008  and might not apply to VMM 2012 (R2)

This topic discusses how to manage your VMware Infrastructure 3 (VI3) using System Center Virtual Machine Manager (VMM). VMM allows you to control heterogeneous virtualized environments through a single console and automate tasks by using one Windows PowerShell interface across multiple hypervisors.

 

VMM uses the API interface exposed by the VMware VirtualCenter (or VMware vCenter) server to manage VMware ESX(i) Server hosts. For ESX(i) Server-specific management, such as creating or removing resource pools and patching ESX(i) Server computers, you will use VirtualCenter or vCenter. For common tasks, such as managing, creating, placing, deploying, and removing virtual machines and adding or removing hosts, you can use VMM.



VMware Support

VMM 2008 and VMM 2008 R2 support VMware VirtualCenter 2.5 (VMware Infrastructure 3, VI3), with the following versions of VMware ESX(i) Server:

  • VMware ESX(i) Server 3.5
  • VMware ESX Server 3.0.x

VMM 2008 R2 also supports VMware vSphere 4 (VI3 features only), with the following versions of ESX Server:

  • VMware ESX(i) Server 4.0
  • VMware ESX(i) Server 3.5
  • VMware ESX Server 3.0.x

VMM does not support VMware Server.

Mapping

VMware datacenters, folders, host clusters, and hosts are mapped to VMM as follows.

VMWare Mappings in VMM
VMware Object VMM Object
Hosts and host clusters All Hosts (root host group)
Datacenter Host group
Folder Host group
Cluster Host cluster

VirtualCenter and vCenter Interoperability

VMM interoperates with VMware by connecting to the VirtualCenter or vCenter server through Web service calls and does not require a VMM agent on the VirtualCenter server or on the ESX(i) Server hosts. The VMM server refreshes all information of the VMware environment and maps it to VMM periodically. Any changes made to your VMware environment using VMM will be reflected in VirtualCenter or vCenter, and any changes that are made to those same settings in VirtualCenter or vCenter are reflected in VMM.

To be able to manage ESX Server hosts in VMM, you must add the VirtualCenter or vCenter server to VMM. However, VMM contacts the ESX(i) Server hosts directly using Secure FTP (SFTP) or HTTPS for transfers of data between ESX(i) Server hosts and Windows Server-based computers. VMM uses VirtualCenter or vCenter to access VMware vMotion functionality and other features.

VMM 2008 R2 surfaces the virtual switches and port groups that are configured in VirtualCenter or vCenter for use with ESX(i) Server hosts and virtual machines. You do not need to update network configurations for ESX(i) Server hosts and virtual machines after you add a VirtualCenter or vCenter server to VMM. During virtual machine deployment and migration, after selecting a virtual switch on an ESX(i) Server host, the VMM administrator can select from existing port groups that are configured for the switch. Any changes that are made to the VMware port group configuration after a VirtualCenter or vCenter server is added to VMM 2008 R2 are refreshed in VMM.

By contrast, VMM 2008 discovers virtual switches that are configured in VirtualCenter but does not discover the port groups on the virtual switches. During virtual machine deployment or migration, when the VMM administrator selects a virtual switch on an ESX(i) Server host, VMM 2008 creates a new port group for the switch in VirtualCenter. The port group can be seen in VirtualCenter but not in the VMM Administrator Console.

Supported Features

The following VMM and VMware features are supported when VMM manages ESX(i) Server hosts through VMware VirtualCenter or vCenter.

Placement of VMware Virtual Machines

VMM offers virtual machine placement based on host ratings during the creation, deployment, and migration of VMware virtual machines. For more information, see About Virtual Machine Placement.

System Center Operations Manager (OpsMgr) Integration and PRO

Monitoring and alerting is possible through VMM with the integration of System Center Operations Manager (OpsMgr) 2007 and 2007 R2 and Performance and Resource Optimization (PRO). For more information, see About PRO.

VMware Virtual Machines in the VMM Library

You can organize and store VMware virtual machines, virtual disk (.vmdk) files and VMware templates in the VMM library. VMM supports creating new virtual machines from templates and converting stored VMware virtual machines to Hyper-V. For more information about converting VMware virtual machines, see V2V: Converting Virtual Machines in VMM.

Template Support

After you add a VirtualCenter or vCenter server to VMM, you can import your VMware virtual machine templates into the VMM library and use the templates to create virtual machines using VMM. Use the Import templates action, available in Administration view of the VMM Administrator Console when the Virtualization Managers node is expanded.

VMM supports the following types of templates for VMware virtual machines:

  • Customized templates. The most common VMM templates, these templates require an operating system profile to automate deployment.
  • Non-customized templates. These templates do not have an operating system profile attached and can be used for creating virtual machines that have operating systems that VMM cannot customize during virtual machine creation.

Note. VMM 2008 R2 supports customization of Windows Server 2008 operating systems on virtual machines that are deployed on ESX(i) Server hosts managed by VirtualCenter 2.5 Update 4 and vCenter server.

PowerShell Automation in VirtualCenter

The cmdlets in the Windows PowerShell — Virtual Machine Manager command shell are agnostic to the underlying virtualization software, meaning the same cmdlets can be used from VMM on Hyper-V, Virtual Server or ESX(i) Servers managed by VirtualCenter or vCenter Server. This means that most daily administration tasks that you perform in VirtualCenter or vCenter can be done through VMM PowerShell or through the VMM Administrator Console.

For example, you can start, stop, pause, checkpoint, or migrate a virtual machine. If vMotion is enabled in VirtualCenter or vCenterm you can live migrate a VMware virtual machine in VMM. By updating virtual machine properties, you can add or remove virtual hardware devices or update their settings. You can connect to a VMware virtual machine from VMM. You can allow users to create and manage their own virtual machnies by using the VMM Self-Service Portal. For more information about Windows PowerShell — VMM cmdlets, see Using the Windows PowerShell — VMM Command Shell.

VMware Support for Highly Available Virtual Machines

VMware clusters used for High Availability (HA) and Dynamic Resource Scheduler (DRS) are exposed in VMM as host clusters.

  • HA (High Availability)—Used for fast recovery.
  • vMotion—VMM supports VMware vMotion through VMware VirtualCenter. The Migrate storage action in VMM 2008 R2 uses Storage vMotion when it moves virtual machine configuration files and virtual disk files on a running virtual machine from one independent storage location to another on an ESX(i) Server host.
  • PRO—VMM uses PRO to enable dynamic load balancing using vMotion.

VMware Hosts in Maintenance Mode

When you place an ESX(i) Server host that is managed by VMM in maintenance mode by using the VMware VirtualCenter or vCenter console, VMM automatically makes that host unavailable for placement in VMM. On the Status tab of the Host Properties dialog box for the host, the This host is available for placement check box is cleared and becomes inactive. You cannot change the This host is available for placement check box or remove the host from maintenance mode in VMM. To make the ESX Server host available for placement in VMM, you must remove the host from maintenance mode by using the VMware VirtualCenter or vCenter console. For more information about maintenance mode, refer to the VMware documentation.

Adding a VMware Infrastructure or VMware vSphere to VMM

The following sections outline the procedures for implementing VMware infrastructure or VMware vSphere integration in VMM.

Add the VirtualCenter or vCenter Server

To integrate a VMware infrastructure into your VMM-managed virtualized environment, begin by adding your VMware VirtualCenter or vCenter server to VMM. When you add a VirtualCenter or vCenter server, VMM discovers all ESX(i) Server hosts and clusters that the VirtualCenter or vCenter server is managing and adds the objects to VMM.

Important. You cannot manage a VirtualCenter or vCenter server using more than one VMM server. If you add the VirtualCenter or vCenter server to more than one instance of VMM, VMM creates a duplicate object for each VMware virtual machine, with the duplicate virtual machine permanently in a Missing state.

To add the VirtualCenter or vCenter server, use the Add VMware VirtualCenter server action, which is available in all views of the VMM Administrator Console. You must provide VirtualCenter or vCenter administrator's credentials. For more information, see How to Add a VMware VirtualCenter Server.

Note. If you are managing a VMware environment in VMM, you can add new ESX(i) Server hosts to a managed VirtualCenter or vCenter server by using VMM. For more information, see How to Add an ESX Server Host to VMM. For information about scripting this operation through the Windows PowerShell — Virtual Machine Manager command shell, see How to Add an ESX Server Host Using a Script.

Configure Security Information for the ESX(i) Server Hosts

All newly added ESX(i) Server hosts initially have OK (Limited) status in VMM. To be able to perform all management tasks that VMM supports, you must enter credentials with appropriate authority in the host properties. If you are managing the VMware environment in secure mode, you also must retrieve and accept a security certificate and, in some cases, a public key. The security information for an ESX(i) Server host is specified on the Security tab of the host properties.

When you manage a VMware environment in secure mode, VMM authenticates each ESX Server host on all protocols used for communication. In secure mode, HTTP over Secure Sockets Layer (SSL) for embedded ESX Server—that is, VMware ESX Server 3i and later—requires certificate authentication, and SFTP over Secure Shell (SSH) for non-embedded ESX Server—that is, VMware ESX Server 3.0.x and later—requires host public key authentication. VMM retrieves and verifies both.

For non-embedded versions of ESX Server, you also will need to add the SSH public keys to the VMM database. For this task, you can either validate the public key when you configure security for individual hosts in VMM or use a script to update the VMM database with public keys for all of your non-embedded ESX Server hosts.

When you add a VirtualCenter or vCenter server to VMM, VMM turns on secure mode by default. If your environment does not require that level of authentication, you can turn off secure mode.

To perform file transfer operations between hosts running non-embedded versions of ESX Server and Windows Server-based computers, VMM must have access to virtual machine files on the host. This type of file transfer is required for operations such as creating a virtual machine with a virtual hard disk stored on a VMM library server or storing a VMware virtual machine in the VMM library.

To perform this type of file transfer, VMM accesses ESX Server hosts directly. For non-embedded versions of ESX Server, VMM must have the credentials of the virtual machine delegate in ESX Server to gain the needed access to virtual machine files on the host. By default, ESX Server uses root credentials on the host for the delegate. If you don’t want to use root credentials, you can configure a lower-privilege account as the virtual machine delegate. Either choice requires additional configuration to give VMM the needed access to the shares.

Note. For detailed information about these security requirements, see Configuring Security for a Managed VMware Environment in VMM. For information about scripting this configuration task, see How to Add an ESX Server Host Using a Script.

Import VMware Templates

After you add a VirtualCenter or vCenter server to VMM, use the Import templates action in Administration view of the VMM Administrator Console to import your VMware templates to the VMM library so that you can use them to create virtual machines in VMM. For more information, see How to Import VMware Templates.

Converting VMware Virtual Machines to Hyper-V

There are three ways to convert a VMware virtual machine to a Hyper-V virtual machine:

  • Use the Convert Virtual Machine Wizard to perform a virtual-to-virtual (V2V) conversion on a virtual machine that is on an ESX Server host.
  • Turn off the VMware virtual machine, store it in the VMM library, and then use the Convert Virtual Machine Wizard to convert the virtual machine. VMware virtual machines can be stored in the library by copying the virtual disk (.vmdk) and configuration (.vmx) files into a library share. For more information, see V2V: Converting Virtual Machines in VMM. For information about adding disk and configuration files to the library, see How to Add Files to the Library.
  • Use the Convert Physical Server Wizard to perform a physical-to-virtual machine conversion (P2V) on the running guest operating system inside the VMware virtual machine. For more information, see P2V: Converting Physical Computers to Virtual Machines in VMM.

VMM transfers data to and from non-embedded ESX Server using Secure FTP (SFTP).






Community Resources