Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Thanks again to Roger Osborne for compiling a list of some common best practices
when deploying production Hyper-V servers. Of course the Hyper-V will run for you
right out of the box but depending on your environment, the information below can
dramatically increase scalability and performance in your environment, thanks Roger!!
Disclaimer: As with all Best Practices and Tuning, not every recommendation can
or should be applied. Best Practices are general guidelines, not hard, fast rules that
must be followed. As such, you should carefully review each item to determine if it
makes sense in your environment. If implementing one (or more) of these Best
Practices seems sensible, great; if it doesn't, simply ignore it. In other words, it's up to
you to decide if you should apply these in your production environment after
thorough testing.
GENERAL (HOST):
* Use Server Core if possible, to reduce OS overhead, reduce potential attack surface,
and to minimize reboots (due to fewer software updates)
Optamos por no usar server core.
* Hyper-V services should be configured to start automatically, to ensure uninterrupted
VM services after reboots. (Verify in Administrative Tools Services):
Hyper-V Virtual Machine Management Service (To set to auto: sc config vmms
start=auto)
Conforme.
* Ensure hosts are up-to-date with recommended Microsoft updates, to ensure critical
patches and updates addressing security concerns or fixes to the core OS are applied.
Updates recomendados aplicados.
* Ensure all applicable Hyper-V hotfixes and Cluster hotfixes (if applicable) have been
applied
http://social.technet.microsoft.com/wiki/contents/articles/1349.hyper-v-update-list-forwindows-server-2008-r2.aspx
* Install the latest PowerShell version (currently 2.0) on each Hyper-V host
http://www.microsoft.com/download/en/details.aspx?
displaylang=en&id=2560
Conforme.
* Download and install the Hyper-V PowerShell Management Library
http://pshyperv.codeplex.com/
No utilizamos. No considero necessrio instalar por no ser homologado pela MS.
* Ensure hosts have the latest BIOS version, to address any known issues/supportability
Conforme. Procedimento executado pela pela ISH.
* Host should be domain joined, unless security standards dictate otherwise. Doing so
makes it possible to centralize the management of policies for identity, security, and
auditing. Additionally, hosts must be domain joined before you can create a Hyper-V
High-Availability Cluster.
Conforme.
* RDP Printer Mapping should be disabled on hosts, to remove any chance of a printer
driver causing instability issues on the host machine.
Preferred method: Use Group Policy with host servers in their own separate OU)
o Computer Configuration Administrative Templates Windows
Components Remote Desktop Services Remote Desktop Session
Host Printer Redirection Do not allow client printer redirection Set
to "Enabled"
Conforme.
Preferred method: Use Group Policy with host servers in their own separate OU)
Once there, create a new Power Plan (using the Vista or higher
selection) and assign it "High Performance"
Conforme.
* Do not install any other Roles on a host besides the Hyper-V host
When the Hyper-V role is installed, the host OS becomes the "Parent Partition"
(a quasi-virtual machine), and the Hypervisor partition is placed between the
parent partition and the hardware. As a result, it is not recommended to install
additional roles, services, etc.
Possui a role File Services, instalada pela ISH. Como no servidor de arquivos
considero que no impacta a role de hyper.v
* The only Features that should be installed on the host are: Failover Cluster Manager
and Multipath I/O. However, both are only needed if the host will be part of a cluster.
(See explanation above for reasons why installing additional features is not
recommended.)
Possui algumas feaures a mais, mas que so uteis/necessrias para o servidor.
http://support.microsoft.com/kb/961804
o Default virtual machine configuration directory
(C:\ProgramData\Microsoft\Windows\Hyper-V)
o Custom virtual machine configuration directories, if applicable
o Default virtual hard disk drive directory
o Custom virtual hard disk drive directories
o Snapshot directories
o Vmms.exe (Note: May need to be configured as process exclusions
within the antivirus software)
o Vmwp.exe (Note: May need to be configured as process exclusions
within the antivirus software)
o Additionally, when you use Cluster Shared Volumes, exclude the CSV
path "C:\ClusterStorage" and all its subdirectories.
Conforme.
* Default VM path and VHD path should be set to a non-system drive, due to this can
cause disk latency, as well as create the potential for running out of disk space.
Conforme. Como utilizamos cluster e VMM o default VM path so os CSVs.
* Enable iSCSI Service TCP-In (for Inbound) and iSCSI Service TCP-Out (for
outbound) in Firewall settings on host (Port 3260), to allow iSCSI traffic to pass to and
from host and SAN device. Not enabling these rules will prevent iSCSI communication.
Conforme. No utilizamos firewall nem iSCSI. Por isso esta recomendao no se
aplica.
* Periodically run performance counters against the host, to ensure optimal
performance.
Recommend using the Hyper-V R2 SP1 performance counter that can be extracted from
the (free) Codeplex PAL application:
http://pal.codeplex.com/
Install PAL on a workstation and open it, then click on the Threshold File tab.
o Select "Microsoft Hyper-V R2 SP1" from the Threshold file title, then
choose Export to Perfmon template file. Save the XML file to a location
accessible to the Hyper-V host.
Possumos Perfmon local, mas irei configurar assim que possvel em um servidor
exclusivo de monitoramento.
* If server has more than 32 physical cores, do not enable Hyper Threading, as it creates
more logical cores than Hyper-V supports on Server 2008 R2. (Max is 64.)
Possumos menos que 32 cores.
PHYSICAL NICs:
* Ensure NICs have the latest firmware, which often address known issues with
hardware.
Conforme - Executado pela ISH.
* Ensure latest NIC drivers have been installed on the host, which resolve known issues
and/or increase performance.
Conforme - Executado pela ISH.
* Consider disabling Chimney Offload, as it has been found to cause slowness of
virtual machines.
Este recurso uma melhoria. Conforme recomendao da MS s deve ser desabilitado
se causar lentido no acesso as vms. http://technet.microsoft.com/ptbr/library/gg162709(v=ws.10).aspx
* Jumbo frames should be turned on and set for 9000 or 9014 (depending on your
hardware) for CSV, iSCSI and Live Migration networks. This can significantly increase
throughput while also reducing CPU cycles.
End-to-End configuration must take place NIC, SAN, Switch must all support
Jumbo Frames.
You can enable Jumbo frames when using crossover cables (for Live Migration
and/or Heartbeat), in a two node cluster.
To verify Jumbo frames have been successfully configured, run the following
command from your Hyper-V host(s):
o Ping sanIP f l 8000
Unbinding other protocols (not listed above) helps eliminate non-iSCSI traffic/chatter
on these NICs. No se aplica. O acesso a storage feito atravs da SAN.
No se aplica, pois no utilizamos iSCSI.
* When creating virtual switches, uncheck the Allow management operating system to
share this network adapter, in order to create a dedicated network for your VM(s) to
communicate with other computers on the physical network.
Conforme. Configurardo por mim.
* Recommended network configuration when clustering:
Min # of
Host Management
Networks on
Host
Management
VM Network
Access
Production
CSV
Live Migration
iSCSI
CSV
LiveMigration
iSCSI
No possumos a rede CSV. A ISH configurou a rede CSV para usar a rede
LiveMigration.
Possumos a rede Heartbeat que no citada
** CSV & Live Migration Networks can be crossover cables, if you are building a 2
node cluster **
No confome. Utilizamos disco dinmico na maioria das vms devido a falta de disco e
isto no nos tem causado problemas. Utilizamos disco fixo para VMs que exigem mais
IOPS.
* Disable snapshots from all production VMs. Snapshots can cause disk space issues, as
well as additional physical I/O overhead.
Set the snapshot path for each VM to a non-existent location, so user gets an
error if they attempt to create a snapshot (No consegui fazer esta alterao)
If snapshots are required, the snapshot location should not be the host OS drive.
It is not recommended to use 512e formatting for disks that will house VHDs, due to
internal testing has shown a performance degradation of around 30% for most
workloads.
Regarding 4K Disks:
The VHD driver in Server 2008 R2 assumes that the physical sector size of the disk to
be 512 bytes and issues 512 byte IOs, which makes it incompatible with these disks. The
VHD stack fails to open the VHD files on physical 4kB sector disks for this reason.
Taken from: http://support.microsoft.com/kb/2515143
Side-Note: Windows 8 fully supports 4K disks out of the box.
* Page file on Hyper-V Host should be set to a fixed size (4GB max) on the system
drive, since most Hyper-V implementations have large amounts of physical memory,
and, by default, the page file is the same size as the physical amount of memory.
HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Virtualization\MemoryReserve
Conforme - Para 191GB memory seria necessrio reservar 6114. No fazemos reserva,
porm todos servidores trabalham com folga de memria.
* Use Dynamic Memory on all VMs (unless not supported. (e.g. Lync).
2048GB For Windows Server 2008, including R2 (e.g. 2048 - 4096 Dynamic
Memory)
256MB For Windows Server 2003 (e.g. 256 - 2048 Dynamic Memory)
Conforme.
CLUSTER:
* Set preferred network for CSV communication, to ensure the correct network is used
for this traffic
In order to change which network interface is used for CSV traffic, use the
following PowerShell command:
o (Get-ClusterNetwork "CSVNetwork").Metric=900
No foi configurado rede exclusiva para CSV. Atualmente est configurada a rede
LiveMigration como CSV.
* Set preferred network for Live Migration, to ensure the correct network(s) are used for
this traffic:
Open Failover Cluster Manager, Expand the Cluster then Expand Services and
applications
Under Services and applications, click once on any of the VMs listed in the left
pane
Next, in the middle pane (under the title Virtual Machine), right click your
VM and choose properties
Once you have made this change, it will be used for all VMs in the cluster
Default is set using the following calculation (which can be too high, depending
on how much physical memory is installed)
o (100 / 64) * physical RAM
o For example, a 96GB system would have 150 minute timeout!
(100/64)*96 = 150
If any changes are made to the virtual switch on any node you must refresh
the virtual machine configuration (Failover Cluster Manager <Cluster
Name> Services and applications <VM name> More Actions (in right
pane) Refresh virtual machine configuration). Repeat this process for each VM
listed in Services and applications.
Conforme.
* Run Cluster Validation periodically to remediate any issues
NOTE: If all LUNs are part of the cluster, the validation test will skip all disk
checks. It is recommended to set up a small test-only LUN and share it on all
nodes, so full validation testing can be completed.
reg add
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvi
der /v Enabled /t reg_dword /d 0
Once done, you can leave the "Time Synchronization" enabled on Integration
Services, under the DC's Hyper-V Settings