Anda di halaman 1dari 4

Virtualisation

At a glance:
What is virtualisation?
Three virtualisation
architectures
Microkernelised vs.
monolithic hypervisor
What Hyper-V does

An introduction to
Hyper-V in Windows
Server 2008
Rajiv Arunkundram

There has been quite a lot of talk about


virtualisation recently, and most of the discussion
is specifically about server virtualisation. This is
one of the most exciting trends in the industry
and one that has the potential, over the next terms, however, virtualisation is about ab-
few years, to change the paradigm of how stracting one layer of the technology stack
IT systems are deployed. But server virtuali- from the next layer, like storage from servers
sation will not only change how IT admin- or the OS from the applications. Abstracting
istrators and architects think about servers the different layers, in turn, enables consoli-
and system utilisation, it is also going to af- dation and better manageability.
fect the processes and tools used to manage As a concept, virtualisation applies to stor-
what will certainly become an increasingly age, networks, servers, applications and ac-
dynamic environment. cess. When you look at storage and networks,
Virtualisation has actually been around for the goal of virtualisation is to aggregate a set
some time now, but the technology is still of different devices so the total pool of re-
evolving. In fact, the word itself still means sources looks and acts like a single entity. For
different things to different people. In broad example, you can configure a 40TB storage

TechNet Magazine November 2008 13


Virtualisation

solution instead of a set of 20 2TB storage de-


