Book Image

Microsoft System Center Virtual Machine Manager 2012 Cookbook

By : EDVALDO ALESSANDRO CARDOSO, Edvaldo Alessandro Cardoso Sobrinho
Book Image

Microsoft System Center Virtual Machine Manager 2012 Cookbook

By: EDVALDO ALESSANDRO CARDOSO, Edvaldo Alessandro Cardoso Sobrinho

Overview of this book

Microsoft System Center 2012 is a comprehensive IT infrastructure, virtualization, and cloud management platform. With System Center 2012, you can more easily and efficiently manage your applications and services across multiple hypervisors as well as across public and private cloud infrastructures to deliver flexible and cost-effective IT services for your business.This cookbook covers architecture design and planning and is full of deployment tips, techniques, and solutions designed to show users how to improve VMM 2012 in a real world scenario. It will guide you to create, deploy, and manage your own Private Cloud with a mix of Hypervisors: Hyper-V, Vmware ESXi, and Citrix XenServer. It also includes the VMM 2012 SP1 features.This book is a cookbook that covers architecture design, planning and is full of deployment tips, techniques and solutions designed to show users how to improve VMM 2012 in a real world scenario. It will guide you to create, deploy and manage your own Private Cloud with a mix of Hypervisors : Hyper-V, Vmware ESXi and Citrix XenServer.
Table of Contents (16 chapters)
Microsoft System Center Virtual Machine Manager 2012 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Designing the VMM server, database, and console


When planning a VMM 2012 design for deployment, consider the different VMM roles, keeping in mind that VMM is part of the Microsoft private cloud solution. If you are considering a private cloud, you will need to integrate VMM with the other System Center family components.

Tip

By integrating VMM 2012 with Microsoft Server App-V, you can create application profiles that will provide instructions for installing Microsoft App-V applications, Microsoft Web Deploy applications and Microsoft SQL Server data-tier applications (DACs), and for running scripts when deploying a virtual machine as part of a service.

In VMM, you can create the hardware, guest operating system, SQL Server, and application profiles that will be used in a template to deploy virtual machines.

Getting ready

In VMM 2012, you can create a service as a set of related VMs that are configured and deployed together and managed as a single object (for example, a line of business applications that connect to SQL Server).

You can create a private cloud by combining hosts, even from different hypervisors (for example, Hyper-V, VMware, and Citrix), with networking, storage, and library resources.

To start deploying VMs and services, you first need to configure the fabric.

How to do it…

Create a spreadsheet with the server names and the IP settings, like seen in the following table, of every System Center component you plan to deploy. This will help you manage and integrate the solution:

Server name

Role

IP settings

Vmm-mgmt01

SCVMM Management Server 01

IP: 10.16.254.20/24

GW: 10.16.254.1

DNS: 10.16.254.2

Vmm-mgmt02

SCVMM Management Server 02

IP: 10.16.254.22/24

GW: 10.16.254.1

DNS: 10.16.254.1

Vmm-consol01

SCVMM Console

IP: 10.16.254.50/24

GW: 10.16.254.1

DNS: 10.16.254.2

Vmm-lib01

SCVMM Library

IP: 10.16.254.25/24

GW: 10.16.254.1

DNS: 10.16.254.2

w2012-sql

SQL Server 2012

IP: 10.16.254.40/24

GW: 10.16.254.1

DNS: 10.16.254.2

How it works…

The following rules need to be considered when planning a VMM 2012 SP1 deployment:

  • The computer name cannot contain the character string "SCVMM" (for example, srv-scvmm-01) and cannot exceed 15 characters.

  • Your VMM database must use a supported version of SQL Server to perform a VMM 2012 deployment. Express editions of Microsoft SQL Server are no longer supported for the VMM 2012 database. For more information, check the system requirements specified in the Specifying the correct system requirements for a real- world scenario recipe in this chapter.

  • VMM 2012 does not support a library server on a computer that is running Windows Server 2003; it now requires Windows 2008 R2 as a minimum.

  • VMM 2012 no longer supports Microsoft Virtual Server 2005 R2 Hosts. If you are upgrading from a previous version of VMM that has Virtual Server hosts, they will be removed from the VMM 2012 database. If you do not want these hosts to be removed automatically, remove the hosts manually before you start the upgrade process.

  • Hosts running the following versions of VMware ESX and VMware vCenter Server are supported:

    • ESX 3.x

    • ESX 4.1

    • ESX 5.0, ESX 5.1

  • Upgrading a previous version of VMM to a highly available VMM 2012 requires additional preparation. See Chapter 5, Upgrading from SCVMM 2008 for this purpose.

  • If you're planning for high availability of VMM 2012, be sure to install SQL Server on a separate server as it cannot physically be located on the same server as your VMM 2012 management server.

  • The VMM management server must be a member of a domain. (This rule does not apply to the managed hosts, which can be on a workgroup.)

  • The startup RAM for the VMM management server (if running on a VM with dynamic memory enabled) must be at least 2048 MB.

  • VMM does not support DFS Namespaces (DFSN) or DFS Replication (DFSR).

  • VMM does not support file servers configured with the "case-insensitive option" for Windows Services for Unix, as the network filesystem case control is set to ignore. Refer to the Windows Services for UNIX 2.0 NFS Case Control article available at http://go.microsoft.com/fwlink/p/?LinkId=102944 to learn more.

  • The VMM console machine must be a member of a domain.

