You are previewing System Center 2012 R2 Virtual Machine Manager Cookbook.
O'Reilly logo
System Center 2012 R2 Virtual Machine Manager Cookbook

Book Description

Over 70 recipes to help you design, configure, and manage a reliable and efficient virtual infrastructure with VMM 2012 R2

In Detail

Microsoft System Center 2012 is a comprehensive IT infrastructure, virtualization, and cloud management platform. With System Center 2012, you can easily and efficiently deploy, manage, and monitor a virtualized infrastructure, as well as services and applications across multiple hypervisors. This can also be done across public and private cloud infrastructures to deliver flexible and cost-effective IT services for your business.

This book will take you through a series of recipes to streamline your System Center VMM architecture. Each section has been discreetly designed to help you simplify, plan, and deploy a highly scalable, high availability virtual infrastructure. The first few sections take you through the design and installation of System Center 2012 R2 VMM and Windows 2012 Hyper-V R2 features. Network virtualization, storage integration, and bare metal deployment are also covered in this book.

What You Will Learn

  • Plan and design a VMM architecture for real-world deployment
  • Configure network virtualization, gateway integration, storage integration, resource throttling, and availability options
  • Integrate SC Operations Manager (SCOM) with VMM to monitor your infrastructure
  • Integrate SC APP Controller (SCAC) with VMM to manage private and public clouds (Azure)
  • Deploy clusters with VMM Bare Metal
  • Create and deploy virtual machines from templates
  • Deploy a highly available VMM Management server
  • Manage Hyper-V, VMware, and Citrix® from VMM
  • Upgrade from previous VMM versions
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. System Center 2012 R2 Virtual Machine Manager Cookbook
      1. Table of Contents
      2. System Center 2012 R2 Virtual Machine Manager Cookbook
      3. Credits
      4. About the Author
      5. Acknowledgments
      6. About the Reviewers
      7. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      9. 1. VMM 2012 Architecture
        1. Introduction
          1. Knowing your current environment – assessment
          2. Designing the solution
          3. Creating the private cloud fabric
        2. Understanding each component for a real-world implementation
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more…
            1. Windows Azure Pack
            2. Service Reporting
            3. Domain controllers
            4. Windows Server Update Service
            5. System Center App Controller
            6. System Center components' scenarios
          5. See also
        3. Planning for High Availability
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. There's more…
            1. SQL Server
            2. The VMM library
        4. Designing the VMM server, database, and console implementation
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more...
            1. Storage providers – SMI-S and SMP
            2. Bare Metal
            3. Configuring security
            4. Run As accounts in VMM
            5. Ports' communications and protocols for firewall configuration
            6. The VM storage placement
            7. Management clusters
            8. Small environment
            9. Lab environments
            10. Medium and enterprise environments
            11. Private cloud sample infrastructure
            12. Hosting environments
            13. New networking features in VMM 2012 R2
          5. See also
        5. Specifying the correct system requirements for a real-world scenario
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. Licensing the System Center
          1. Getting ready
          2. How to do it…
          3. How it works…
        7. Troubleshooting VMM and supporting technologies
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
            1. Verifying WMI providers
            2. Troubleshooting tools
            3. Background Intelligent Transfer Service troubleshooting
            4. Data collection tools
          5. See also
      10. 2. Upgrading from Previous Versions
        1. Introduction
          1. Upgrade notes:
        2. Reviewing the upgrade options
          1. How to do it...
            1. In-place upgrade from VMM 2008 R2 SP1 to VMM 2012
            2. Upgrading from 2008 R2 SP1 to VMM 2012 on a different computer
            3. Upgrading from VMM 2012 to VMM 2012 SP1
            4. Upgrading from VMM 2012 SP1 to VMM 2012 R2
          2. How it works...
          3. There's more...
          4. See also
        3. Checking the VMM system requirements and preparing for the upgrade
          1. Getting ready
          2. How to do it...
            1. Uninstalling previous versions of Windows Automated Installation Kit (WAIK)
            2. Checking whether Windows Remote Management (WinRM) is working
          3. How it works...
          4. There's more...
        4. Upgrading to VMM 2012 R2
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Upgrading to VMM 2012 SP1 or VMM 2012 R2
            2. Upgrading a VMM console
            3. Upgrading the VMM Self-Service Portal
            4. Uninstalling the VMM Self-Service Portal
          5. See also
        5. Reassociating hosts after upgrading
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        6. Updating the VMM agents
          1. How to do it...
          2. How it works...
          3. See also
        7. Performing other post-upgrade tasks
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Updating driver packages
            2. Relocating the VMM Library
          4. See also
      11. 3. Installing VMM 2012 R2
        1. Introduction
        2. Creating service accounts
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        3. Deploying a Microsoft SQL Server for a VMM implementation
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more…
          5. See also
        4. Installing VMM dependencies
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. SQL Server Connectivity Feature Pack components
            2. The Telnet client
          5. See also
        5. Configuring Distributed Key Management
          1. Getting ready
          2. How to do it…
          3. How it works...
          4. See also
        6. Installing a VMM management server
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. See also
        7. Installing the VMM console
          1. Getting ready
          2. How to do it...
          3. How it works…
        8. Connecting to a VMM management server using the VMM console
          1. How to do it...
          2. How it works…
          3. See also
        9. Creating credentials for a Run As account in VMM
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Disabling a Run As account
            2. Enabling a disabled Run As account
            3. Deleting a Run As account
        10. Configuring ports and protocols on the host firewall for each VMM component
          1. Getting ready
          2. How to do it...
          3. See also
      12. 4. Installing a High Available VMM Server
        1. Introduction
        2. Installing a highly available VMM management server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Installing a VMM management server on the additional node of a cluster
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Connecting to a highly available VMM management server using the VMM console
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Deploying a highly available library server on a file server cluster
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Uninstalling a highly available VMM management server
          1. How to do it...
          2. How it works...
          3. There's more...
      13. 5. Configuring Fabric Resources in VMM
        1. Introduction
        2. Creating host groups
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Moving a host group to another location
            2. Configuring host group properties
          5. See also
        3. Setting up a VMM library
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Adding a library share
            2. Adding file-based resources to a VMM library share
            3. Creating or modifying equivalent objects in the VMM library
              1. Marking (creating) objects as equivalent
              2. Modifying equivalent objects
          5. See also
        4. Configuring networks in VMM
          1. How to do it...
          2. There's more...
            1. Designing for converged networks
        5. Networking – configuring logical networks
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating an IP address pool
            2. Automating the network configuration
            3. Associating the VMM Logical Network with the physical adapter
          5. See also
        6. Networking – configuring VM networks and gateways
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Adding a gateway device, a virtual switch extension, or network manager in VMM 2012 R2
          5. See also
        7. Networking – configuring logical switches, port profiles, and port classifications
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Creating port profiles for VM adapters
            2. Creating a port classification
            3. Adding a virtual switch extension manager
            4. Creating a logical switch
            5. Configuring the network adapter for VMs and host management
          4. See also
        8. Integrating and configuring the storage
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating an iSCSI session on a host
            2. Bringing the storage pools under management and assigning classifications
            3. Configuring the allocation method for a storage array
            4. Creating logical units (LUN)
            5. Allocating logical units and storage pools to a host group
          5. See also
        9. Creating a physical computer profile (host profile)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        10. Provisioning a physical computer as a Hyper-V host – Bare Metal host deployment
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        11. Adding and managing Hyper-V hosts and host clusters
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Adding Hyper-V hosts in a disjointed namespace
            2. Adding Hyper-V hosts in a perimeter network
              1. Installing the agent on the standalone server
              2. Adding perimeter hosts to VMM
          5. See also
      14. 6. Deploying Virtual Machines and Services
        1. Introduction
        2. Creating private clouds
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Assigning the private cloud to a user role
          5. See also
        3. Creating hardware, guest OSes, applications, and SQL profiles
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating a guest operating system profile
            2. Creating an application profile
            3. Creating a SQL Server profile
          5. See also
        4. Creating user roles in VMM
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating a delegated or read-only administrator user role
            2. Creating a tenant administrator role
            3. Creating an application administrator (self-service user) role
            4. Configuring self-service user roles to share and receive resources
          5. See also
        5. Creating and deploying virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works…
          4. There's more...
            1. Generalizing the guest OS using Sysprep
          5. See also
        6. Creating virtual machine templates
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Enabling MAC spoofing
            2. Deploying virtual machines from virtual machine templates
          5. See also
        7. Creating and deploying service templates
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Deploying a service from the VMs and Services workspace
            2. Scaling out a service in VMM
            3. Updating a service in VMM
          5. See also
        8. Rapidly provisioning a virtual machine using SAN Copy
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating a template that is SAN Copy capable
            2. Deploying a virtual machine through rapid provisioning
          5. See also
      15. 7. Managing VMware ESXi and Citrix® XenServer® Hosts
        1. Introduction
        2. Adding VMware vCenter Server to VMM
          1. Getting ready
          2. How to do it...
            1. Importing the VMware self-signed SSL certificate
            2. Adding vCenter to VMM
          3. How it works...
          4. See also
        3. Adding VMware ESX hosts or host clusters to VMM
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Updating the host status to OK
          5. See also
        4. Configuring network settings on a VMware ESX host
          1. How to do it...
            1. Configuring the network settings for a host
          2. How it works...
          3. There's more...
            1. Verifying the settings for a virtual switch
            2. Viewing the compliance information for a physical network adapter
          4. See also
        5. Configuring host BMC settings
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Powering a computer on or off through VMM
          4. See also
        6. Importing VMware templates
          1. How to do it...
          2. How it works...
          3. See also
        7. Converting VMware virtual machines to Hyper-V
          1. How to do it...
          2. How it works...
          3. See also
        8. Managing Citrix® XenServer® hosts and pools
          1. Getting ready
          2. How to do it...
            1. Creating a pool on Citrix® XenCenter®
            2. Adding Citrix® XenServer® hosts to VMM
          3. How it works...
          4. There's more...
            1. Troubleshooting a failed job when adding XenServer® hosts
          5. See also
        9. Converting Citrix® virtual machines to Hyper-V
          1. How to do it...
          2. How it works...
          3. See also
      16. 8. Managing Hybrid Clouds, Fabric Updates, Resources, Clusters, and the New Features of R2
        1. Introduction
        2. Creating Hyper-V clusters
          1. Getting ready
            1. Prerequisites for cluster creation using VMM 2012
            2. Prerequisites for fabric configuration
            3. Prerequisites for networking
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Adding a Hyper-V host as a cluster node
          5. See also
        3. Managing fabric updates
          1. Getting ready
          2. How to do it...
            1. Installing WSUS for VMM 2012
            2. Integrating WSUS with VMM
          3. How it works...
          4. There's more...
            1. Scanning servers for compliance
            2. Remediating updates for a standalone server in VMM
            3. Remediating updates for a Hyper-V cluster in VMM
          5. See also
        4. Configuring Dynamic Optimization and Power Optimization
          1. Getting ready
          2. How to do it...
            1. Configuring settings for Dynamic Optimization (DO)
            2. Configuring settings for Power Optimization
          3. How it works...
          4. There's more...
            1. Performing Dynamic Optimization (DO) on the host cluster
          5. See also
        5. Live migrating virtual machines
          1. Getting ready
            1. Requirements for live migration
            2. Requirements for live storage migration
            3. Requirements for live system migration
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Performing live migration of a VM between hosts in two clusters
            2. Performing live storage migration between standalone hosts
            3. Performing concurrent live migrations
          5. See also
        6. Managing Linux virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Configuring availability options and virtual NUMA for VMs
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Configuring availability sets for a VM running on a host cluster
            2. Configuring preferred and possible owners for a VM
            3. Configuring virtual NUMA in VMM 2012 R2
          4. See also
        8. Configuring resource throttling
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Configuring memory throttling
            2. Configuring memory weight
          4. See also
        9. Integrating with the IPAM server for IP management
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. The IPAM and VMM time synchrony
        10. Deploying SC App Controller 2012 R2 for hybrid cloud management
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Connecting to private clouds – integrating with VMM 2012
            2. Connecting to public clouds
          5. See also
        11. Configuring Synthetic Fibre Channel
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating virtual SANs
            2. Creating a VM or a VM template with Virtual Fibre Channel
            3. Editing vSAN port assignments
            4. Removing a vSAN
            5. Adding a new vHBA
            6. Editing vHBA WWNN and WWPN dynamic settings
          5. See also
      17. 9. Integration with System Center Operations Manager 2012 R2
        1. Introduction
        2. Installing System Center Operations Manager 2012 R2
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Installing management packs
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Managing Discovery and Agents
          1. How to do it...
          2. How it works...
          3. See also
        5. Configuring the integration between Operations Manager 2012 and VMM 2012
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Enabling PRO tips and maintenance mode integration in VMM 2012
          5. See also
        6. Enabling reporting in VMM
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Extending monitoring with management packs
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Configuring proxy settings for an agent
            2. Configuring proxy settings for a management server
            3. Configuring the OpsMgr Agent task to adjust the registry settings
          5. See also
      18. 10. Scripting in Virtual Machine Manager
        1. Introduction
        2. Introducing VMM PowerShell
          1. Getting ready
            1. Installing the VMM PowerShell module
          2. How to do it...
            1. Starting VMM PowerShell
          3. How it works...
          4. There's more...
            1. Understanding PowerShell properties
            2. Methods
            3. Object synchronization
          5. See also
        3. Finding the command to automate tasks in VMM
          1. Getting ready
          2. How to do it...
            1. Using the Get-Help cmdlet
          3. How it works...
          4. There's more...
            1. Displaying About topics
          5. See also
        4. Creating a script from VMM wizards
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Modifying a generated script
            2. Adding parameters to a generated script
          4. See also
        5. Storing and running scripts in VMM
          1. Getting ready
          2. How to do it...
            1. Storing a script in the VMM library
            2. Viewing and updating a script in the VMM library
            3. Running a script from the VMM library
            4. Running a script from the command prompt
          3. How it works...
          4. There's more...
            1. Credentials
            2. Using VMM Run As accounts
            3. Using the JobGroup parameter
            4. Cmdlets that you can use JobGroup with
        6. Using VMM sample scripts
          1. How to do it...
            1. Counting the number of Virtual Machines per Operating System
          2. How it works...
          3. There's more...
            1. Adding a storage provider by its IP address
            2. Converting a dynamic VHD to a fixed VHDX
            3. Creating a new virtual disk drive and adding it to an existing Virtual Machine
            4. Testing a dynamic VHD attached to a fixed-format virtual disk drive on a Virtual Machine
          4. See also
      19. Index