vices. But with other components, virtualisa-
Systems are becoming much bigger and
they require a technology like virtualisation
The move Types of virtualisation solutions
There are essentially three general architec-
This is often called the hypervisor layer. This
architecture was originally designed in the
tion acts in the opposite direction, helping
you to make a single system appear as though
to make full use of system power. But while
it is true that core technology (and Moore’s
to 64-bit tures used for server virtualisation, as shown
in Figure 1. The fundamental differences
1960s by IBM for mainframe systems and has
recently been made available on the x86/x64
there are multiple systems. The most com-
mon example of this is server virtualisation,
law) has had a steady lead in terms of produc-
ing more processing capacity than systems
processors have to do with the relationship between
the virtualisation layer and the physical hard-
platforms with a variety of solutions, includ-
ing Windows Server 2008 Hyper-V.
where you host multiple OS instances and
environments on a single server.
can use, we are now also more conscious of
the environmental impact, power require-
and the ware. By virtualisation layer, I mean the layer
of software called the virtual machine moni-
There are solutions available on which
hypervisor is an embedded part of the firm-
Microsoft has approached virtualisation ments and cooling costs.
need for tor (VMM, not to be confused with Virtual ware. This, however, is simply a packaging
®

at several different levels, extending from the All of these factors, plus the easy justifica- Machine Manager). It is this layer that pro- option and does not really change the under-
desktop to the data centre with solutions for
server virtualisation, application virtualisa-
tion on the return on investment (ROI) of
adopting virtualisation, should together ac-
sustainable vides the ability to create multiple isolat-
ed instances that share the same underlying
lying technology.
As you look at Type-1 VMMs, there are
tion, presentation virtualisation and desktop
virtualisation. The common thread across all
celerate the adoption of virtualisation across
both large and small businesses. And we, the
computing hardware resources.
The Type-2 VMM architecture is exempli-
essentially two main ways to architect the
hypervisor solutions: microkernelised and
of these is the management piece with Mi-
crosoft System Center. For this article, I am
IT professionals, can expect all the major
players to continue to invest in this technol-
have helped fied by Java Virtual Machines. Here, the goal
of virtualisation is to create a runtime envi-
monolithic. Both of these approaches, as
shown in Figure 2, are true Type-1 VMMs
focusing on the server virtualisation compo-
nent and specifically on how Hyper-V, a key
ogy over the next few years and improve fea-
tures and functionality.
to enable ronment within which the process can exe-
cute a set of instructions without relying on
that have the hypervisor installed directly on
the physical hardware.
feature of Windows Server 2008, fits into the
equation for a dynamic data centre. How server virtualisation works
virtualisation the host system. In this case, the isolation is
for the different processes, and it allows a
The monolithic hypervisor approach hosts
the hypervisor/VMM in a single layer that
Server virtualisation in general terms lets you single application to run on different OSs also includes most of the required compo-
The server virtualisation market take a single physical device and install (and without having to worry about OS depen- nents, such as the kernel, device drivers and
First, I think it would be worthwhile to look run simultaneously) two or more OS envi- dencies. Server virtualisation does not fall the I/O stack. This is the approach used by
at what exists in today’s environment and ronments that are potentially different and into this category. such solutions as VMware ESX and tradi-
where the overall market is heading. Depend- have different identities, application stacks Type-1 VMM and Hybrid VMMs are the tional mainframe systems.
ing on what research you read, some analysts and so on. Hyper-V is a next-generation, 64- two approaches you are most likely to find in The microkernelised approach uses a very
estimate that 5–9 per cent of all physical bit hypervisor-based virtualisation technolo- wide use today. The Hybrid VMM is a stage thin, specialised hypervisor that only per-
servers currently sold are being used as vir- gy that offers reliable and scalable platform where the VMM runs alongside the host forms the core tasks of ensuring partition
tualisation hosts. You might consider this to capabilities. Together with System Center, it OS and helps to create virtual machines on isolation and memory management. This
be a big chunk of systems in a market where offers a single set of integrated management top. Examples of the Hybrid VMM are Mi- layer does not include the I/O stack or de-
more than nine million physical servers are tools for both physical and virtual resources. crosoft Virtual Server, Microsoft Virtual PC, vice drivers. This is the approach used by Hy-
shipped every year. But one thing is certain: All of this works to reduce costs, improve VMware Workstation, and VMware Player. per-V. In this architecture, the virtualisation
there is still a huge market opportunity as utilisation, optimise infrastructure and al- You should note that while these types of stack and hardware-specific device drivers
more customers become comfortable with low businesses to rapidly provision new solutions are excellent for a client scenario are located in a specialised partition called
virtualisation and want to employ it. servers. In order to help you better under- where you are only running virtual machines the parent partition.
It is important to note where virtualisation stand how Hyper-V is architected, I want to part of the time, the VMMs add considerable
is being adopted. Enterprise customers have first take a look at the different types of vir- overhead and therefore are not suitable for Windows hypervisor
certainly led the charge with testing and be- tualisation solutions. resource-intensive workloads. Ensuring that there is strong separation be-
ing early adopters. However, there are small- In a Type-1 VMM architecture, the VMM tween multiple OSs is done by creating
and medium-sized businesses also deploying layer runs directly on top of the hardware. virtual processors, memory, timers and in-
virtualisation. The adoption of virtualisation
reaches across different types of workloads, Type-� VMM Hybrid VMM Type-� VMM
from business applications and management (Hypervisor)
Guest � Guest � Monolithic Hypervisor Microkernelized Hypervisor
to the web and e-mail.
So why is virtualisation now all the buzz? VMM VM � VM � VM � VM � VM � VM �
Guest � Guest � Guest � Guest � (”Admin”) (”Parent”) (”Child”) (”Child”)
There are a few factors, not the least of
Host OS Host OS VMM VMM Virtualization
which is timing. A few key industry factors Stack
have come together at the same time, help- Hypervisor
Hardware Hardware Hardware Drivers Drivers Drivers
ing to push for increased adoption of virtu- Drivers
alisation. These industry factors include the Examples: Examples: Examples:
JVM Virtual PC and Windows Server Hypervisor
move to 64-bit computing, multicore proces- CLR Virtual Server ���� Hyper-V Figure 2 The two
sors, and even the drive of sustainable com- ways to architect Hardware Hardware
puting to improve system utilisation. Figure 1 The three architectures of virtualisation hypervisor solutions

14 To get your FREE copy of TechNet Magazine subscribe at: www.microsoft.com/uk/technetmagazine TechNet Magazine November 2008 15
Virtualisation

terrupt controllers. OSs use these virtual re-


