SQL Server VMM library Designing the VMM server, database, and console implementation Getting ready VM storage placement Management cluster Small environment Lab environments Medium and
Trang 2System Center 2016 Virtual Machine Manager Cookbook
Trang 3BIRMINGHAM - MUMBAI
Trang 5System Center 2016 Virtual Machine Manager Cookbook Third Edition
Copyright © 2018 Packt Publishing
All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the
information contained in this book is sold without warranty, either express or implied Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Kartikey Pandey
Acquisition Editor: Heramb Bhavsar
Content Development Editor: Devika Battike
Technical Editor: Manish Shanbhag
Copy Editor: Safis Editing, Dipti Mankame
Project Coordinator: Judie Jose
Proofreader: Safis Editing
Indexer: Rekha Nair
Graphics: Tom Scaria
Production Coordinator: Nilesh Mohite
First published: March 2013
Second edition: June 2014
Third edition: February 2018
Trang 6Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well asindustry leading tools to help you plan your personal development and advance your career For moreinformation, please visit our website
Trang 7Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Trang 8Did you know that Packt offers eBook versions of every book published, with PDF and ePub filesavailable? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer,you are entitled to a discount on the eBook copy Get in touch with us at service@packtpub.com for moredetails
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of freenewsletters, and receive exclusive discounts and offers on Packt books and eBooks
Trang 9Contributors
Trang 10About the authors
Roman Levchenko is a Microsoft MVP, VMware vExpert, and systems architect working for a
leading international IT integrator He focuses mainly on Microsoft technologies, including WindowsServer, System Center, PowerShell, and Azure Furthermore, he is certified as Microsoft MCSE,MCSA, MCS, MCITP, and VMware VCP6-DCV As a technical reviewer, he has also participated inthe making of some recent and well-known books by Manning He runs his own blog, and you canfollow him on Twitter at @rlevchenko to keep in touch and receive the latest news
I am grateful to everyone with whom I have had the pleasure to work during this project: the team
at Packt who found me and offered to take up the writing; Edvaldo Alessandro Cardoso, the author
of the previous editions, for being a technical reviewer together with Tomica Kaniski I have
worked nonstop on the book for the last few months and couldn’t survive without my family—
thanks a ton for your support and love.
Edvaldo Alessandro Cardoso is a former Microsoft MVP, international speaker, author, evangelist,
and a subject matter expert in cloud, virtualization, management, and identity, working for Microsoft
as a secure infrastructure architect for Asia Pacific, Greater China, India, and Japan
He has more than 27 years of experience in the IT industry working with LBDMs, building trust,
demonstrating business value, solving complex business problems, and transforming business strategyinto technology utilizing existing and innovative technologies He is a reviewer on this book
It is always a challenge to maintain a work-life balance and I would like to thank my wife,
Daniele, and my kids, Nicole, Lucas, and Matheus for their tremendous support, and for always pushing me to achieve my best.
Since the last edition, VMM evolved with some important new features and I would like to
acknowledge the great work that Roman Levchenko did by updating the book and getting it to its 3rd edition.
Trang 11About the reviewer
Tomica Kaniski is a Microsoft MVP for Cloud and Datacenter Management (since 2010) He is fully
engaged with (but not limited to) Microsoft products and technologies In his spare time, he plays thebass guitar and also likes to read and travel He currently works in the telecommunications industryfor VIPnet d.o.o in Croatia (A1 Telekom Austria Group/América Móvil company)
I would like to thank my family for their patience and constant support.
Trang 12Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today Wehave worked with thousands of developers and tech professionals, just like you, to help them sharetheir insight with the global tech community You can make a general application, apply for a specifichot topic that we are recruiting an author for, or submit your own idea
Trang 13Table of Contents
Title Page
Copyright and Credits
System Center 2016 Virtual Machine Manager Cookbook Third Edition Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the color images Conventions used
Get in touch
Reviews
Trang 14How it works
There's more
Windows Azure Pack Service Provider Foundation Service Reporting
Domain controllers Windows Server Update Service – WSUS System Center App Controller
Microsoft Azure Stack System Center components scenarios Planning for high availability
Getting ready How to do it
How it works
There's more
SQL Server VMM library Designing the VMM server, database, and console implementation Getting ready
VM storage placement Management cluster Small environment Lab environments Medium and enterprise environments Private cloud sample infrastructure Hosting environments
New networking features in VMM 2016 New storage features in VMM 2016 See also
Trang 15Specifying the correct system requirements for a real-world scenario
Trang 162 Upgrading from Previous Versions
How it works
There's more
See also Checking the VMM system requirements and preparing for the upgrade
Getting ready How to do it
Uninstalling previous versions of Windows Automated Installation Kit (WAIK) Checking whether Windows Remote Management (WinRM) is started
How it works
There's more
Upgrading to VMM 2016
Getting ready How to do it
Upgrading to VMM 2012 SP1 or to VMM 2012 R2 Upgrading VMM 2012 R2 to VMM 2016
How it works
There's more
Upgrading VMM with configured AlwaysOn Availability Groups Upgrading a highly available VMM 2012 R2 to VMM 2016 Upgrading a VMM console
Upgrading the VMM Self-Service Portal Uninstalling the VMM Self-Service Portal Upgrading the App Controller
See also Re-associating hosts after upgrading
How to do it
How it works
There's more
See also Updating the VMM agents
How to do it
How it works
See also Performing other post-upgrade tasks
How to do it
How it works
Trang 17There's more
Re-adding PXE servers Updating driver packages Relocating the VMM library See also
Trang 183 Installing VMM 2016
Introduction
Creating service accounts
Getting ready How to do it
How it works
There's more
Deploying a Microsoft SQL Server for VMM implementation
Getting ready How to do it
How it works
There's more
How to easily get the SQL configuration file Installing a SQL failover cluster using the configuration file Configuring SQL Server with AlwaysOn AGs
See also Installing VMM dependencies
Getting ready How to do it
Getting ready How to do it
How it works
See also Installing a VMM management server
Getting ready How to do it
How to do it
Trang 19How it works
There's more
Disabling a Run As account
Enabling a disabled Run As account
Deleting a Run As account
Configuring ports and protocols on the host firewall for each VMM component Getting ready
How to do it
See also
Trang 204 Installing a Highly Available VMM Server
Introduction
Installing a highly available VMM management server
Getting ready How to do it
How it works
See also Connecting to a highly available VMM management server by using the VMM console Getting ready
How to do it
How it works
See also Deploying a highly available library server on a file server cluster
Getting ready How to do it
How it works
See also Uninstalling a highly available VMM management server
How to do it
How it works
There's more
Trang 215 Configuring Fabric Resources in VMM
Introduction
Creating host groups
Getting ready How to do it
How it works
There's more
Moving a host group to another location Configuring host group properties See also
Setting up a VMM library
Getting ready How to do it
How it works
There's more
Adding a library share Adding file-based resources to a VMM library share Creating or modifying equivalent objects in the VMM library Marking (creating) objects as equivalent
Modifying equivalent objects See also
How it works
There's more
Creating an IP address pool Automating the network configuration Associating the VMM Logical Network with the physical adapter See also
Networking – Configuring VM Networks and Gateways
Getting ready How to do it
How it works
There's more
Deploying a Network Controller using VMM Adding a Gateway device, a virtual switch extension or network controller in VMM 2016 Validating a Network Controller deployment
See also Networking: Configuring logical switches, port profiles and port classifications
How to do it
How it works
Trang 22There's more
Creating port profiles for VM adapters
Creating a Port Classification
Creating a logical switch
Configuring the Network Adapter for VMs and host management
Applying a logical switch to host network adapters
Converting a standard switch to a logical switch
Creating an iSCSI session on a host
Bringing the storage pools under management and assigning classifications Configuring the allocation method for a storage array
Creating logical units (LUN)
Allocating logical units and storage pools to a host group
Adding Hyper-V hosts in a disjointed namespace
Adding Hyper-V hosts in a perimeter network
Installing the agent on the standalone server Adding perimeter hosts to VMM
Managing the storage pool
Creating cluster shared volumes
Trang 23Setting storage QoS policies See also
Trang 246 Configuring Guarded Fabric in VMM
Deploying a shielded VM from a template Converting an existing VM to a shielded VM How it works
See also
Trang 257 Deploying Virtual Machines and Services
Introduction
Creating private clouds
Getting ready How to do it
How it works
There's more
Creating a guest OS profile Creating an application profile Creating a SQL Server profile See also
Creating user roles in VMM
Getting ready How to do it
Creating and deploying virtual machines
Getting ready How to do it
How it works
Trang 278 Managing VMware ESXi hosts
Introduction
Adding a VMware vCenter Server to VMM
Getting ready How to do it
Importing the VMware self-signed SSL certificate Adding vCenter to VMM
How it works
See also Adding VMware ESXi hosts or host clusters to VMM
Getting ready How to do it
Configuring host BMC settings
How to do it
How it works
See also
Trang 289 Managing Clouds, Fabric Updates, Resources, Clusters, and New Features of VMM 2016
Introduction
Creating Hyper-V clusters
Getting ready Prerequisites for cluster creation using VMM 2016 Prerequisites for fabric configuration
Prerequisites for networking How to do it
How it works
See also Managing fabric updates
Getting ready How to do it
Installing WSUS for VMM 2016 Integrating WSUS with VMM How it works
There's more
Scanning servers for compliance Remediating updates for a standalone server in VMM Remediating updates for a Hyper-V cluster in VMM See also
Configuring Dynamic Optimization and Power Optimization
Getting ready How to do it
Configuring settings for Dynamic Optimization (DO) Configuring settings for Power Optimization
How it works
There's more
Performing live migration of a VM between hosts in two clusters
Trang 29Performing live storage migration between standalone hosts Performing concurrent live migrations
Configuring resource throttling
How to do it
How it works
There's more
Configuring memory throttling
Configuring memory weight
IPAM and VMM Time Synchrony
Deploying Windows Azure Pack for cloud management
Creating virtual SANs
Creating a VM or VM Template with virtual fiber Channel
Trang 30Editing vSAN port assignments
Removing a vSAN
Adding a new vHBA
Editing vHBA WWNN and WWPN Dynamic Settings See also
Trang 3110 Integration with System Center Operations Manager 2016
Introduction
Installing System Center Operations Manager 2016
Getting ready How to do it
How it works
There's more
See also Installing management packs
Getting ready How to do it
How it works
See also Managing discovery and agents
How to do it
How it works
See also Configuring the integration between Operations Manager 2016 and VMM 2016 Getting ready
How it works
There's more
Other Books You May Enjoy
Leave a review - let other readers know what you think
Trang 32System Center 2016 is a comprehensive IT infrastructure, virtualization, and cloud managementplatform With System Center 2016, you can easily and efficiently deploy, manage, and monitor avirtualized infrastructure, services, and applications across multiple hypervisors, as well as publicand private cloud infrastructures, to deliver flexible and cost-effective IT services for your business
This book has plenty of recipes to help you design, plan, and improve Virtual Machine Manager(VMM) deployment; integrate and manage the fabric (compute, storage, network controller, gateway,and networking), services, and resources; deploy different types of clusters; configure integrationwith the operations manager and Windows Azure Pack; and carry out vital tasks quickly and easily
Trang 33Who this book is for
This book is essentially intended at system engineers, solution architects, administrators and anyonewho wants to learn and master VMM 2016 If you are not familiar with VMM, don't worry Start fromthe beginning, and the book will also help you to get insight into the virtualization platform, its
management, and other techniques related to the private cloud
Trang 34What this book covers
Chapter 1, VMM 2016 Architecture, provides an understanding of the VMM modular architecture,
which is useful when designing VMM and troubleshooting deployment This chapter also covers allthe requirements that must be satisfied to make a private cloud
Chapter 2, Upgrading from Previous Versions, walks you through all the necessary steps to upgrade the
previous version of VMM to the new VMM 2016, covering its database, highly available
configurations, and post-upgrade tasks
Chapter 3, Installing VMM 2016, focuses on deploying VMM and its dependencies It also gives plenty
of tips and tricks to install and automate VMM and SQL Server deployments in both Windows ServerCore and Full environments
Chapter 4, Installing a High Available VMM Server, dives into more advanced VMM configuration,
and provides an understanding of how VMM has become a critical part of the private cloud
infrastructure You will also learn how to make a highly available library server and VMM
configuration database
Chapter 5, Configuring Fabric Resources in VMM, discusses building a new fabric in VMM by
configuring compute, storage, and networking resources It starts by adding host groups and ends bycreating a hyper-converged cluster with Storage Spaces Direct and Hyper-V It also covers the
deployment of a network controller providing a good starting point for network virtualization
implementation
Chapter 6, Configuring Guarded Fabric in VMM, walks you through the recipes to help protect
confidential data by deploying new shielded VMs as a part of a Guarded Fabric consisting of
Guarded Hosts and a Host Guardian Service It also discusses how to convert existing VMs to
shielded and manage them through VMM
Chapter 7, Deploying Virtual Machines and Services, provides information to help the administrator to
create, deploy, and manage private clouds, virtual machines, templates, and services in VMM 2016;
it provides recipes to assist you in getting the most of our deployment
Chapter 8, Managing VMware ESXi Hosts, shows you how to manage and make VMware resources
available to private cloud deployments It also covers converting VMware machines to Hyper-V(V2V), deploying virtual machines and templates, all from the VMM console
Chapter 9, Managing Clouds, Fabric Updates, Resources, Cluster and the New Features of 2016,
covers other new features of VMM 2016 such as Cluster OS Rolling upgrade and Production
Checkpoints You will also learn how to integrate VMM 2016 with Windows Azure Pack for VMcloud management
Trang 35Chapter 10, Integration with System Center Operations Manager 2016, guides you through the steps
required to complete integration of SCOM 2016 with VMM in order to enable monitoring of theprivate cloud infrastructure
Trang 36To get the most out of this book
This book assumes a medium level of expertise on Windows Server and Hyper-V, basic knowledge
on cloud computing and networking, and a moderate experience with PowerShell To evaluate all therecipes in the book, you will need System Center 2016 Virtual Machine Manager, SQL Server (2016version is used throughout the book), as a minimum requirement The book also covers integrationwith VMware vCenter 6.0; therefore, you need to have it deployed beforehand Although the recipesprovide exceptional step-by-step guides, prepare Windows Azure Pack, Service Provider
Foundation, and System Center Operations Manager 2016 media files at least
Actually, some of the chapters were made in Azure, and you can also use public IaaS services and itsfree trial to deploy and check some of the explained scenarios In addition, Azure is required if youplan to protect virtual machines via the Azure Site Recovery service
Trang 37Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book Youcan download it here: https://www.packtpub.com/sites/default/files/downloads/SystemCenter2016VirtualMachineManagerCookb ookThirdEdition_ColorImages.pdf
Trang 38Conventions used
There are a number of text conventions used throughout this book
CodeInText: Indicates code words in text, database table names, folder names, filenames, file
extensions, pathnames, dummy URLs, user input, and Twitter handles Here is an example: "In
addition, it will add the ApplicationFrameworks folder to the library share."
A block of code is set as follow
;SQL Server 2016 Configuration File
Any command-line input or output is written as follows:
Set-ItemProperty -Path 'HKLM:SoftwareMicrosoftMicrosoft
System Center Virtual Machine Manager ServerSetup' -Name
VmmServicePrincipalNames -Value "SCVMM/vmm-mgmt01,SCVMM/vmm-
mgmt01.rllab.com"
Bold: Indicates a new term, an important word, or words that you see onscreen For example, words
in menus or dialog boxes appear in the text like this Here is an example: "Launch the SQL Serversetup and choose the New SQL Server failover cluster installation option."
Warnings or important notes appear like this.
Tips and tricks appear like this.
Trang 39Get in touch
Feedback from our readers is always welcome
General feedback: Email feedback@packtpub.com and mention the book title in the subject of your
message If you have questions about any aspect of this book, please email us at questions@packtpub.com
Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do
happen If you have found a mistake in this book, we would be grateful if you would report this to us.Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Formlink, and entering the details
Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be
grateful if you would provide us with the location address or website name Please contact us at
copyright@packtpub.com with a link to the material
If you are interested in becoming an author: If there is a topic that you have expertise in and you
are interested in either writing or contributing to a book, please visit authors.packtpub.com
Trang 40Please leave a review Once you have read and used this book, why not leave a review on the sitethat you purchased it from? Potential readers can then see and use your unbiased opinion to makepurchase decisions, we at Packt can understand what you think about our products, and our authorscan see your feedback on their book Thank you!
For more information about Packt, please visit packtpub.com