Windows server 2016 hyper v cookbook

Patrick Lownds is a Master level Solution Architect working for TS Consulting WW, in the Cloud Professional Services practice, for Hewlett-Packard Enterprise, and is based out of London (UK). Patrick is also a current Microsoft Most Valuable Professional (MVP) for Cloud and Datacenter Management (CDM) and has worked in the IT industry since 1988 on various technologies, including Windows Server Hyper-V, System Center, Windows Azure Pack, and Microsoft Azure. In his current role, he works mainly with the most recent versions of Windows Server, Microsoft Azure Stack, and Microsoft Azure. Although, Patrick’s current area of personal interest is Windows Containers and Docker. Patrick has participated in the Windows Server 2016 and System Center 2016 Continuous Customer Engagement Program (CCEP) and Azure Stack Early Adoption Initiative Program. Patrick has previously contributed to a number of books entitled Mastering Hyper-V Deployment, Microsoft Private Cloud Computing and Windows Server 2012 Hyper-V Installation and Configuration Guide. All of which were published by Wiley and Sybex. He blogs and tweets in his spare time and can be found on Twitter as @patricklownds. When not consulting, speaking, writing or researching, he can be found on a rugby pitch teaching contact rugby to children of various ages.

Charbel Nemnom is a Microsoft Most Valuable Professional (MVP) for Cloud and Datacenter Management (CDM) and a Technical Evangelist for 5nine Software and Unidesk Coporation. Charbel has extensive Infrastructure expertise and a vast knowledge of a variety of Microsoft and VMware technologies. He has over fifteen years of professional experience in the Information Technology field and guiding technical teams to optimize the performance of mission-critical enterprise systems. He has worked as a system and network engineer, senior consultant, and as regional technical manager and has a history of successful enterprise projects in the IT, banks, education, and publishing sectors. He works as a Virtualization Consultant and Architect in the MENA region. He authored Getting Started with Windows Nano Server, co-authored Windows Server 2016 Hyper-V Cookbook, Second Edition, and reviewed Hyper-V Best Practices books (Packt Publishing). Charbel also runs his blog at (https://charbelnemnom.com) where he blogs frequently about Software Defined Datacenter and Cloud Computing. Charbel is Microsoft, Cisco, and VMware certified and holds the following credentials: VCA-DCV, MCP, MCSA, MCTS, MCITP, MCS, MCSD, MCSE, CCNP, ITIL®, and PMP®. You can also follow him on Twitter @CharbelNemnom.

Leandro Carvalho works as Microsoft specialist with products such as Windows Server, Hyper-V, Public and Private Cloud, Office 365, Security, System Center, Exchange, Sharepoint, Project Server and client systems, in addition to helping the community constantly with articles, forums, videos and lectures about his passion: Microsoft Virtualisation and Cloud Computing. He has been speaking in large events such as MMS, Teched Australia, MVP Pro Speaker Series and many others and is the author of the Windows Server 2012 Hyper-V Cookbook. Leandro has been working as Microsoft trainer since 2006 and has obtained the certifications Certified Ethical Hacker/MCP/MCSA+M+S/MCSE+S/MCTS/MCITP/MCT and MVP. In 2009 he received the MCT Awards Latin America Trainer of the year and since 2009 the Microsoft MVP as a Virtualisation Specialist.

Windows Server 2016 Hyper-V Cookbook

Windows Server 2016 Hyper-V Cookbook: Save time and resources by getting to know the best practices and intelligence from industry experts
, Second Edition

Subscription

Free Trial

Renews at $19.99p/m

What do you get with Print?


Instant access to your digital copy whilst your Print order is Shipped


Paperback book shipped to your preferred address


Redeem a companion digital copy on all Print orders


Access this title in our online reader with advanced features


DRM FREE — Read whenever, wherever and however you want

View table of contents


Preview Book

Chapter 2. Migrating and Upgrading Physical and Virtual Servers

In this chapter, we will cover the following recipes:

  • Performing an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016
  • Exporting and importing virtual machines
  • Migrating virtual machines and updating their Integration Services
  • Migrating virtual machines using Cross Version Shared Nothing Live Migration
  • Migrating virtual machine storage using storage migration
  • Converting VHD files to VHDX
  • Upgrading the VM configuration version
  • Converting physical computers to virtual machines

Introduction

Microsoft has excelled once again with Windows Server 2016 and its new version of Hyper-V. There are new and exciting features, such as Nested Virtualization, Nano Server, Shielded VMs, Production Checkpoints, and many more exciting features that focus on improving the virtualization experience, increasing mobility, scalability, and reliability of your datacenters. With all of them together, we can now say that Windows Server 2016 provides the ultimate cloud platform. This means that you will have much more flexibility, automation, and better management experience of virtual and physical servers in creating your hybrid cloud infrastructure.

Having said that, the migration plan of the existing environment will still need to happen. You will probably want to start using all these features right away. However, the upgrade process needs attention, planning, and special configurations.

With Hyper-V version 5, virtual machines, upgrades, and migrations are even easier than they were…

Performing an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016

One of the easiest ways to adopt Windows Server 2016 in an existing environment is via an in-place upgrade mechanism. You might have a scenario with a relatively fresh installation of Windows Server 2012 R2 with Hyper-V, where you want to update to Windows Server 2016 Hyper-V on the same hardware. In cases where you have Hyper-V running with all the applications, drivers, and hardware on the host computer being supported on a Windows Server 2016 platform, you can use the in-place upgrade option for upgrading. This will guarantee that your host computer will be easily upgraded to Windows Server 2016 with all the configuration and files preserved.

However, in cases where applications, drivers, or even hardware might not work on Windows Server 2016, or the old installation of Windows Server 2012 R2 has had lots of modifications caused by uninstalled applications, the best way would be via migration to a new operating…

Exporting and importing virtual machines

If you don’t want to perform an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016, the migration from an old Hyper-V version to Windows Server 2016 is not so complicated either. One option to consider, especially for VMs that run in an isolated environment, is to use export and import to migrate these VMs.

You need to install a new server with Windows Server 2016, enable the Hyper-V role, export the virtual machine from the old server, and import them back to your new server. That’s it! This is the same process that we have been using since the first version of Hyper-V in Windows Server 2008 but with a fairly recent twist.

Earlier versions of Hyper-V had some limitations, for example, you could import only a virtual machine that had been exported before and there were lots of other issues regarding different configurations in the source and destination host that could trip you up.

The next few steps will guide you through…

Migrating virtual machines and updating their Integration Services

Most people think that the process to migrate a virtual machine from one host that is running a previous version of Hyper-V, to another one with a newer version, is simply done by the export and import process, as shown in the previous task. In the past this would have been wrong, but this is the experience that Microsoft wants to provide for Windows Server 2016. During previous migrations, you may have noticed some strange behavior in the VMs you migrated, such as mouse integration, slow performance, and some other issues.

With Windows Server 2016, Microsoft has changed its strategy when it comes to Integration Services, no longer are the Integration Service versions so heavily matched to the host version. The focus is now on applying updates to the VM if there is a requirement to update the VM. This has the added benefit that the person responsible for managing the Hyper-V host isn’t necessarily responsible for updating…

Migrating virtual machine using Cross Version Shared Nothing Live Migration

Cross Version Shared Nothing Live Migration provides you with the capability to migrate your VMs to a Windows Server 2016 Hyper-V host, via nothing more than a shared network, without the VMs experiencing any downtime. The nice thing about Cross Version Shared Nothing Live Migration, is that it provides a mechanism to non-disruptively upgrade your Hyper-V host.

Note

You should know that under certain circumstances, that this is a one-way migration path, when migrating directly from a Windows 2012 host to Windows 2016 or when the VM configuration version has been upgraded from version 5.0 to version 7.0, using Update-VMVersion as a post Windows 2016 migration activity. Cross Version Shared Nothing Live Migration only allows for live migration in the opposite direction if the Hyper-V host is running Windows 2012 R2.

Given the increased cadence around the Windows operating system, Microsoft introduced features like Cross…

Migrating virtual machine storage using Storage Migration

In a hybrid cloud environment, with thousands of physical and virtual servers, it is normal to face some problems or limitations that require reallocating a virtual machine to another location.

Let’s list some examples of the issues you might encounter:

  • Hardware limitation
  • Storage upgrade and maintenance
  • Poor VM performance (I/O)
  • Configuration mistakes

Windows Server 2016 Hyper-V includes a feature to help you in these scenarios called storage migration, providing the ability to reallocate the virtual machine storage while it’s running.

This recipe will walk through all the details and steps to show you how to move the virtual machine storage using the storage migration.

Getting ready

The storage migration feature copies the current storage to the destination location, but it keeps the source files until the migration completes. Make sure that you have enough disk space when reallocating the VM storage within the same partition…

Introduction


Microsoft has excelled once again with Windows Server 2016 and its new version of Hyper-V. There are new and exciting features, such as Nested Virtualization, Nano Server, Shielded VMs, Production Checkpoints, and many more exciting features that focus on improving the virtualization experience, increasing mobility, scalability, and reliability of your datacenters. With all of them together, we can now say that Windows Server 2016 provides the ultimate cloud platform. This means that you will have much more flexibility, automation, and better management experience of virtual and physical servers in creating your hybrid cloud infrastructure.

Having said that, the migration plan of the existing environment will still need to happen. You will probably want to start using all these features right away. However, the upgrade process needs attention, planning, and special configurations.

With Hyper-V version 5, virtual machines, upgrades, and migrations are even easier than they were…

Performing an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016


One of the easiest ways to adopt Windows Server 2016 in an existing environment is via an in-place upgrade mechanism. You might have a scenario with a relatively fresh installation of Windows Server 2012 R2 with Hyper-V, where you want to update to Windows Server 2016 Hyper-V on the same hardware. In cases where you have Hyper-V running with all the applications, drivers, and hardware on the host computer being supported on a Windows Server 2016 platform, you can use the in-place upgrade option for upgrading. This will guarantee that your host computer will be easily upgraded to Windows Server 2016 with all the configuration and files preserved.

However, in cases where applications, drivers, or even hardware might not work on Windows Server 2016, or the old installation of Windows Server 2012 R2 has had lots of modifications caused by uninstalled applications, the best way would be via migration to a new operating…

Exporting and importing virtual machines


If you don’t want to perform an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016, the migration from an old Hyper-V version to Windows Server 2016 is not so complicated either. One option to consider, especially for VMs that run in an isolated environment, is to use export and import to migrate these VMs.

You need to install a new server with Windows Server 2016, enable the Hyper-V role, export the virtual machine from the old server, and import them back to your new server. That’s it! This is the same process that we have been using since the first version of Hyper-V in Windows Server 2008 but with a fairly recent twist.

Earlier versions of Hyper-V had some limitations, for example, you could import only a virtual machine that had been exported before and there were lots of other issues regarding different configurations in the source and destination host that could trip you up.

The next few steps will guide you through the process…

Page
1
of 10

Description

Hyper-V 2016 is full of new features and updates. The second of our best-selling Hyper-V books, the Windows Server 2016 Hyper-V Cookbook has it all covered. Brimming with expert solutions and techniques, you?ll have everything you need to master virtualization and Hyper-V Manager.
This Hyper-V book is designed to help advanced-level administrators benefit fully from the new Windows Server. With over 80 hands-on recipes, the Hyper-V Cookbook gives you tips, tricks and best practices to deploy, maintain and upgrade your virtual machines.


What you will learn

  • With this book, you?ll learn about:
  • Installing and managing Hyper-V Server in Full, Server Core, and Nano Server
  • Migrating and upgrading physical and virtual machines
  • Configuring network, memory, security, and auditing settings for virtual machines
  • High availability and disaster recovery
  • Saving time and money with PowerShell automation
  • The new features around network and nested virtualization, distributed storage QoS, Hyper-V Replica, and much more
  • Monitoring, reporting, and troubleshooting with Hyper-V 2016 best practices
  • Deploying and automating multiple VMs and support Windows Hyper-V 2016 clusters through different installation methods


Estimated delivery fee
Deliver to United States

Economy delivery
10 — 13 business days


Free

$6.95

Premium delivery
6 — 9 business days


$21.95


(Includes tracking information)

Publication date :
Jan 18, 2017

Length:
524 pages

Edition :
2nd

Language :
English

ISBN-13 :
9781785884313

What do you get with Print?


Instant access to your digital copy whilst your Print order is Shipped


Paperback book shipped to your preferred address


Redeem a companion digital copy on all Print orders


Access this title in our online reader with advanced features


DRM FREE — Read whenever, wherever and however you want

Estimated delivery fee
Deliver to United States

Economy delivery
10 — 13 business days


Free

$6.95

Premium delivery
6 — 9 business days


$21.95


(Includes tracking information)

Publication date :
Jan 18, 2017

Length:
524 pages

Edition :
2nd

Language :
English

ISBN-13 :
9781785884313

Windows Server 2016 Hyper V Cookbook Second Edition

This is the code repository for Windows Server 2016 Hyper V Cookbook Second Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

##Instructions and Navigation

The code included with this book is meant for use as an aid in performing the exercises and should not be used as a replacement for the book itself.
Used out of context, the code may result in an unusable configuration and no warranty is given.

The code will look like the following:

$VMs = Get-VM * | Where-Object {$_.DynamicMemoryEnabled -eq $false}

Foreach ($VM in $VMs) {
# Memory Demand Before
$VMMemory = Get-VM -Name $VM.Name | `
        Select Name, State,@{Label="CPU Usage %";Expression={$_.CPUUsage}}, `
        @{Label="Assigned Memory MB";Expression={$_.MemoryAssigned/1048576}}, `
        @{Label="Memory Demand MB";Expression={$_.MemoryDemand/1048576}}, MemoryStatus

Write-Output "Current Memory Demand" $VMMemory

If ($VMMemory.'Memory Demand MB' -gt $VMMemory.'Assigned Memory MB') {
   [int64]$RAM = 1MB*($VMMemory.'Assigned Memory MB'+$VMMemory.'Memory Demand MB'+1)
   Set-VM -Name $VMName -MemoryStartupBytes $RAM

   # Memory Demand After
    $VMMemory = Get-VM -Name $VM.Name | `
        Select Name, State,@{Label="CPU Usage %";Expression={$_.CPUUsage}}, `
        @{Label="Assigned Memory MB";Expression={$_.MemoryAssigned/1048576}}, `
        @{Label="Memory Demand MB";Expression={$_.MemoryDemand/1048576}}, MemoryStatus

    Write-Output "Updated Memory Demand" $VMMemory
    }

} 