There's more...

For a complete design solution, there are more items you need to consider.

Storage providers – SMI-S and SMP

Storage classifications enable you to assign user-defined storage classifications to discovered storage pools for Quality of Service (QoS) or chargeback purposes.

Tip

You can, for example, assign a classification of Gold to storage pools that have the highest performance and availability, Silver for high performance, and Bronze for low performance.

In order to use this feature, you will need the SMI-S provider.

VMM 2012 SP1 can discover and communicate with SAN arrays through the Storage Management Initiative (SMI-S provider) and SMP provider.

If your storage is SMI-S compatible, you must install the storage provider on a separately available server (do not install VMM management server) and then add the provider to VMM management. If your storage is SMP compatible, it does not require a provider installation.

Tip

Each vendor has its own SMI-S setup process. My recommendation is to contact the storage vendor to ask for an SMI-S provider compatible with SCVMM 2012, which is currently Version 1.4.

CIM-XML is used by VMM to communicate with the underlying SMI-S providers since VMM never communicates with the SAN arrays themselves.

By using the storage provider to integrate with the storage, VMM can create LUNs (both GPT and MBR) and assign storage to hosts or clusters.

VMM 2012 also supports the SAN snapshot and clone feature, allowing you to duplicate a LUN through a SAN Copy-capable template to provide for new VMs, if you are hosting those in a Hyper-V platform. You will need to provision outside of VMM for any other VMs hosted with VMware or Citrix hosts.

Bare Metal

This capability enables VMM 2012 to identify the hardware, install the operational system (OS), enable the Hyper-V role, and add the machine to a target-host group with streamlined operations in an automated process.

PXE capability is required and is an integral component of the server pool. The target server will need to have a baseboard management controller (BMC) supporting one of the following management protocols:

  • Data Center Management Interface (DCMI) 1.0

  • Systems Management Architecture for Server Hardware (SMASH) 1.0

  • Intelligent Platform Management Interface (IPMI) 1.5 or 2.0

  • HP Integrated Lights-Out (iLO) 2.0

Enterprise and hosting companies will benefit from the ability to provide new Hyper-V servers without having to install the operational system manually on each machine. By using BMC and integrating with Windows Deployment Services (WDS), VMM deploys the OS to designated hosts through the boot from the VHD feature.

Configuring security

To ensure that users can perform only assigned actions on selected resources, create tenants, self-service users, delegated administrators, and read-only administrators in VMM using the VMM console, you will need to create Run As accounts to provide necessary credentials for performing operations in VMM (for example, adding hosts).

Run As accounts and Run As profiles in VMM

Run As accounts and Run As profiles are very useful additions to enterprise environments. These accounts are used to store credentials that allow you to delegate tasks to other administrators and self-service users without exposing sensitive credentials.

Note

By using Windows Data Protection API (DPAPI), VMM provides OS-level data protection when storing and retrieving the Run As account.

There are several different categories of Run As accounts:

  • Host computer: This is used to provide access to Hyper-V, VMware ESX, and Citrix XenServer hosts

  • BMC: This is used to communicate with BMC on the host computer, for out-of-band management

  • Network device: This is used to connect to network load balancers

  • Profile: This is to be used for service creation in the OS and application profiles as well as SQL and host profiles

  • External: This is to be used for external systems such as System Center Operations Manager

Only administrators or delegated administrators can create and manage Run As accounts.

Note

