Professional Documents
Culture Documents
(Download PDF) Windows Server 2016 Hyper V Cookbook 2Nd Edition Charbel Nemnom Patrick Lownds Leandro Carvalho Online Ebook All Chapter PDF
(Download PDF) Windows Server 2016 Hyper V Cookbook 2Nd Edition Charbel Nemnom Patrick Lownds Leandro Carvalho Online Ebook All Chapter PDF
(Download PDF) Windows Server 2016 Hyper V Cookbook 2Nd Edition Charbel Nemnom Patrick Lownds Leandro Carvalho Online Ebook All Chapter PDF
https://textbookfull.com/product/windows-server-2016-cookbook-
second-edition-krause/
https://textbookfull.com/product/windows-
server-2016-unleashed-1st-edition-coll/
https://textbookfull.com/product/mcsa-windows-server-2016-study-
guide-exam-70-740-2nd-edition-william-panek/
https://textbookfull.com/product/hands-on-microsoft-windows-
server-2016-second-edition-edition-palmer/
Introducing Windows Server 2016 Technical Preview 1st
Edition Microsoft Press
https://textbookfull.com/product/introducing-windows-
server-2016-technical-preview-1st-edition-microsoft-press/
https://textbookfull.com/product/mcsa-windows-server-2016-study-
guide-exam-70-742-panek/
https://textbookfull.com/product/mcsa-windows-server-2016-study-
guide-exam-70-741-panek/
https://textbookfull.com/product/windows-
server-2019-administration-fundamentals-a-beginners-guide-to-
managing-and-administering-windows-server-environments-2nd-
edition-bekim-dauti/
https://textbookfull.com/product/implementing-directaccess-with-
windows-server-2016-1st-edition-richard-m-hicks-auth/
Windows Server 2016 Hyper-V Cookbook -
Second Edition
Table of Contents
Windows Server 2016 Hyper-V Cookbook - Second Edition
Credits
About the Authors
Acknowledgments
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Installing and Managing Hyper-V in Full, Server Core, and Nano Server
Introduction
Verifying Hyper-V requirements
Getting ready
How to do it...
How it works...
See also
Enabling the Hyper-V role
Getting ready
How to do it...
How it works...
There's more...
Installing Hyper-V using Windows PowerShell
See also
Installing Windows Server 2016, Microsoft Hyper-V Server 2016, and Nano Server
Getting ready
How to do it...
Create a Nano Server Image using PowerShell
Create a Nano Server image using Nano Server Image Builder
Deploy Nano Server on a physical machine
How it works...
See also
Managing a Server Core installation using sconfig
Getting ready
How to do it...
How it works...
See also
Remotely managing a Nano Server installation
Getting ready
How to do it...
Managing Nano Server using PowerShell
Getting ready
How to do it
How it works
Managing Nano Server using Server Management Tools – SMT
Getting ready
How to do it...
How it works...
See also
Configuring Hyper-V post-installation settings
Getting ready
How to do it...
How it works...
See also
2. Migrating and Upgrading Physical and Virtual Servers
Introduction
Performing an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016
Getting ready
How to do it…
How it works…
Why Windows Update?
See also
Exporting and importing virtual machines
Getting ready
How to do it…
How it works…
See also
Migrating virtual machines and updating their Integration Services
Getting ready
How to do it…
How it works…
There's more…
See also
Migrating virtual machine using Cross Version Shared Nothing Live Migration
Getting ready
How to do it…
How it works…
Configuring constrained delegation to authenticate live migrations
See also
Migrating virtual machine storage using Storage Migration
Getting ready
How to do it…
How it works…
There's more…
Moving all the virtual machines to a new storage location
Converting VHD files to VHDX
Getting ready
How to do it…
How it works…
There's more…
See also
Upgrading the VM configuration version
Getting ready
How to do it…
How it works…
There's more…
See also
Converting physical computers to virtual machines
Getting ready
How to do it…
How it works…
There's more…
Converting physical computers to virtual machines using the command line
3. Managing Disk and Network Settings
Introduction
Creating and adding virtual hard disks
Getting ready
How to do it…
How it works…
There's more…
Online resizing for VHDX virtual hard disk
Adding a pass-through disk for a virtual machine
Creating virtual machines on file servers
See also
Configuring IDE and SCSI controllers
Getting ready
How to do it…
How it works…
There's more…
Configuring the Storage Quality of Service
Getting ready
How to do it…
How it works…
Minimum IOPS
Maximum IOPS
There's more…
See also
Configuring and adding Virtual Fibre Channel storage
Getting ready
How to do it…
How it works…
Creating resource pools
Getting ready
How to do it…
How it works…
There's more…
See also
Enabling and adding NIC teaming
Getting ready
How to do it…
How it works…
There's more…
Creating and managing virtual switches
Getting ready
How to do it…
How it works…
Using legacy network adapters
See also
Using advanced virtual machine network settings
Getting ready
How to do it…
How it works…
There's more…
See also
Adding and removing vmNICs
Getting ready
How to do it…
How it works…
There's more…
4. Saving Time and Cost with Hyper-V Automation
Introduction
Creating virtual machine templates
Getting ready...
How to do it...
How it works...
There's more...
See also
Learning and utilizing basic commands in PowerShell
Getting ready
How to do it...
How it works...
There's more...
See also
Using PowerShell commands for daily tasks
Getting ready
How to do it...
How it works...
There's more...
Using PowerShell ISE for advanced script editing
Enabling scripts to be executed in PowerShell
See also
Enabling and working with remote connection and administration through PowerShell
Getting ready
How to do it...
How it works...
Managing virtual machines with PowerShell Direct
Getting ready
How to do it...
How it works...
There's more...
See also
Hyper-V management and PowerShell improvements
Getting ready
How to do it...
How it works...
See also
5. Hyper-V Best Practices, Tips, and Tricks
Introduction
Using the Hyper-V best practices analyzer
Getting ready
How to do it...
How it works...
There's more...
Using PowerShell to create HTML reports with the BPA results
Optimizing virtual machines' resources
Getting ready
How to do it...
Virtual NUMA
NUMA spanning
Virtual machine settings
How it works...
There's more...
Using PowerShell to manage memory for virtual machines
See also
Enabling nested virtualization
Getting ready
Requirements
Supported scenarios
Unsupported scenarios
How to do it...
Networking option 1 – MAC address spoofing
Networking option 2 – network address translation
How it works...
See also
Graphics virtualization in Windows Server 2016 Hyper-V
Getting ready
How to do it...
RemoteFX vGPU configuration
Prioritizing H.264/AVC 444 Graphics mode for Remote Desktop connections
Configuring H.264/AVC hardware encoding for Remote Desktop Connections
How it works...
There's more...
Installing and configuring anti-virus for the host and virtual machines
Getting ready
How to do it...
How it works...
There's more...
Protecting your virtualized environment with 5nine Cloud Security
6. Security and Delegation of Control
Introduction
Configuring Windows Update for Hyper-V
Getting ready
How to do it...
How it works...
Delegating control in Hyper-V
Getting ready
How to do it...
How it works…
Configuring Port ACLs
Getting ready…
How to do it…
How it works…
See also…
Installing and configuring BitLocker for data protection
Getting ready
How to do it…
How it works…
There's more…
See also
Configuring Hyper-V auditing
Getting ready
How to do it…
How it works
Virtual Machine Secure boot
Getting ready
How to do it…
How it works…
There's more…
See also…
VM protection (vTPM)
Getting ready
How to do it…
How it works…
See also…
Shielded VM
Getting ready…
How to do it…
How it works…
There's more…
See also…
Host Resource Protection
Getting ready
How to do it…
How it works…
See also…
7. Configuring High Availability in Hyper-V
Introduction
Installing and configuring block and file storage in Windows Server 2016
Getting ready
How to do it…
How it works…
See also…
Installing and configuring the Windows Failover Clustering feature
Getting ready
How to do it…
How it works…
Protected Networks
There's more…
See also…
Enabling cluster shared volumes
Getting ready
How to do it…
How it works…
There's more…
Configuring CSV Cache for Hyper-V environments
See also…
Rolling cluster upgrades
Getting ready
How to do it…
How it works…
There's more…
See also…
Configuring Cluster-Aware Updating for cluster nodes
Getting ready
How to do it…
How it works…
There's more…
Using PowerShell to manage Cluster-Aware Updating
Generating reports on past updating runs
See also…
Using Live Migration in a cluster environment
Getting ready
How to do it…
How it works…
There's more…
See also…
Configuring VM Priority for clustered virtual machines
Getting ready
How to do it…
How it works…
There's more…
VM Load Balancing
Getting ready
How to do it…
How it works…
There's more…
VM Compute Resiliency
Getting ready
How to do it…
How it works…
There's more…
Virtual Machine Storage Resiliency
8. Disaster Recovery for Hyper-V
Introduction
Backing up Hyper-V and VMs using Windows Server Backup
Getting ready
How to do it...
How it works...
There's more...
Checking the Windows Server Backup PowerShell commandlets
Backing up Hyper-V VMs using PowerShell
See also
Restoring Hyper-V and VMs using Windows Server Backup
Getting ready
How to do it...
How it works...
See also
Configuring Hyper-V Replica between three Hyper-V hosts using HTTP authentication
Getting ready
How to do it...
Support for Hot Add/Remove of Disks
Hyper-V Replica Rolling Cluster upgrade support
Protection of Multi-VM and Guest Clustered applications support
Protection of Shielded virtual machines
Protection of virtual machines hosted on Nano Server Hyper-V
How it works...
There's more...
Throttling Hyper-V Replica Traffic
Using PowerShell to configure and enable Hyper-V Replica
Advanced Hyper-V Replica Monitoring
See also
Configuring Hyper-V Replica Broker for a Failover Cluster
Getting ready
How to do it...
How it works...
See also
Configuring Hyper-V Replica to use certificate-based authentication using an Enterprise CA
Getting ready
How to do it...
How it works...
There's more...
See also
Using checkpoints in VMs
Getting ready
How to do it...
How it works...
There's more...
See also
9. Azure Site Recovery and Azure Backup for Hyper-V
Introduction
Enabling Hyper-V virtual machines protection to Azure with Azure Site Recovery and
Microsoft Azure Backup Server
Getting ready
How to do it...
Step 1: Create an Azure Site Recovery vault
Step 2: Prepare Infrastructure - Protection Goal
Step 2: Prepare Infrastructure – Prepare Source
Step 2: Prepare infrastructure – Prepare Target
Step 2: Prepare infrastructure – replication settings
Step 2: Prepare infrastructure – capacity planning
Step 3: Replicate the application
Step 4: Manage Recovery Plans - Create Recovery Plan
Step 4: Manage Recovery Plans - Customize Recovery Settings
Step 5: Run a test failover
Step 6: Monitoring Azure Site Recovery - Jobs, Alerts and Events
Step 6: Monitoring Azure Site Recovery - General Monitoring
How it works...
There's more...
Using Windows PowerShell to replicate between on-premises Hyper-V VMs and Azure
Backing up to Azure
See also
10. Monitoring, Tuning, and Troubleshooting Hyper-V
Introduction
Using real-time monitoring tools
Getting ready
How to do it…
How it works…
There's more…
See also
Using Perfmon for logged monitoring
Getting ready
How to do it…
How it works…
Hyper-V general:
Physical and virtual processor:
Memory:
Disk:
Network:
See also
Using VM monitoring
Getting ready
How to do it…
How it works…
Monitoring Hyper-V Replica
Getting ready
How to do it…
How it works…
There's more…
See also
Using resource metering
Getting ready
How to do it…
How it works…
Tuning your Hyper-V server
Getting ready
How to do it…
How it works…
See also
Using event viewer for Hyper-V troubleshooting
Getting ready
How to do it…
How it works…
See also
A. Hyper-V Architecture and Components
Understanding Hypervisors
VMM Type 2
VMM Hybrid
VMM Type 1
Hyper-V architecture
Windows before Hyper-V
Windows after Hyper-V
Hyper-V architecture components
Hypervisor
Partitions
Virtualization stack
Enlightened (high performance) versus emulated (low performance)
Backup improvements
Differences between Windows Server 2016 Hyper-V, Nano Server, Hyper-V Server, Hyper-V
Client, and VMware
Hyper-V limitations improvements
Windows Server 2016 Hyper-V
Nano Server
Microsoft Hyper-V Server 2016
Hyper-V Client
Windows Server 2016 Hyper-V X VMware vSphere 6.5
Automatic Virtual Machine Activation
Hyper-V comparing technologies
Index
Windows Server 2016 Hyper-V Cookbook -
Second Edition
Windows Server 2016 Hyper-V Cookbook -
Second Edition
Copyright © 2017 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.
Livery Place
35 Livery Street
ISBN 978-1-78588-431-3
www.packtpub.com
and not having the proper precautions in place could mean losing it all.
Chapter 9, Azure Site Recovery and Azure Backup for Hyper-V, There are several advantages
why you want to. will discuss the advantages of reconsidering your on-premises Disaster
Recovery plan and will walk you through the most important processes of protecting your on-
premises investment by leveraging Azure Site Recovery (ASR) and Azure Backup, which is a
Disaster Recovery as a Service (DRaaS) solutions offered by Microsoft Azure.
Chapter 10, Monitoring, Tuning, and Troubleshooting Hyper-V, will show you how to use the
default tools in Windows Server 2016 to monitor your physical and virtual servers, how to
troubleshoot, and how to tune your Hyper-V servers, so you can respond faster and start
troubleshooting to solve any problems that may arise in your environment.
Appendix: Hyper-V Architecture and Components, will explain the most important Hyper-V
architecture components compared with other versions including the Hyper-V client on Windows
10, Nano Server, and VMware vSphere 6.5, as Hyper-V is now a mature and widely adopted
virtualization solution. It also includes the backup improvements as well as the new licensing
model that has been introduced in Windows Server 2016.
What you need for this book
To follow along on what we have been covered in this book, we strongly believe in learning by
doing, and therefore we highly encourage you to try out all of the technologies and principles we
covered in this book. You don't need a huge server. For most topics, you could use a single
machine with Windows Server 2016 installed and 16GB of memory, and by enabling Hyper-V-
nested virtualization, you could enable a few virtual machines to run concurrently. Ideally, though,
having at least two physical servers will help with the replication and high-availability concepts.
With Windows 10, Hyper-V client is included in the box. So even without any kind of real server,
it is possible to explore many of the Hyper-V technologies.
Another random document with
no related content on Scribd:
ver, mira qual pena es mayor: la
que sientes viendo, o la que
ausente padezes por ver; aquí
juzgarás mi mal qué tal es. En fin,
que tú careces de consejo e
confiança, yo de consuelo y
esperança; tú buscas compañia,
yo huyo della; tú desseas gozar,
yo morir; lo que tú no dessearas
si quiera por ver a Belisena. Mira
qué mal te causa verla. Assi que
en esto no habria cabo, creeme, y
dexalo estar; y pues que lo que
en la caça te acontecio me has
hecho saber, Felisel te contará lo
que a mi en otra me ha seguido,
sobre lo qual hize esta obra que
aqui te embio.
Combatido de dolores
e penosos pensamientos,
desesperado d'amores,
congoxado de tormentos,
vi que mis males mayores
turbauan mis sentimientos,
e turbado,
yo me puse de cansado
a pensar
las tristeças e pesar
que causauan mi cuydado.
E vi que la soledad
teniendome conpañia
no me tiene piedad
de las penas que sentia,
mas con mucha crueldad
lastimaua mi porfia
de dolor
diziendome: pues que amor
te tiene tal,
no te quexes de mi mal
qu'es de todos el mayor.
(Responde Vasquiran á la
soledad.)
Si el menor mal de mi mal
eres tú e de mis enojos
teniendome siempre tal
que me sacas a manojos
con rabia triste mortal
las lagrimas a los ojos
de passion
sacadas del coraçon
donde estan,
dime qué tales seran
los que mas crueles son.
(Prosigue.)
Con mi soledad hablando
sin tornar a responderme,
ni dormiendo, ni velando,
ni sabiendo qué hazerme
en mis males contemplando,
comence a trasponerme
no dormido
mas traspuesto sin sentido
no de sueño
mas como quien de veleño
sus ponçoñas ha beuido.
Pues sintiendo desta suerte
mis sentidos ya dexarme
aun qu'el dolor era fuerte
comence de consolarme;
dixe: cierto esto es la muerte,
que ya viene a remediarme
segun creo;
mas dudo pues no la veo
qu'esta es ella
por hazer que mi querella
crezca mas con su desseo.
Y con tal medio turbado
mas qu'en ver mi vida muerta,
aunque del pesar cansado
comence la vista abierta
a mirar é vi en vn prado
vna muy hermosa huerta
de verdura,
yo dudando en mi ventura
dixe: duermo
y en sueño qu'esto es vn
yermo
como aqui se me figura.
Y assi estando yo entre mi
turbado desta manera
comence quexarme assi;
no quiere el morir que muera;
luego mas abaxo vi
vna hermosa ribera
que baxaua
de vna montaña qu'estaua
de boscaje
muy cubierta, e vi vn saluaje
que por ella passeaua.
Vile que volvio a mirarme
con vn gesto triste y fiero,
yo comence de alegrarme
e a decir: si aqui le espero
este viene a remediarme
con la muerte que yo quiero,
mas llegado
vile muy acompañado
que traya
gente que mi compañia
por mi mal hauian dexado.
(Admiracion.)
Comenceme de admirar
dudando si serian ellos,
por mejor determinar
acorde de muy bien vellos
tornandolos a mirar
y acabé de conocellos
claramente,
dixe entre mi: ciertamente
agora creo
qu'es complido mi desseo
pues que a mí torna esta
gente.
(El Desseo.)
Este que miras tan triste
con quien vees que venimos,
este es el que tú perdiste
por quien todos te perdimos,
que despues que no le vimos
nunca vn hora mas te vimos
ningun dia
e dexo en tu compañia
que te guarde
soledad, la que muy tarde
se va do hay alegria.
Pues aquella a quien
fablauas
diziendo que mal te trata
e aunque della te quexauas
no es ella la que te mata
mas es la que desseauas,
triste muerte cruda ingrata
robadora
que te quitó la señora
cuyo eras
e no quiere que tú mueras
por matarte cada hora.
(Responde y pregunta.)
Quien comigo razonaua
claramente lo entendia,
mas tan lexos de mi estaua
que aunque muy claro le oya
la distancia me quitaua
que ya no le conocia,
e atordido
dixe: bien os he entendido
mas no veo
quién soys vos. Soy tu desseo
que jamas verás complido.
(Pregunta á su desseo
y respondele.)
Demandale, como estas
tan apartado de aqui
que yo siento que me das
mil congoxas dentro en mi?
Dixo: nunca me veras
qu'estoy muy lexos de ti,
sé que desseas
verme, pero no lo creas,
porque amor
no consiente en tu dolor
por saluarte que me veas.
(Replica.)
Quando bien lo houe
entendido
tanto mal creció en mi mal,
que ya como aborrecido
dixe con rabia mortal:
¿quién ha tanto mal sofrido
que del mio sea ygual
en nada dél?
pues porqué si es tan cruel
bien no merezco
la muerte pues la padezco
con la misma vida dél?
(Responde Violina.)
Començo de responderme:
ya sé quanto viues triste
en perderte y en perderme
el dia que me perdiste:
e sé que en solo no verme
nunca más descanso viste,
e tambien sé
que t'atormenta mi fe,
e assi siento
más mal en tu sentimiento
qu'en la muerte que passé.
Pero deues consolarte
e dexarme reposar
pues que por apassionarte
no me puedes ya cobrar
ni menos por tú matarte
podré yo resuscitar,
e tu pena
a los dos ygual condena,
e tu dolor
lo sintieras muy mayor
si me vieras ser agena.
(Responde Vasquiran.)
Todo el mal que yo sentia
y el tormento que passaua,
si penaua, si moria,
tu desseo lo causaua,
que jamas noche ni dia
nunca vn hora me dexaua,
mas agora
que te veo yo, señora,
yo no espero
más dolor ni más bien quiero
de mirarte cada hora.
(Violina.)
Tú piensas que soy aquella
que en tu desseo desseas
e que acabas tu querella;
no lo pienses ni lo creas
bien que soy memoria della,
mas no esperes que me veas
ya jamas,
que aunque comigo estás
soy vision
metida en tu coraçon
con la pena que le das.
Tus males y tus enojos
con tu mucho dessear
te pintan a mi en tus ojos
que me puedas contemplar,
pero no son sino antojos
para darte más pesar
e más despecho,
que mi cuerpo ya es dessecho
e consumido
y en lo mesmo convertido
de do primero fue hecho.
(Vasquiran.)
Casi atonito en oylla
como sin seso turbado,
quisse llegarme y asilla,
e halleme tan pesado
como quien la pesadilla
sueña que le tiene atado
de manera
que no pude aunque quisiera
más hablalle,
e assi la vi por el valle
tornarse por do viniera.
Quando tal desdicha vi
causada sin mas concierto
luego yo dixe entre mi:
ciertamente no soy muerto;
estando en esto senti
mi paje y vime despierto
acostado
sobre vn lecho, tan cansado
que quisiera
matarme sino temiera
el morir desesperado.
Vime tan aborrecido
que comence de dezir:
tanto mal mi mal ha sido
que me desecha el morir
conociendo que le pido;
dame muerte en el viuir
por alargar
mi pesar de más pesar
para que muera
viuiendo desta manera,
muriendo en el dessear.
Viue mi vida captiua
desseandose el morir
porque le haze el viuir
qu'el mismo que muere viua.
Quien la muerte se dessea
y la vida no le dexa
con mayor dolor l'aquexa
el viuir con quien pelea
qu'el morir que se le alexa,
pues la pena mas esquiua
de comportar y sofrir
es la muerte no viuir
do la vida muere viua.
No pueden desañudarse
las lazadas
estando en el alma atadas.
INTRODUCCION DE LA
EGLOGA
Entran tres pastores e dos
pastoras, el principal qu'es
Flamiano se llama Torino. El otro
Guillardo. El otro Quiral que es
marques de Carliner. La principal
pastora se llama Benita, que es
Belisena. La otra se llama Illana
qu'es Isiana. Entra primero Torino
e sobre lo que Belisena le mandó
en la caça qu'es la fantasia de la
egloga, con vn laud tañe e canta
esta cancion que al principio de la
egloga está, y acostado debaxo
de vn pino que alli hazen traer;
acabado de cantar, comiença a
quexarse del mal que siente e del
amor. En el tiempo que él canta
entra Guillardo quél no lo siente;
oyele todo lo que habla,
marauillase no sabiendo la causa
qué mal puede tener que en tanta
manera le fatiga; comiença
consigo a hablar razonando qué
mal puede ser; ve venir a Quiral,
llamale e cuentale lo que ha oydo,
e juntos los dos lleganse a Torino
demandandole de qué dolor se
quexa, él se lo cuenta. Guillardo
no le entiende, Quiral si aunque
no al principio. Altercan entre
ellos gran rato, estando en la
contienda entra Benita, pideles
sobre qué contienden. Torino le
torna a decir en metro lo que en la
caça passó en prosa, y assi los
dos contienden. Al fin Benita se
va; quedan todos tres pastores en
su question. Acaban todos tres
con vn villancico cantado.
COMIENÇA LA CANCION
No es mi mal para sofrir
ni se puede remediar
pues deciende de lugar
do no se puede subir.
El remedio de mi vida
mi ventura no le halla
viendo que mi mal deualla
de do falta en la subida,
si se quiere arrepentir
mi querer para mudar
no puede, qu'está en lugar
do no se puede subir.
COMIENÇA LA EGLOGA
Y dize Torino.
O grave dolor, o mal sin
medida,
o ansia rabiosa mortal de
sofrirse,
ni puede callarse, ni osa
dezirse
el daño que acaba del todo mi
vida;
mi pena no puede tenerse