sources just as they would use their physical
started, Windows hypervisor is loaded first,
and then the rest of the stack is converted to
One of tual service clients (VSCs), which act as de-
vice drivers within the guest OS.
The Hyper-V feature set
It goes without saying that the closer the
counterparts.
The Windows hypervisor, part of Hyper-V,
be the parent partition.
The parent partition has ownership of the
the most Instead of accessing physical hardware
directly, VSCs use the VMBus, which is a
virtualisation platform comes to acting like
the physical server, the easier it becomes for
performs the following tasks: keyboard, mouse, video display and other de-
vices attached to the host server. It does not
innovative high-speed, in-memory bus, in order to ac-
cess virtual service providers (VSPs) in the
organisations to deploy and rely on virtual
workloads. In my view, there are four key ar-
• Creates logical partitions.
• Manages memory and processor schedul-
have direct control over the timers and inter-
rupt controllers that the hypervisor uses.
components parent partition. The parent partition VSPs
then manage access to the underlying physi-
eas under which you can view the different
features of the virtualisation platform.
ing for guest OSs.
• Provides mechanisms in order to virtualise
The parent partition contains a Windows
Management Instrumentation (WMI) pro-
of Hyper-V cal hardware, as illustrated in Figure 3. A key
benefit of synthetic devices is that perfor-
Today most hypervisor-based virtualisa-
tion solutions are pretty close to each other
input/output and communicate among
partitions.
vider to facilitate management of all aspects
of the virtualised environment, as well as a
is the new mance of synthetic devices over the VMBus
is closer to performance of non-virtualised
in terms of features and functionality. As we
move forward, things like total cost of own-
• Enforces memory access rules.
• Enforces policy for CPU usage.
virtualisation stack that performs hardware-
related tasks on behalf of the child partitions.
device- hardware devices. ership (TCO) and ease of use will be key dif-
ferentiators. And the management solutions
• Exposes a simple programmatic interface
known as hypercalls.
In addition, any independent hardware ven-
dor (IHV) drivers needed for host system
sharing Integration components
Hyper-V was built to provide strong bound-
will see continued investments and devel-
opment to bring us closer to the vision of a
Since it uses the microkernelised ap-
proach, the Windows hypervisor is fairly
hardware are contained in the parent parti-
tion, and any drivers created for Windows
architecture aries between various instances running on
one computer. To enable interaction be-
dynamic IT environment, where the infra-
structure is flexible enough to adapt to the
small – less than 1MB in size. This minimal Server 2008 x64 editions will also work in the tween the guest OS and the host OS and needs of the business, and models and poli-
footprint helps improve the overall security parent partition. to supply some additional functionality for cies help drive increased automation and
of the system. supported guest OSs, Hyper-V provides inte- management.
One of the requirements for running Hy- Device-sharing architecture gration components.
per-V is that you have an x64 system that has One of the innovative architectural compo- The Hyper-V integration components sup- Scalability
Intel VT or AMD-V technologies. x64 tech- nents in Hyper-V is the new device-sharing port the following features: Using the microkernelised hypervisor archi-
nology enables access to a larger address space architecture that supports emulated and syn- tecture, Hyper-V has very low CPU over-
and support for systems with more memory, thetic devices in each guest OS. Device em- • Time synchronisation head, leaving plenty of room to virtualise
and thus allows more virtual machines on a ulation is quite useful for supporting older • Volume Shadow Copy Service (VSS) workloads. By enabling virtual machines
single host system. Intel VT and AMD-V are OSs with device drivers designed for older • Heartbeat functionality to take advantage of powerful features and
hardware-assisted virtualisation solutions generations of hardware. For example, Hy- • Guest shutdown hardware, such as multicore technology, im-
that provide an ultra-privileged layer in the per-V includes an emulation of the Intel • Key value pair exchange (used to access the proved disk access and greater memory, Hy-
ring architecture that helps to keep the ex- 21140 network adapter, which was called registry of a guest OS) per-V improves scalability and performance
ecution environment of the hypervisor sep- the DEC 21140 network adapter at the time • OS identification of the virtualisation platform.
arate from the rest of the system. They also many older OSs were being shipped. Combined with the rest of the Windows
allow Hyper-V to run an unmodified guest Generally, device emulation is slow, not Server 2008 capabilities, Hyper-V allows you
OS without incurring significant emulation easily extendable, and doesn’t scale well. But to consolidate most workloads – including
performance penalties. emulation is still important because it allows Parent Partition Child Partition 32-bit and 64-bit workloads – on a single sys-
you to run most x86 OSs on Hyper-V. Since tem. And it can help you balance 64-bit tech-
The parent partition virtualisation is now moving from a niche nology adoption with continued support for
Hyper-V consists of one parent partition, technology primarily for testing and devel- Virtualization Stack 32-bit workloads already used throughout