During the installation of the VMM management server, you will be requested to use distributed key management (DKM) to store encryption keys in Active Directory Domain Services (AD DS).

Ports communications and protocols for firewall configuration

When designing the VMM implementation, you need to plan which ports you are going to use for communication and file transfers between VMM components. Based on the chosen ports, you will also need to configure your host and external firewalls. See the Configuring ports and protocols on the host firewall for each SCVMM component recipe in Chapter 2, Installing SCVMM 2012.

Note

Not all of the ports can be changed through VMM. Hosts and library servers must have access to the VMM management server on the ports specified during setup. This means that all firewalls, whether software based or hardware based, must be previously configured.

VM storage placement

The recommendation to get better performance is to create a big CSV volume instead of creating volumes based on the VHD purpose (for example, OS, data, and logs). The following figure shows both scenarios:

Management cluster

The best practice is to have a separate management cluster to manage the production, test, and development clusters.

In addition to this, although you can virtualize the domain controllers with Windows 2012, it is not the best practice to have all the domain controllers running on the management clusters, as the cluster and System Center components highly depend on the domain controllers.

The following figure shows a two-node management cluster, with System Center 2012 and SQL Server installed in separate VMs to manage the production cluster:

Small environment

In a small environment , you can have all the VMM components located on the same server. A small business may or may not have high availability in place as VMM 2012 is now a critical component for your private cloud deployment.

Start by selecting the VMM server's location, which could be a physical server or a virtual machine.

You can install SQL Server on the VMM server as well, but as VMM 2012 does not support SQL Express editions, you will need to install SQL Server first and then proceed with the VMM installation.

If you are managing more than 10 hosts in the production environment, my recommendation would be to have SQL Server running on a separate machine.

It is important to understand that when deploying VMM in production environments (real-world scenarios), the business will require a reliable system that it can trust.

The following figure illustrates a real-world deployment where all VMM 2012 components are installed on the same VM and SQL is running on a separate VM:

LAB environments

I would recommend up to 50 hosts in a lab environment with SQL Server and all VMM components installed on a single VM. It will work well, but I would not recommend this installation in a production environment.

Medium and enterprise environments

In a medium- or large-scale environment, the best practice is to split the roles across multiple servers or virtual machines. By splitting the components, you can scale out and introduce high availability to the System Center environment.

In the following design, you can see each component and what role it performs in the System Center Virtual Machine Manager environment:

When designing an enterprise private cloud infrastructure, you should take into consideration some key factors such as business requirements, company policies, applications, services, workloads, current hardware, network infrastructure, storage, security, and users.

Private cloud sample infrastructure

Following is a sample of a real-world infrastructure that can support up to 3000 VMs and 64 server nodes running Windows 2012 Hyper-V.

The number of VMs you can run on an implementation like this will depend on some key factors. Do not take the following configuration as a mirror for your deployment, but as a starting point. My recommendation is to start understanding the environment, then run a capacity planner such as a MAP toolkit. It will help you gather information that you can use to design your private cloud.

I am assuming a ratio of 50 VMs per node cluster with 3 GB of RAM, configured to use Dynamic Memory (DM).

  • Servers

    • 64 servers (4 clusters x 16 nodes)

    • Dual processor, 6 cores: 12 cores in total

    • 192 GB RAM

    • 2 x 146 GB local HDD (ideally SDD) in Raid 1

  • Storage

    Switch and host redundancy.

    • Fiber channel or iSCSI

    • Array with capacity to support customer workloads

    • Switch with connectivity for all hosts.

  • Network

    A switch with switch redundancy and sufficient port density and connectivity to all hosts. It provides support for VLAN tagging and trunking. NIC Team and VLAN are recommended for better network availability, security, and performance achievement.

  • Storage connectivity

    • If it uses a fiber channel: 2 (two) x 4 GB HBAs

    • If it uses ISCSI: 2 (two) x dedicated NICs (recommended 10 GbE)

  • Network connectivity

    • If it maintains a 1 GbE connectivity: 6 dedicated 1 GbE (live migration, CSV, management, virtual machines' traffic)

    • If it maintains a 10 GbE connectivity: 3 dedicated NICs 10 GbE (live migration, CSV, management, virtual machines' traffic)

Hosting environments

System Center VMM 2012 SP1 introduced multitenancy. This is one of the most important features for hosting companies as they only need to install a single copy of System Center VMM, and then centralize their customer management, each one running in a controlled environment in their own domain.

See also