Book
description

Save time and resources by getting to know the best practices and intelligence from industry experts

About This Book

  • This book helps you gain a fresh perspective through a recipe-based approach on the new Microsoft Server 2016 Hyper-V

  • Over 80 recipes to help you master the administrative tasks of Hyper-V and get to grips with advanced solutions and techniques for virtualization

  • These hands-on advanced recipes will help you deploy, maintain, and upgrade Hyper-V virtual machines

  • Who This Book Is For

    This book is for Hyper-V administrators who are looking to take advantage of all exciting new features that Microsoft Server 2016 Hyper-V has to offer.

    What You Will Learn

  • Installing and managing Hyper-V Server in Full, Server Core, and Nano Server

  • Migrating and upgrading physical and virtual machines

  • Configuring network, memory, security, and auditing settings for virtual machines

  • High availability and disaster recovery

  • Saving time and money with PowerShell automation

  • The new features around network and nested virtualization, distributed storage QoS, Hyper-V Replica, and much more

  • Monitoring, reporting, and troubleshooting with Hyper-V 2016 best practices

  • Deploying and automating multiple VMs and support Windows Hyper-V 2016 clusters through different installation methods

  • In Detail

    Hyper-V 2016 is full of new features and updates. The second of our best-selling Hyper-V books, the Windows Server 2016 Hyper-V Cookbook has it all covered. Brimming with expert solutions and techniques, you’ll have everything you need to master virtualization and Hyper-V Manager.

    This Hyper-V book is designed to help advanced-level administrators benefit fully from the new Windows Server. With over 80 hands-on recipes, the Hyper-V Cookbook gives you tips, tricks and best practices to deploy, maintain and upgrade your virtual machines.

    This advanced-level book provides step-by-step recipes on real-world examples so you can get practical, hands-on experience of the subjects.

    Brief content visible, double tap to read full content.

    Full content visible, double tap to read brief content.

    Charbel Nemnom is a Senior Cloud Architect, Information Security Manager, and Microsoft Most Valuable Professional (MVP). He holds multiple certifications, including Microsoft Certified Trainer (MCT), Certified Cloud Security Professional (CCSP), and Certified Information Security Manager (CISM). With over 21 years of extensive IT and cloud infrastructure experience, Charbel has led technical teams to optimize mission-critical enterprise systems. His expertise encompasses complex system design, network architecture, business continuity, and cloud security.

    As an accomplished author and speaker, Charbel frequently shares insights on cloud computing, cybersecurity, and IT certifications. He is passionate about leveraging the latest cloud platform solutions to drive innovation and efficiency.

    Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии
  • Как посмотреть историю копирования windows 10
  • Защита на основе репутации windows 10 что это
  • Удаленные файлы не попадают в корзину windows 10
  • Как свернуть текущее окно windows
  • Как запаролить папку с файлами в windows 10