User Mode
which is essentially a virtual machine that opment to an essential technology for pro- WMI VM your environment.
has special or privileged access. This is the duction environments, users require better Provider Worker Applications The fact that Hyper-V requires a 64-bit
Process
only virtual machine with direct access to performance in order to run larger work- VM host system with hardware-assisted virtuali-
Service
hardware resources. All of the other virtu- loads. Emulated devices no longer meet these sation helps ensure that the host system can
al machines, which are known as guest par- growing demands. access a large pool of memory resources. Hy-
titions, go through the parent partition for An alternative solution to this is to use Windows Server ���� Windows Server ����, per-V can support up to 1TB of memory on
����

Kernel Mode
their device access. Hyper-V synthetic devices. Synthetic devices the host, with up to 64GB of memory per vir-
Windows VSP Windows VSC
The existence of the parent partition is are virtual devices that are mapped directly Figure 3 VSCs Kernel Kernel tual machine. This is key for those who plan
fairly transparent. When you begin to in- to physical devices. Unlike emulated devic- use the VMBus to virtualise memory-intensive workloads
stall Hyper-V, the first thing you must do is es, synthetic devices do not emulate legacy to access VSPs, VMBus VMBus
such as Exchange Server and SQL Server.
which then
install Windows Server 2008 x64 Edition on hardware. With the Hyper-V hardware shar- Hyper-V also supports up to 16 logical pro-
manage access
the physical system. You then need to go to ing model, supported guest OSs can interact Windows Hypervisor cessors on the host system, making Hyper-V
to underlying
Server Manager, enable the Hyper-V role and directly with synthetic devices that may have physical “Designed for Windows” Server Hardware scalable to most commodity two-socket and
restart the system. Once the system has re- no physical counterparts. These OSs use vir- hardware four-socket systems with multiple cores. You

16 To get your FREE copy of TechNet Magazine subscribe at: www.microsoft.com/uk/technetmagazine TechNet Magazine November 2008 17
Virtualisation

can also create a virtual machine with up to


four virtual processors in order to support
ter of seconds. By doing that, you can keep
your virtual machines available for produc-
With high plan that can help you easily recover state
in the event of an unplanned downtime.
the best practices for Hyper-V. Include Ac-
tive Directory as well as antivirus and anti-
®

workloads that require or take advantage of


