Hyper-V 2016 Best Practices
By Benedict Berger and Romain Serre
()
About this ebook
Related to Hyper-V 2016 Best Practices
Related ebooks
Enterprise PowerShell Scripting Bootcamp Rating: 0 out of 5 stars0 ratingsWindows Server 2012 Unified Remote Access Planning and Deployment Rating: 0 out of 5 stars0 ratingsMastering VMware Horizon 7 - Second Edition Rating: 0 out of 5 stars0 ratingsMicrosoft Hyper-V PowerShell Automation Rating: 0 out of 5 stars0 ratingsLearning PowerShell DSC Rating: 0 out of 5 stars0 ratingsMicrosoft Hyper-V Cluster Design Rating: 0 out of 5 stars0 ratingsLearning Windows Server Containers Rating: 0 out of 5 stars0 ratingsVMware vSphere Design Essentials Rating: 0 out of 5 stars0 ratingsDesigning Hyper-V Solutions Rating: 0 out of 5 stars0 ratingsInstant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to Rating: 0 out of 5 stars0 ratingsLearning Veeam® Backup & Replication for VMware vSphere Rating: 5 out of 5 stars5/5VMware vRealize Orchestrator Essentials Rating: 0 out of 5 stars0 ratingsINSTANT Windows PowerShell Rating: 0 out of 5 stars0 ratingsMicrosoft DirectAccess Best Practices and Troubleshooting Rating: 5 out of 5 stars5/5IP Addressing and Subnetting INC IPV6: Including IPv6 Rating: 0 out of 5 stars0 ratingsVMware vSphere Troubleshooting Rating: 0 out of 5 stars0 ratingsManaging Virtual Infrastructure with Veeam® ONE™ Rating: 0 out of 5 stars0 ratingsGetting Started with VMware Virtual SAN Rating: 0 out of 5 stars0 ratingsWindows Server 2012 Hyper-V: Deploying Hyper-V Enterprise Server Virtualization Platform Rating: 0 out of 5 stars0 ratingsMicrosoft Azure IaaS Essentials Rating: 4 out of 5 stars4/5Building VMware Software-Defined Data Centers Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Configuration Manager High availability and performance tuning Rating: 0 out of 5 stars0 ratingsGetting Started with Red Hat Enterprise Virtualization Rating: 0 out of 5 stars0 ratingsHybrid Cloud Management with Red Hat CloudForms Rating: 0 out of 5 stars0 ratingsPowerShell A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsWindows Server 2012 Automation with PowerShell Cookbook Rating: 0 out of 5 stars0 ratingsPractical Powershell Office 365 Exchange Online Learn to Use Powershell More Efficiently and Effectively With Exchange Online Rating: 0 out of 5 stars0 ratingsMastering Windows Server 2016 Hyper-V Rating: 5 out of 5 stars5/5
System Administration For You
Linux Bible Rating: 0 out of 5 stars0 ratingsCybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsPowerShell: A Comprehensive Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Networking for System Administrators: IT Mastery, #5 Rating: 5 out of 5 stars5/5Practical Data Analysis Rating: 4 out of 5 stars4/5Bash Command Line Pro Tips Rating: 5 out of 5 stars5/5The Complete Powershell Training for Beginners Rating: 0 out of 5 stars0 ratingsLearn PowerShell Scripting in a Month of Lunches Rating: 0 out of 5 stars0 ratingsLinux Command-Line Tips & Tricks Rating: 0 out of 5 stars0 ratingsLearn Windows PowerShell in a Month of Lunches Rating: 0 out of 5 stars0 ratingsGit Essentials Rating: 4 out of 5 stars4/5Wordpress 2023 A Beginners Guide : Design Your Own Website With WordPress 2023 Rating: 0 out of 5 stars0 ratingsLearn SQL Server Administration in a Month of Lunches Rating: 0 out of 5 stars0 ratingsMastering Bash Rating: 5 out of 5 stars5/5Mastering Windows PowerShell Scripting Rating: 4 out of 5 stars4/5Improve your skills with Google Sheets: Professional training Rating: 0 out of 5 stars0 ratingsLearning Linux Shell Scripting Rating: 4 out of 5 stars4/5PowerShell: A Beginner's Guide to Windows PowerShell Rating: 4 out of 5 stars4/5Linux Commands By Example Rating: 5 out of 5 stars5/5ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell Rating: 5 out of 5 stars5/5
Reviews for Hyper-V 2016 Best Practices
0 ratings0 reviews
Book preview
Hyper-V 2016 Best Practices - Benedict Berger
Table of Contents
Hyper-V 2016 Best Practices
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Accelerating Hyper-V Deployment
Why Hyper-V projects fail
Planning your environment
Preparing your host systems
About Nano Server
Creating unattended installation files
Adding basic components
Which edition to install
Decide whether to GUI
Hyper-V hosts in Active Directory domains
Activating Hyper-V features
Post-installation tasks
Antivirus on a Hyper-V host
Setting the pagefile
Creating virtual machines
Summary
2. Deploying Highly Available Hyper-V Clusters
Preparing for a high availability scenario
Planning an HA environment
Overview of the failover cluster
Failover cluster prerequirements
Hardware requirements
Network design
Storage design
Server and software requirements
Implementing failover clusters
Quorum configuration
Live migration configuration
VM start ordering
Node fairness
Cluster-Aware Updating
Guest clustering
Network design for a guest cluster
Storage design for a guest cluster
Summary
3. Backup and Disaster Recovery
Protecting a Hyper-V environment
Hyper-V Replica
Enabling Hyper-V Replica
Preparing the first host
Preparing additional hosts
Activate VM replication
Monitoring Hyper-V Replica
Hyper-V Replica testing and failover
Azure Site Recovery
Replica workloads
Storage Replica
Backup of virtual machines
Microsoft Azure Backup
Summary
4. Storage Best Practices
Storage overview
SANs versus Storage Spaces
NTFS versus Resilient File System (ReFS)
Storage Spaces and tiering
Storage Spaces Direct
Storage Spaces direct - disaggregated model
Storage spaces direct: hyperconverged model
Storage devices configuration
Multi-Resilient virtual disks
Working with virtual disks
Cluster shared volumes
Checkpoints
Data deduplication
Storage quality of service
Multipath I/O
The iSCSI target
Summary
5. Network Best Practices
Networking overview
Virtual switch
External vSwitch
Internal vSwitch
Private vSwitch
Virtual interface
NIC Teaming
Switch Embedded Teaming
Converged networking
Storage network
SMB Direct
Advanced networking options
Network controller
IPAM
Summary
6. Highly Effective Hyper-V Design
Cautious network selection
Hyper-V cluster with SAN or NAS
iSCSI architecture overview
Fibre channel architecture overview
Network configuration
Storage configuration
Operating system configuration
iSCSI configuration
SAN configuration
Storage Spaces Direct design
Network design
Disaggregated model
Storage nodes configuration
Compute nodes configuration
Hyperconverged model
Summary
7. Hyper-V Performance Tuning
Measuring performance
Performance counter
Disk performance
Memory performance
Network performance
RDMA and SMB Direct performance
Processor performance
Performance tuning
Hyper-V power options and green IT
Hardware-tuning options
Network-hardware-tuning options
Receive Side Scaling (RSS)
Single Root IO Virtualization
Other offload capabilities
Using IPv6 with Hyper-V
Storage tuning options
Offloaded Data Transfer
Shutdown tuning options
Setting the shutdown timeout
Hyper-V benchmarking
Hyper-V for virtual desktops
Using RemoteFX
Common configuration mistakes
Design misjudged
Network teaming
Storage configuration
Operating system maintenance
Summary
8. Management with System Center and Azure
Microsoft System Center
System Center Virtual Machine Manager
System Center Operations Manager
System Center Service Manager
System Center Orchestrator
System Center Data Protection Manager
Automatic System Center deployment
Microsoft Azure
Azure Site Recovery
Azure Backup
Log Analytics
Azure Automation
Summary
9. Migration to Hyper-V 2016
Upgrading single Hyper-V hosts
Importing virtual machines
Exporting virtual machines
Cross-version live migration
Copy cluster roles wizard
Rolling cluster upgrade
Migrating VMware virtual machines
System Center VMM
Microsoft Virtual Machine Converter
Microsoft Automation Toolkit
MAT powered by Project Shift
Other V2V scenarios
Physical to Virtual conversions
Virtualizing domain controllers
Summary
Hyper-V 2016 Best Practices
Hyper-V 2016 Best Practices
Copyright © 2016 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, and its dealers and distributors will be held liable for any damages caused or alleged to be 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.
First published: November 2014
Second edition: October 2016
Production reference: 1251016
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78588-339-2
www.packtpub.com
Credits
About the Authors
Benedict Berger was the author of the first edition of this book (Hyper-V Best Practices by Packt Publishing). He works as a technology solutions professional at Microsoft. He blogs on the German Virtualization Blog (http://blogs.technet.com/b/germanvirtualizationblog/) and on his personal blog (http://blog.benedict-berger.de).
Romain Serre works in Lyon as a senior consultant. He is focused on Microsoft Technology, especially on Hyper-V, System Center, Storage, networking, and Cloud OS technology such as Microsoft Azure or Azure Stack. He is an MVP and a certified Microsoft Certified Solution Expert (MCSE Server Infrastructure and Private Cloud), on Hyper-V and on Microsoft Azure (implementing a Microsoft Azure solution). He blogs at http://www.tech-coffee.net.
About the Reviewer
Romeo Mlinar has been working as the head of the IT department at an IT company in Zagreb, Croatia. Professionally, he is connected with computer technology for more than a decade. He is passionately devoted to Microsoft products and technology, such as, System Center, Team Foundation Server, planning and design of Active Directory, as well as Windows Server services, devoting special attention to virtualization (Hyper-V), which is his recent preoccupation. He holds a large number of Microsoft industrial certifications, such as MCSA, MCSE, MCDST, MCTS, MCDBA, MCITP, MCS: Server Virtualization, MCSE: Private Cloud, MCSE: Server Infrastructure, and so on. Since 2012, he is a Microsoft Most Valuable Professional (MVP) for Cloud and Datacenter Management [Hyper-V]. He is a regular speaker at various IT conferences regionally and abroad. Also, he is an IT Pro User Group Zagreb lead. He spends his free time with people from the IT world, acquiring new knowledge, eagerly sharing it with others, while at the same time enjoying his life with his family. He blogs at http://blog.mlinar.biz/.
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? 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 more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Preface
Today we virtualize datacenters to gain flexibility, scalability, high-end performance, and ease of management. Moreover, virtualization has brought a high level of consolidation. This enables us to reduce the footprint of the datacenter and save power. For some years, we have wanted to manage our datacenter using the Cloud model. We wanted to create server quickly, improve the performance of this machine on the fly, and delete it when we don't need it anymore.
All of this can be done, thanks to hypervisor. There are several hypervisors such as VMware ESX, Citrix XenServer, or Microsoft Hyper-V. Because this book is called Hyper-V Best Practices, we will focus on Hyper-V.
Microsoft has released a major Windows Server version toward the end of 2016. This book focusses on Hyper-V on Windows Server 2016. A lot of new features have been provided in this new version but several rules can be applied to Hyper-V in a previous release.
This book is not intended to explain you all feature mechanisms included in Hyper-V. To follow this book, some knowledge of Hyper-V is required. However, because Hyper-V doesn't work alone, you also need to know about Failover Cluster, Active Directory, storage, and network.
Fasten your seat belts and welcome to this Hyper-V journey.
What this book covers
Chapter 1, Accelerating Hyper-V Deployment, gives you some tips to automate Hyper-V and VM deployment, because, in a huge environment, you may want to automate some tasks to limit human errors and to save time.
Chapter 2, Deploying Highly Available Hyper-V Clusters, teaches you how to deploy a Hyper-V cluster and how to leverage it to keep your application working, because, in production, you usually want high availability to keep the application working even in cases of incidents.
Chapter 3, Backup and Disaster Recovery, describes how to leverage Windows Server 2016 and Microsoft Azure to back up your workloads and to failover in another room in case of a disaster because companies want to always back up their workloads and make a Disaster Recovery Plan in case a datacenter is out of order.
Chapter 4, Storage Best Practices, introduces some best practices to leverage the best of your underlying storage system because the storage is a significant piece in a virtual environment. Without good storage, you can expect poor performance.
Chapter 5, Network Best Practices, describes some best practices about the network and Hyper-V, because, similar to the storage, the network is a masterpiece for your virtual environment, especially when implementing a software-defined storage system.
Chapter 6, Highly Effective Hyper-V Design, will help you to choose a design for your Hyper-V infrastructure depending on the performance you want and the budget you have.
Chapter 7, Hyper-V Performance Tuning, will help you to reach the performance you expect.
Chapter 8, Management with System Center and Azure, introduces System Center and Microsoft Azure features which work well with Hyper-V because Microsoft has a big ecosystem that can interact with Hyper-V.
Chapter 9, Migration to Hyper-V 2016, will help you to achieve the migration if you are still in Windows Server 2012 R2 or VMware and you want to migrate to Hyper-V 2016.
What you need for this book
This book describes the best practices about Hyper-V included in Windows Server 2016. So all the screenshots, PowerShell cmdlets, and XML files have been tested on this Windows Server version. To follow the indication of this book you need Windows Server 2016.
Moreover, some chapters describe System Center and some features provided by Microsoft Azure. To follow all chapters, you need an Azure subscription and System Center 2016.
Other tools that are introduced are free. So you can easily download them from the Internet.
Who this book is for
If you are working with Hyper-V and want to optimize its performance and effectiveness, this book is for you. This book will help you close the gap between the Hyper-V lab and production environments.
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: Code words in text are shown as follows: The unattended setup uses configurations saved in a precreated unattended.xml file.
A PowerShell cmdlet is set as follows:
New-VM -Name VM01 -Generation 2
An XML file is set as follows:
1.0 encoding=UTF-8
?>
WinPE processorArchitecture=
amd64 publicKeyToken=
31bf3856ad364e35 language=
neutral versionScope=
nonSxS xmlns:wcm=
http://schemas.microsoft.com/WMIConfig/2002/Sta
te xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance">
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: Start the setup of the Windows ADK you downloaded earlier. At the setup prompt, select only Deployment Tools
.
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply e-mail feedback@packtpub.com, and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Downloading the example code
You can download the example code files for this book 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.
You can download the code files by following these steps:
Log in or register to our website using your e-mail address and password.
Hover the mouse pointer on the SUPPORT tab at the top.
Click on Code Downloads & Errata.
Enter the name of the book in the Search box.
Select the book for which you're looking to download the code files.
Choose from the drop-down menu where you purchased this book from.
Click on Code Download.
Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
WinRAR / 7-Zip for Windows
Zipeg / iZip / UnRarX for Mac
7-Zip / PeaZip for Linux
The code bundle for the book is also hosted on GitHub at https://github.com/Hyper-V-2016-Best-Practices/. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Downloading the color images of this book
We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/HyperV2016BestPractices_ColorImages.pdf.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.
To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at copyright@packtpub.com with a link to the suspected pirated material.
We appreciate your help in protecting our authors and our ability to bring you valuable