Hyper-V: Microsoft's Latest Server Virtualization Solution
Hyper-V: Microsoft's Latest Server Virtualization Solution
Hyper-V: Microsoft's Latest Server Virtualization Solution
What is hyper-v
Virtualization is one of todays hottest IT
technologies, and Windows Server 2008s new native
virtualization feature, Hyper-V, is a significant new
competitor that has the potential to change the
market. VMware ESX Server is the current market
favorite. To Know what Hyper-V is , you need to
understand how the architectures of the two products
compare. In addition, Hyper-V introduces some
important new features, and youll want to see how
Hyper-V and the older Virtual Server 2005 R2 relate to
each other. Finally, to enrich your understanding of
Hyper-V Ill show you how to set it up and use it.
Hyper-V Terminology
This section summarizes key terminology
specific to VM technology
child partition: Any partition (VM) that is created by the root
partition.
device virtualization: A mechanism that lets a hardware
resource be abstracted and shared among multiple consumers.
emulated device: A virtualized device that mimics an actual
physical hardware device so that guests can use the typical
drivers for that hardware device.
Enlightenment: An optimization to a guest operating system to
make it aware of VM environments and tune its behavior for VMs.
Guest: Software that is running in a partition. It can be a fullfeatured operating system or a small, special-purpose kernel.
The hypervisor is guest-agnostic.
Hypervisor: A layer of software that sits just above the
hardware and below one or more operating systems. Its primary
job is to provide isolated execution environments called
partitions. Each partition has its own set of hardware resources
(CPU, memory, and devices). The hypervisor is responsible for
controls and arbitrates access to the underlying hardware.
Storage
HyperV supports synthetic and emulated
storage devices in VMs, but the synthetic
devices generally can offer significantly
better throughput and response times
and reduced CPU overhead.
The exception is if a filter driver can be
loaded and reroutes I/Os to the synthetic
storage device.
Virtual hard disks (VHDs) can be backed
by three types of VHD files or raw disks.
The next slide describes the different
options
There are three types of VHD files. Its recommended that production servers
use fixed-sized VHD files for better performance and also to make sure that
the virtualization server has sufficient disk space for expanding the VHD file
at run time. The following are the three VHD types:
Dynamically expanding VHD: Space for the VHD is allocated on demand.
The blocks in the disk start as zeroed blocks but are not backed by any
actual space in the file. Reads from such blocks return a block of zeros. When
a block is first written to, the virtualization stack must allocate space within
the VHD file for the block and then update the metadata. This increases the
number of necessary disk I/Os for the write and causes an increased CPU
usage. Reads and writes to existing blocks incur both disk access and CPU
overhead when looking up the blocks mapping in the metadata.
Fixed-size VHD: Space for the VHD is first allocated when the VHD file is
created. This type of VHD is less apt to fragment, which reduces the I/O
throughput when a single I/O is split into multiple I/Os. It has the lowest CPU
overhead of the three VHD types because reads and writes do not need to
look up the mapping of the block.
Differencing VHD: The VHD points to a parent VHD file. Any writes to
blocks never written to before result in space being allocated in the VHD file,
as with a dynamically expanding VHD. Reads are serviced from the VHD file
if the block has been written to. Otherwise, they are serviced from the parent
VHD file. In both cases, the metadata is read to determine the mapping of
the block. Reads and writes to this VHD can consume more CPU and result in
more I/Os than a fixed-sized VHD.
Snapshots of a VM create a differencing VHD to store the writes to the disks
since the snapshot was taken.
Passthrough Disks
The VHD in a VM can be mapped directly to a
physical disk or logical unit number (LUN), instead
of a VHD file. The benefit is that this configuration
bypasses the file system (NTFS) in the root
partition, which reduces the CPU usage of storage
I/O. The risk is that physical disk or LUNs can be
more difficult to move between machines than
VHD files.
Large data drives can be prime candidates for
passthrough disks, especially if they are I/O
intensive. VMs that can be migrated between
virtualization servers (such as quick migration)
must also use drives that reside on a LUN of a
shared storage device.
Installing Hyper-V
Hyper-V is not installed in Server 2008
by default.
To install Hyper-V, you use the Server
2008 Server Manager. Click Start,
Programs, Administrative Tools, and
then select the Server Manager option.
In Server Manager, add the
virtualization role by clicking Add
Roles, which displays the Add Roles
Wizard shown in