multi-processor capabilities.
tion use while you perform maintenance on
the original host. Once the maintenance is
availability, For more information on high-availabil-
ity solutions with Hyper-V, see the article
malware solutions as part of your plan. And
use delegated administration capabilities to
Consolidating servers through Hyper-V
also enables those servers to make use of ro-
done, you can then use Quick Migration to
return the virtual machines back to the orig-
Hyper-V ensure that you use admin access privileges
appropriately for Hyper-V hosts.
bust networking support, including VLAN, inal host system.
and host The microkernelised
Network Address Translation (NAT), and Unplanned downtime is downtime that Manageability
Network Access Protection (NAP) policies is not foreseen. It can be catastrophic in na-
clustering hypervisor It is easy to go from a slight server sprawl
(quarantine). And as a Windows Server 2008 ture or as simple as someone accidentally un- problem to a massive virtual machine sprawl.
feature, Hyper-V works well with other Win- plugging a power cord and bringing a server
capabilities architecture is This risk arises from the ease with which you
dows Server features, such as BitLocker and ™
down. Although that may sound unlike- can deploy virtual machines. And with the
Windows PowerShell . ™
ly, over the years I have met quite a few ad-
work designed to minimise increased mobility of virtual machines, you
ministrators at Tech•Ed, VMworld and other also have the added responsibility of know-
High availability conferences who have stories to tell about
together the attack surface and ing exactly where the different virtual ma-
High availability is a scenario where Hyper-V how some server was accidentally powered chines are running, keeping track of their
and host clustering capabilities work togeth- off by a colleague.
to address to enhance security security contexts, and so on.
er to help address business continuity and di- With Hyper-V, you can set up a host cluster Fortunately with Hyper-V, you don’t have
saster recovery needs. Business continuity is
the ability to minimise both scheduled and
for the different host systems and configure
all the virtual machines as cluster resources
continuity “Achieving high availability for Hyper-V” by
to create a separate management infrastruc-
ture for your virtual environment. It inte-
unscheduled downtime. That includes time
lost to routine functions, such as mainte-
that can then failover to a different system
in case one of the hosts fails. Meanwhile, the
and disaster Steven Ekren (http://technet.microsoft.com/
magazine/cc837977).
grates with Microsoft management tools,
System Center Virtual Machine Manager and
nance and backup, as well as unanticipated
outages.
multi-site clustering capability of Windows
Server 2008 will enable you to set up a geo-
recovery Security
Microsoft System Center Operations Man-
ager, as well as with third-party management
Disaster recovery is an important com- graphically dispersed cluster so that if your The microkernelised hypervisor architecture tools, so you can manage your physical and
ponent of business continuity. Natural di- primary data centre fails, you have the ability is designed to minimise the attack surface and virtual resources from one console. For de-
sasters, malicious attacks and even simple to recover the different virtual machines to a to enhance security, especially when Hyper- tails of System Center Virtual Machine Man-
configuration problems such as software remote data centre. V is implemented as a Server Core role. Serv- ager 2008, see Edwin Yuen’s article, “Manage
conflicts can cripple services and applica- This is also handy for protecting all your er Core is an installation option of Windows your virtual environments with VMM 2008,”
tions until administrators resolve the prob- branch offices. One of the advantages of the Server 2008. The hypervisor contains no de- in this issue of TechNet Magazine (http://
lems and restore data. A reliable business and unplanned downtime support with Hyper-V vice drivers or third-party code, promoting a technet.microsoft.com/magazine/cc836456).
disaster recovery strategy must offer mini- is that it is guest OS agnostic, which means more stable, thin and secure foundation for Meanwhile, support for Windows Power-
mal data loss and powerful remote manage- you can extend its high availability benefits running virtual machines. Hyper-V also de- Shell makes it easy to automate tasks.
ment capabilities. to Linux virtual machines and older versions livers strong role-based security with Active Hyper-V also provides virtual machines
When looking at high availability, you of Windows Server to protect and recover Directory integration. And Hyper-V allows with an unprecedented ability to use avail-
should consider three different categories those systems similarly. virtual machines to benefit from hardware- able hardware. Because all Windows Hard-
– planned downtime, unplanned downtime As you look at unplanned downtime, it is level security features, such as the execute ware Quality Lab (WHQL)-certified
and backups. Protection for planned down- important to note that the recovery is equiv- disable (NX) bit, further helping to increase drivers are able to run in the parent partition,
time is typically needed to help move the vir- alent to powering off the system and restart- the security of virtual machines. Hyper-V delivers broad compatibility for
tual machines off the host system so you can ing, which means you will have lost all state Hyper-V has gone through the Secure De- drivers and devices, making it easier to man-
either perform hardware maintenance or ap- information. This might or might not be a velopment Lifecycle (SDL) like the rest of age the different drivers that are running in
ply patches to the host system or the virtu- problem, depending on the workload you are the Windows Server components, and exten- your environment.
alisation platform (which may potentially running in the virtual machine. That’s why it sive threat modelling and analysis has been
require a reboot). is important to look at backup in the context carried out to ensure that Hyper-V is a highly Wrapping up
Most organisations have planned main- of high availability. secure virtualisation platform. As you deploy As I mentioned earlier, management is go-
tenance windows, and what you are really Hyper-V lets you take backups of each Hyper-V, be sure to follow the best practices ing to be a key area of development and dif-
looking to do here is to minimise or elim- virtual machine or use VSS to take consis- for deploying Windows Server 2008 and also ferentiation. You will certainly see a lot of
inate the period of time in which the vir- tent backups of all the VSS-aware virtual activity in that area in the years to come.
tual machines will not be available while machines while they are still running. With Rajiv Arunkundram is a senior product manager at Microsoft focused With virtualisation becoming more main-
the host system is down for maintenance. VSS, you can set up backups to occur at set on server virtualisation in the Windows Server Marketing division. Rajiv’s stream, these are exciting times. ■
With the Quick Migration feature, you can intervals without having an impact on the primary responsibility is to work with customers and partners to help them
rapidly migrate a running virtual machine production workload availability while en- understand the virtualisation strategy and solutions of Microsoft from a For more information on Hyper-V, visit:
from one physical node to another in a mat- suring that you have a continuous backup technical and business perspective. www.microsoft.com/Hyper-V

18 To get your FREE copy of TechNet Magazine subscribe at: www.microsoft.com/uk/technetmagazine TechNet Magazine November 2008 19

Anda mungkin juga menyukai