0% found this document useful (0 votes)
184 views28 pages

Overview of Hyper-V

Hyper-V enables you to create virtual machines on a physical computer to improve hardware efficiency. It allows multiple operating systems to run simultaneously in isolated virtual environments. Key features include hypervisor-based virtualization, snapshots of virtual machine states, large memory support, and networking capabilities. Requirements include an x64 processor with hardware virtualization and data execution prevention enabled. Virtual machines have limits on resources like processors, memory, disks and networking adapters. The physical server running Hyper-V also has limits on total virtual machines, processors, memory and other resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views28 pages

Overview of Hyper-V

Hyper-V enables you to create virtual machines on a physical computer to improve hardware efficiency. It allows multiple operating systems to run simultaneously in isolated virtual environments. Key features include hypervisor-based virtualization, snapshots of virtual machine states, large memory support, and networking capabilities. Requirements include an x64 processor with hardware virtualization and data execution prevention enabled. Virtual machines have limits on resources like processors, memory, disks and networking adapters. The physical server running Hyper-V also has limits on total virtual machines, processors, memory and other resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Overview of Hyper-V

Hyper-V in Windows Server 2008 and Windows Server 2008 R2 enables you to create a
virtualized server computing environment. You can use a virtualized computing environment to
improve the efficiency of your computing resources by utilizing more of your hardware
resources. This is possible because you use Hyper-V to create and manage virtual machines and
their resources. Each virtual machine is a virtualized computer system that operates in an isolated
execution environment. This allows you to run multiple operating systems simultaneously on one
physical computer.
What does Hyper-V do?
Hyper-V provides software infrastructure and basic management tools that you can use to create
and manage a virtualized server computing environment. This virtualized environment can be
used to address a variety of business goals aimed at improving efficiency and reducing costs. For
example, a virtualized server environment can help you:

Reduce the costs of operating and maintaining physical servers by increasing your
hardware utilization. You can reduce the amount of hardware needed to run your server
workloads.

Increase development and test efficiency by reducing the amount of time it takes to set up
hardware and software and reproduce test environments.

Improve server availability without using as many physical computers as you would need
in a failover configuration that uses only physical computers.

Who will be interested in this role?


Hyper-V can be useful to you if you are:

An IT administrator, planner, or designer.

An IT architect responsible for computer management and security throughout your


organization.

An IT operations manager who is looking for ways to reduce the total cost of ownership
of their server infrastructure, in terms of both power costs and management costs.

A software developer or tester who is looking for ways to increase productivity by


reducing the time it takes to build and configure a server for development or test use.

What are the key features of Hyper-V?


The key features of Hyper-V are as follows:

64-bit native hypervisor-based virtualization.

Ability to run 32-bit and 64-bit virtual machines concurrently.

Uniprocessor and multiprocessor virtual machines.

Virtual machine snapshots, which capture the state, data, and hardware configuration of a
running virtual machine. Because snapshots record system states, you can revert the
virtual machine to a previous state.

Large virtual machine memory support.

Virtual local area network (VLAN) support.

Microsoft Management Console (MMC) management snap-in.

Documented Windows Management Instrumentation (WMI) interfaces for scripting and


management.

Hyper-V in Windows Server 2008 R2 adds the following features:

Live migration

Dynamic virtual machine storage

Enhanced processor support

Enhanced networking support

Requirements and Limits for Virtual Machines and Hyper-V in Windows Server
2008 R2
To effectively plan for and deploy Hyper-V in Windows Server 2008 R2, you should understand
the requirements and maximum configurations for the physical and virtual hardware that will
comprise the virtualized server computing environment. You will need to consider the
maximums that apply to each virtual machine as well as those that apply to the physical
computer that runs the Hyper-V role.

Virtual Machines
2

The following table lists the maximums that apply to each virtual machine.
Component
Virtual processors

Maximum
4

Memory

64 GB

Virtual IDE disks

Virtual
controllers

SCSI 4

Virtual SCSI disks

256

Virtual hard disk 2040 GB


capacity
Size of physical Varies
disks
attached
directly to a virtual
machine
Snapshots
50

Virtual
adapters

Notes
The number of virtual processors supported by a guest
operating system might be lower. For more information,
see About Virtual Machines and Guest Operating
Systems.
Review the requirements for the specific operating
system to determine the minimum and recommended
amounts.
The startup disk (sometimes referred to as the boot disk)
must be attached to one of the IDE devices. The startup
disk can be either a virtual hard disk or a physical disk
attached directly to a virtual machine.
Use of virtual SCSI devices requires integration services
to be installed in the guest operating system. For a list of
the guest operating systems for which integration
services are available, see About Virtual Machines and
Guest Operating Systems
Each SCSI controller supports up to 64 disks, which
means that each virtual machine can be configured with
as many as 256 virtual SCSI disks. (4 controllers x 64
disks per controller)
Each virtual hard disk is stored as a .vhd file on physical
media.
Maximum size is determined by the guest operating
system.

The actual number may be lower, depending on the


available storage. Each snapshot is stored as an .avhd file
that consumes physical storage.

network 12

8 can be the network adapter type. This type


provides better performance and requires a
virtual machine driver that is included in the
integration services packages.

4 can be the legacy network adapter type. This


type emulates a specific physical network adapter
and
supports
the
Pre-execution
Boot
3

Environment (PXE) to perform network-based


installation of an operating system.
Virtual
floppy 1
virtual None.
devices
floppy drive
Serial (COM) ports 2
None.
Server running Hyper-V
The following table lists the requirements and maximums that apply to the server running HyperV. In addition, we recommend that you review the Windows Catalog to identify servers that are
qualified for use with Hyper-V. You can identify systems that support the x64 architecture and
Hyper-V by searching the Windows Server catalog.
Component
Logical
processors

Maximum
64

Virtual
12 with conditions met
processors per in the Notes column,
logical
otherwise 8.
processor
Virtual
384 running virtual
machines per machines
server
Virtual
512
processors per
server
Memory
1 TB

Notes
Both of the following must be available and enabled in the
BIOS:

Hardware-assisted virtualization

Hardware-enforced
(DEP)

Data

Execution

Prevention

A ratio of 12:1 is supported on Hyper-V in Windows Server


2008 R2 Service Pack 1 when all guest operating systems
on the server run Windows 7. Otherwise, the supported ratio
is 8:1.
None.

None.

None.

Storage

Limited by what is
supported
by
the
management operating
system.
No limits
imposed by Hyper-V.

For more information about the storage options for HyperV, see Planning for Disks and Storage. For general
information about storage for Windows Server, see
Reviewing Storage Limits (http://go.microsoft.com/fwlink/?
LinkID=161361).
Note
Microsoft does not support network-attached storage (NAS)
for Hyper-V.

Physical
network
adapters
Virtual
networks
(switches)
Virtual
network switch
ports per server

No limits imposed by None.


Hyper-V.
Varies;
no
limits The practical limit depends on the available computing
imposed by Hyper-V.
resources.
Varies;
no
limits The practical limit depends on the available computing
imposed by Hyper-V.
resources.

Failover Clusters and Hyper-V


The following table lists the maximums that apply to highly available servers running Hyper-V.
It is important to do capacity planning to ensure that there will be enough hardware resources to
run all the virtual machines in a clustered environment.
Component
Maximum
Nodes
per 16
cluster

Notes
Consider the number of nodes you want to reserve for
failover, as well as maintenance tasks such as applying
updates. We recommend that you plan for enough
resources to allow for 1 node to be reserved for failover,
which means it remains idle until another node is failed
over to it. (This is sometimes referred to as a passive
node.) You can increase this number if you want to
reserve additional nodes. There is no recommended ratio
or multiplier of reserved nodes to active nodes; the only
specific requirement is that the total number of nodes in a
cluster cannot exceed the maximum of 16.
Running virtual 1,000
per Several factors can affect the real number of virtual
machines
per cluster, with a machines that can be run at the same time on one node,
cluster and per maximum
of such as:
node
384 on any one
5

node

Amount of physical memory being used by each


virtual machine.

Networking and storage bandwidth.

Number of disk spindles, which affects disk I/O


performance.

Hardware Considerations
To effectively plan for and deploy Hyper-V, you should understand the requirements and
maximum configurations for the physical and virtual hardware that will comprise the virtualized
server computing environment.
Hardware requirements
Hyper-V requires specific hardware. To install and use the Hyper-V role, you will need the
following:

An x64-based processor. Hyper-V is available in 64-bit editions of Windows


Server 2008specifically, the 64-bit editions of Windows Server 2008 Standard,
Windows Server 2008 Enterprise, and Windows Server 2008 Datacenter. Hyper-V is not
available for 32-bit (x86) editions or Windows Server 2008 for Itanium-Based Systems.
However, the Hyper-V management tools are available for 32-bit editions.

Hardware-assisted virtualization. This is available in processors that include a


virtualization optionspecifically processors with Intel Virtualization Technology (Intel
VT) or AMD Virtualization (AMD-V) technology.

Hardware-enforced Data Execution Prevention (DEP) must be available and


enabled. Specifically, you must enable Intel XD bit (execute disable bit) or AMD NX bit
(no execute bit).

You can identify systems that support the x64 architecture and Hyper-V by searching the
Windows Server catalog for Hyper-V.
Tip
The settings for hardware-assisted virtualization and hardware-enforced DEP are available in
the BIOS. However, the names of the settings may differ from the names identified above. For
more information about whether a specific processor model supports Hyper-V, check with the
manufacturer of the computer. If you modify the settings for hardware-assisted virtualization
6

or hardware-enforced DEP, we recommend that you turn off the power to the computer and
then turn it back on. Restarting the computer may not apply the changes to the settings.
Memory
The maximum amount of memory that can be used is determined by the operating system, as
follows:

For Windows Server 2008 Enterprise and Windows Server 2008 Datacenter, the physical
computer can be configured with up to 1 TB of physical memory, and virtual machines
that run either of those editions can be configured with up to 64 GB of memory per
virtual machine.

For Windows Server 2008 Standard, the physical computer can be configured with up to
32 GB of physical memory, and virtual machines that run that edition can be configured
with up to 31 GB of memory per virtual machine.

Processors
The release version of Hyper-V is supported on physical computers with up to 16 logical
processors. However, a hotfix (KB956710) is available that increases the maximum number of
virtual processors to 24. For more information and links to the updates, see Hyper-V Update List.
A logical processor can be a single core or multi-core processor. You can configure up to 4
virtual processors on a virtual machine. Note that the number of virtual processors supported by
a guest operating system might be lower. For more information, see About Virtual Machines and
Guest Operating Systems. The following are some examples of supported systems and the
number of logical processors they provide:

A single-processor/dual-core system provides 2 logical processors.

A single-processor/quad-core system provides 4 logical processors.

A dual-processor/dual-core system provides 4 logical processors.

A dual-processor/quad-core system provides 8 logical processors.


7

A quad-processor/dual-core system provides 8 logical processors.

A quad-processor/dual-core, hyper-threaded system provides 16 logical processors.

A quad-processor/quad-core system provides 16 logical processors.

Networking
Hyper-V provides a variety of networking options and configurations to meet different
networking requirements. For more information about different types of virtual networks and
virtual network adapters, see Configuring Virtual Networks.
Hyper-V networking includes the following support:

Each virtual machine can be configured with up to 12 virtual network adapters8 can be
the network adapter type and 4 can be the legacy network adapter type. The network
adapter type provides better performance and requires a virtual machine driver that is
included in the integration services packages.

Each virtual network adapter can be configured with either a static or dynamic MAC
address.

Each virtual network adapter offers integrated virtual local area network (VLAN) support
and can be assigned a unique VLAN channel.

You can have an unlimited number of virtual networks with up to 512 virtual machines
per virtual network.

Note
You cannot connect a virtual network to a wireless network adapter. As a result, you cannot
provide wireless networking capabilities to virtual machines.
Storage
Hyper-V supports a variety of storage options. For more information about the storage options,
see Planning for Disks and Storage.
You can use the following types of physical storage with a server that runs Hyper-V:

Direct-attached storage: You can use Serial Advanced Technology Attachment (SATA),
external Serial Advanced Technology Attachment (eSATA), Parallel Advanced
Technology Attachment (PATA), Serial Attached SCSI (SAS), SCSI, USB, and Firewire.

Storage area networks (SANs): You can use Internet SCSI (iSCSI), Fibre Channel, and
SAS technologies.

Important
Microsoft does not support network-attached storage (NAS) for Hyper-V.
You can configure a virtual machine to use the following types of storage:

Virtual IDE devices. Each virtual machine supports up to 4 IDE devices. The startup
disk (sometimes referred to as the boot disk) must be attached to one of the IDE devices.
The startup disk can be either a virtual hard disk or a physical disk. Although a virtual
machine must use a virtual IDE device as the startup disk to start the guest operating
system, you have many options to choose from when selecting the physical device that
will provide the storage for the virtual IDE device. For example, you can use any of the
types of physical storage identified in the preceding list.

Virtual SCSI devices. Each virtual machine supports up to 4 virtual SCSI controllers,
and each controller supports up to 64 disks. This means that each virtual machine can be
configured with as many as 256 virtual SCSI disks. Use of virtual SCSI devices requires
integration services to be installed in the guest operating system. For a list of the guest
operating systems for which integration services are available, see About Virtual
Machines and Guest Operating Systems

Virtual hard disks of up to 2040 GB. You can use fixed virtual hard disks, dynamically
expanding virtual hard disks, and differencing disks.

Physical disks. Physical disks attached directly to a virtual machine have no size
limitation other than what is supported by the guest operating system.

Virtual machine storage capacity. Using virtual hard disks, each virtual machine
supports up to 512 TB of storage. Using physical disks, this number is even greater
depending on what is supported by the guest operating system.

Virtual machine snapshots. Hyper-V supports up to 50 snapshots per virtual machine.

Tip
Although the I/O performance of physical SCSI and IDE devices can differ significantly, this
is not true for the virtualized SCSI and IDE devices in Hyper-V. Hyper-V IDE and SCSI
storage devices both offer equally fast high I/O performance when integration services are
installed in the guest operating system. For a list of the guest operating systems for which
integration services are available, see About Virtual Machines and Guest Operating Systems.
Other hardware components
9

The following is information about the other types of physical and virtual hardware components
that you can use with Hyper-V.

DVD
drive

Virtual
COM
port

Virtual
floppy
drive

A virtual machine has 1 virtual DVD drive by default when you create the virtual
machine. Virtual machines can be configured with up to 3 DVD drives, connected
to an IDE controller. (Virtual machines support up to 4 IDE devices, but one
device must be the startup disk.)
A virtual DVD drive can access CDs and DVDs, either .iso files or physical
media. However, only one virtual machine can be configured to access a physical
CD/DVD drive at a time.
Each virtual machine is configured with 2 virtual serial (COM) ports that can be
attached to a named pipe to communicate with a local or remote physical
computer.
Note
No access to a physical COM port is available from a virtual machine.
Each virtual machine is configured with 1 virtual floppy drive, which can access
virtual floppy disk (.vfd) files.
Note
No access to a physical floppy drive is available from a virtual machine.

Install the Hyper-V Role on a Full Installation of Windows Server 2008


Installing the Hyper-V role on a full installation of Windows Server 2008 installs all the
components of the Hyper-V technology, including the remote management tools. The tools
consist of Hyper-V Manager, which is a Microsoft Management Console (MMC) snap-in, and
Virtual Machine Connection, which provides you with direct access to a virtual machine through
a network connection.
The release version of this role is distributed in an update package. We recommend that you
obtain and apply the update package before you install and begin using the Hyper-V role.
Important
If you have installed an earlier version of Hyper-V, we strongly recommend that you review
the information about migrating to the release version of Hyper-V before you apply the update
package. Some components cannot be migrated, as explained in the support article that
describes the role update package. For more information, see article 950050 in the Microsoft
Knowledge Base (http://go.microsoft.com/fwlink/?LinkId=122188).
Important
Membership in the local Administrators group, or equivalent, is the minimum required to
complete this procedure.
10

To install the Hyper-V role


1. If you recently installed Windows Server 2008, Initial Configuration Tasks may be
displayed. You can install Hyper-V from Initial Configuration Tasks or from Server
Manager:
o In Initial Configuration Tasks, under Customize This Server, click Add roles.
o In Server Manager, under Roles Summary, click Add Roles. (If Server Manager
is not running, click Start, point to Administrative Tools, click Server
Manager, and then, if prompted for permission to continue, click Continue.
2. On the Select Server Roles page, click Hyper-V.
3. On the Create Virtual Networks page, click one or more network adapters if you want
to make their connection to a physical network available to virtual machines.
4. On the Confirm Installation Selections page, click Install.
5. The computer must be restarted to complete the installation. Click Close to finish the
wizard, and then click Yes to restart the computer.
6. After you restart the computer, log on with the same account you used to install the role.
After the Resume Configuration Wizard completes the installation, click Close to finish
the wizard.
Additional considerations

You can create a virtual network when you install the Hyper-V role. This action changes
the configuration of the physical network adapter you selected when you installed the
role. For more information about how a physical network adapter operates after you
associate it to a virtual network, see Configuring Virtual Networks.

You can install the management tools on some versions of Windows without installing
the Hyper-V role. For more information about installing the tools without installing the
Hyper-V role, see Install and Configure Hyper-V Tools for Remote Administration.

When the Hyper-V role is installed, the use of Virtual Server or Virtual PC on the
computer is not supported.

Install and Configure Hyper-V Tools for Remote Administration


The Hyper-V management tools consist of Hyper-V Manager, which is a Microsoft Management
Console (MMC) snap-in, and Virtual Machine Connection, which provides remote connectivity
11

directly to a virtual machine. These tools are installed automatically when you install the HyperV role. However, you can also install them by themselves to remotely manage a server running
Hyper-V.
Compatibility between the Hyper-V remote management tools and the server running Hyper-V is
affected by the version of the tools and the version of Hyper-V. As a general rule, you can use a
newer version of the tools to manage an older version of Hyper-V, but you cannot use an older
version of the tools to manage a newer version of Hyper-V.
The following table identifies the versions of Hyper-V that you can manage with a particular
version of the tools, as well as the operating system you can install the tools on.
Note
Membership in the local Administrators group, or equivalent, is the minimum required to
complete this procedure.
Version of Hyper-V Tools

Version of Hyper-V

Windows Client Operating


System

Remote Server Administration


Tools
for
Windows
7
(http://www.microsoft.com/downl
oads/details.aspx?
displaylang=en&FamilyID=7d2f6a
d7-656b-4313-a0054e344e43997d)
Windows Server 2008 R2

Windows Server 2008 R2


Windows Server 2008
SP2
Windows Server 2008,
with Hyper-V RTM
update
installed
(KB950500)
Windows Server 2008 R2

Windows
7
Enterprise,
Windows 7 Professional, or
Windows 7 Ultimate editions)

Windows Server 2008 R2


(which versions?)
Update for Windows Vista Service Windows Server 2008 ??
Pack 2 Management Tools for Service Pack 2 (SP2)
Hyper-V
(KB970203)
http://www.microsoft.com/downlo
ads/details.aspx?
familyid=551A9B83-241B-4E86B329441374DDCF23&displaylang=en
Windows Server 2008 32-bit or Windows Server 2008, Windows Vista Service Pack 1
64-bit, as follows:
with Hyper-V RTM (SP1)
(Supported
on
For 32-bit, download and apply update
installed WindowsVista Ultimate with
update NNN. For 64-bit, NNN
(KB950500)
SP1,
WindowsVista
Windows Vista, download and
Enterprise with SP1, and
12

apply
update
KB952627
http://support.microsoft.com/kb/95
2627

WindowsVista Business with


SP1)
http://www.microsoft.com/dow
nloads/details.aspx?
familyid=BF909242-21254D06-A968C8A3D75FF2AA&displaylang
=en
Update for Windows Vista Service Windows Server 2008, Windows Vista Service Pack 2
Pack 2 Management Tools for with Hyper-V RTM (SP2)
Hyper-V
(KB970203) update
installed
http://www.microsoft.com/downlo (KB950500)
ads/details.aspx?
familyid=551A9B83-241B-4E86B329441374DDCF23&displaylang=en
Hyper-V Remote Management Windows Server 2008,
Update for Windows Vista for x64- with Hyper-V RTM
based
Systems
(KB952627) update
installed
http://www.microsoft.com/downlo (KB950500)
ads/details.aspx?
familyid=88208468-0AD6-47DE8580085CBA42C0C2&displaylang=en
Installing the management tools
Before you install the management tools, you might need to obtain an update package that
includes the tools. The table in the previous section identifies the operating systems for which the
tools are distributed in an update package. The table also contains links to the update packages
To install the management tools on Windows 7 or Windows Vista SP1
1. Download the update package and then double-click the .msu file.
2. If you are installing the tools on a supported version of Windows Vista SP1, no additional
installation steps are required, so you can proceed to the configuration instructions.
To install the management tools on Windows Server
1. If you are installing a version that is distributed in an update package, do one of the
following:
13

2. Open Server Manager. (If Server Manager is not running, click Start, point to
Administrative Tools, click Server Manager, and then, if prompted for permission to
continue, click Continue.)
3. In Server Manager, under Features Summary, click Add Features.
4. On the Select Features page, expand Remote Server Administration Tools, and then
expand Remote Administration Tools.
5. Click Hyper-V Tools, and then proceed through the rest of the wizard.
Configuring the management tools
The configuration process consists of modifying various components that control access and
communications between the server running Hyper-V and the computer on which you will run
the Hyper-V management tools.
Note
No additional configuration is required if you are using the management tools on a computer
running Windows Server 2008 and the same user account is a member of the Administrators
group on both computers.
Configuring the server running Hyper-V
The following procedures describe how to configure the server running Hyper-V. When domainlevel trust is not established, perform all the steps. When domain-level trust exists but the remote
user is not a member of the Administrators group on the server running Hyper-V, you must
modify the authorization policy, but you can skip the steps for modifying the Distributed COM
Users group and the Windows Management Instrumentation (WMI) namespaces.
Note
The following procedures assume that you have installed the Hyper-V role on the server. For
instructions about installing the Hyper-V role, see Install the Hyper-V Role on a Full
Installation of Windows Server 2008 or Install the Hyper-V Role on a Server Core Installation
of Windows Server 2008.
To configure the Hyper-V role for remote management on a full installation of Windows
Server 2008
1. Enable the firewall rules for Windows Management Instrumentation. From an elevated
command prompt, type:
14

netsh advfirewall firewall set rule group=Windows Management Instrumentation


(WMI) new enable=yes
The command has succeeded when it returns the following message: Updated 4
rules(s). Ok.
Note
To verify that the command succeeded, you can view the results in Windows Firewall with
Advanced Security. Click Start, click Control Panel, switch to Classic View if you are not
using that view, click Administrative Tools, and then click Windows Firewall with
Advanced Security. Select inbound rules or outbound rules and then sort by the Group
column. There should be three inbound rules and one outbound rule enabled for Windows
Management Instrumentation.
2. The next steps configure the authorization policy for the server running the Hyper-V role.
If the user who requires remote access to the server running Hyper-V belongs to the
Administrators group on both computers, then it is not necessary to configure the
authorization policy.

Note
The instructions for configuring the authorization policy assume that the default authorization
policy has not been modified, including the default location, and that the account you are
configuring for remote access requires full administrative access to the Hyper-V role.
3. Click Start, click Start Search and type azman.msc. If you are prompted to confirm the
action, click Continue. The Authorization Manager MMC snap-in opens.
4. In the navigation pane, right-click Authorization Manager and click Open
Authorization Store. Make sure that XML file is selected. Browse to the %system drive
%\ProgramData\Microsoft\Windows\Hyper-V folder, select InitialStore.xml, click Open
and then click OK.
Note
The Program Data folder is a hidden folder by default. If the folder is not visible, type:
<system_drive>\ProgramData\Microsoft\Windows\Hyper-V\initialstore.xml
5. In the navigation pane, click Hyper-V services, and then click Role Assignments. Rightclick Administrator, point to Assign Users and Groups, and then point to From
Windows and Active Directory. In the Select Users, Computers, or Groups dialog
box, type the domain name and user name of the user account, and then click OK.

15

6. Close Authorization Manager.


7. Next, you add the remote user to the Distributed COM Users group to provide access to
the remote user. Click Start, point to Administrative tools, and click Computer
Management. If User Account Control is enabled, click Continue. Component Services
opens.
8. Expand Local Users and Groups, and then click Groups. Right-click Distributed
COM Users and click Add to Group.
9. In the Distributed COM Users Properties dialog box, click Add.
10. In the Select Users, Computers, or Groups dialog box, type the name of the user and
click OK.
11. Click OK again to close the Distributed COM Users Properties dialog box. Close
Component Services.
12. The remaining steps grant the required WMI permissions to the remote user for two
namespaces: the CIMV2 namespace and the virtualization namespace. Click Start, click
Administrative Tools, and then click Computer Management.
13. In the navigation pane, click Services and Applications, right-click WMI Control, and
then click Properties.
14. Click the Security tab, click Root, and then click CIMV2. Below the namespace list,
click Security.
15. In the Security for ROOT\CIMV2 dialog box, check to see if the appropriate user is
listed. If not, click Add. In the Select Users, Computers, or Groups dialog box, type the
name of the user and click OK.
16. On the Security tab, select the name of the user. Under Permissions for <user or group
name>, click Advanced. On the Permissions tab, verify that the user you want is
selected and then click Edit. In the Permission Entry for CIMV2 dialog box, modify
three settings as follows:
o For Apply to, select This namespace and subnamespaces.
o In the Permissions list, in the Allow column, select the Remote Enable check
box.

16

o Below the Permissions list, select the Apply these permissions to objects
and/or containers within this container only check box.
17. Click OK in each dialog box until you return to the WMI Control Properties dialog
box.
18. Next, you repeat the process for the virtualization namespace. Scroll down if necessary
until you can see the virtualization namespace. Click virtualization. Below the
namespace list, click Security.
19. In the Security for ROOT\virtualization dialog box, check to see if the appropriate user
is listed. If not, click Add. In the Select Users, Computers, or Groups dialog box, type
the name of the user and click OK.
20. On the Security tab, select the name of the user. Under Permissions for <user or group
name>, click Advanced. On the Permissions tab, verify that the user you want is
selected and then click Edit. In the Permission Entry for virtualization dialog box,
modify three settings as follows:
o For Apply to, select This namespace and subnamespaces.
o In the Permissions list, in the Allow column, select the Remote Enable check
box.
o Below the Permissions list, select the Apply these permissions to objects
and/or containers within this container only check box.
21. Click OK in each dialog box and then close Computer Management.
22. Restart the server to apply the changes to the authorization policy.
To configure the Hyper-V role for remote management on a Server Core installation of
Windows Server 2008
1. Enable the firewall rules on the server for Windows Management Instrumentation. From
an elevated command prompt, type:
netsh advfirewall firewall set rule group=Windows Management Instrumentation
(WMI) new enable=yes
The command has succeeded when it returns the following message: Updated 4
rules(s). Ok.

17

2. Next, you modify the Distributed COM permissions to provide access to the remote user.
Type:
net localgroup Distributed COM Users /add <domain_name>\<user_name>
where <domain_name> is the domain that the user account belongs to and <user_name>
is the user account you want to grant remote access to.
3. Next, you connect remotely to the server running the Server Core installation so you can
modify the authorization policy and the two WMI namespaces, using MMC snap-ins that
are not available on the Server Core installation.
Log on to the computer on which you will run the Hyper-V management tools, using a
domain account that is a member of the Administrators group on the computer running a
Server Core installation. (If you need to add this user, see the instructions in Install the
Hyper-V Role on a Server Core Installation of Windows Server 2008.)
Note
The instructions for configuring the authorization policy assume that the default authorization
policy has not been modified, including the default location, and that the account you are
configuring for remote access requires full administrative access to the Hyper-V role.
4. Click Start, click Start Search and type azman.msc. If you are prompted to confirm the
action, click Continue. The Authorization Manager snap-in opens.
5. In the navigation pane, right-click Authorization Manager and click Open
Authorization Store. Make sure that XML file is selected and type:
\\<remote_computer>\c$\ProgramData\Microsoft\Windows\HyperV\initialstore.xml
where <remote_computer> is the name of the computer running the Server Core
installation.
Click Open and then click OK.
6. In the navigation pane, click Hyper-V services, and then click Role Assignments. Rightclick Administrator, point to Assign Users and Groups, and then point to From
Windows and Active Directory. In the Select Users, Computers, or Groups dialog
box, type the domain name and user name of the user account, and then click OK.
7. Close Authorization Manager.

18

8. The remaining steps grant the required WMI permissions to the remote user for two
namespaces: the CIMV2 namespace and the virtualization namespace. Click Start, click
Administrative Tools, and then click Computer Management.
9. In the navigation pane, click Services and Applications, right-click WMI Control, and
then click Properties.
10. Click the Security tab. Click Root and then click CIMV2. Below the namespace list,
click Security.
11. In the Security for ROOT\CIMV2 dialog box, check to see if the appropriate user is
listed. If not, click Add. In the Select Users, Computers, or Groups dialog box, type the
name of the user and click OK.
12. On the Security tab, select the name of the user. Under Permissions for <user or group
name>, click Advanced. On the Permissions tab, verify that the user you want is
selected and then click Edit. In the Permission Entry for CIMV2 dialog box, modify
three settings as follows:
o For Apply to, select This namespace and subnamespaces.
o In the Permissions list, in the Allow column, select the Remote Enable check
box.
o Below the Permissions list, select the Apply these permissions to objects
and/or containers within this container only check box.
13. Click OK in each dialog box until you return to the WMI Control Properties dialog
box.
14. Next, you repeat the process for the virtualization namespace. Scroll down if necessary
until you can see the virtualization namespace. Click virtualization. Below the
namespace list, click Security.
15. In the Security for ROOT\virtualization dialog box, check to see if the appropriate user
is listed. If not, click Add. In the Select Users, Computers, or Groups dialog box, type
the name of the user and click OK.
16. On the Security tab, select the name of the user. Under Permissions for <user or group
name>, click Advanced. On the Permissions tab, verify that the user you want is
selected and then click Edit. In the Permission Entry for virtualization dialog box,
modify three settings as follows:
19

o For Apply to, select This namespace and subnamespaces.


o In the Permissions list, in the Allow column, select the Remote Enable check
box.
o Below the Permissions list, select the Apply these permissions to objects
and/or containers within this container only check box.
17. Click OK in each dialog box and then close Computer Management.
18. Restart the computer running a Server Core installation to apply the changes to the
authorization policy.
Configuring Virtual Networks
This topic describes the basics of virtual networking in Hyper-V and the different types of virtual
networks you can configure. Before you configure a virtual network, consider the types of
communication that will be required by the virtual machines. This will help you determine which
types of virtual networks you should configure on the server running Hyper-V.
This topic covers the following subjects:

Types of virtual networks

Networking and virtual machines

Configuring virtual local area networks (VLANs)

For examples that show you how to set up and use the different types of virtual networks, see
http://technet.microsoft.com/en-us/library/ee247420(WS.10).aspx.
Types of virtual networks
While Hyper-V allows you to configure complex virtual network environments, the basic
concept of virtual networking is straightforward. A virtual network works like a physical network
switch except that the switch is implemented in software (which is why it is sometimes referred
to as a virtual network switch). Ports are added or removed as they are needed when virtual
machines are connected to or disconnected from a virtual network.
Virtual Network Manager (available from the Hyper-V Manager snap-in) offers three types of
virtual networks that you can use to define various networking topologies for virtual machines
and the virtualization server. You can create the following types of virtual networks:

20

External virtual networks. Use this type when you want to provide virtual machines
with access to a physical network to communicate with externally located servers and
clients. This type of virtual network also allows virtual machines on the same
virtualization server to communicate with each other. This type of network may also be
available for use by the management operating system, depending on how you configure
the networking. (The management operating system runs the Hyper-V role.) For more
information, see A closer look at external virtual networks later in this topic.

Note
Hyper-V does not support wireless networks. An external virtual network provides access to a
physical network through a wired physical network adapter.

Internal virtual networks. Use this type when you want to allow communication
between virtual machines on the same virtualization server and between virtual machines
and the management operating system. This type of virtual network is commonly used to
build a test environment in which you need to connect to the virtual machines from the
management operating system. An internal virtual network is not bound to a physical
network adapter. As a result, an internal virtual network is isolated from all external
network traffic.

Private virtual networks. Use this type when you want to allow communication only
between virtual machines on the same virtualization server. A private virtual network is
not bound to a physical network adapter. A private virtual network is isolated from all
external network traffic on the virtualization server, as well any network traffic between
the management operating system and the external network. This type of network is
useful when you need to create an isolated networking environment, such as an isolated
test domain.

A closer look at external virtual networks


For a simple virtual network configuration that establishes connectivity to an external network,
we recommend that you have at least two network adapters on the server running Hyper-V: one
network adapter dedicated to the management operating system so you can access it remotely,
and one or more network adapters dedicated to the virtual machines. If you are running an
Internet SCSI (iSCSI) initiator for virtual hard disk storage, we recommend that you use
additional network adapters in the management operating system.
When you add the Hyper-V role during a full installation of Windows Server 2008 or Windows
Server 2008 R2, you have the option to configure one or more external virtual networks.
However, this option is not available when you install Hyper-V on a Server Core installation.
Important
When you create an external virtual network, external network connectivity is temporarily
disrupted.
21

When you create an external virtual network, this action affects how networking is configured in
the management operating system. Hyper-V creates a virtual network adapter in the management
operating system. Hyper-V then binds the standard services and protocols to the virtual network
adapter instead of the physical network adapter, and binds only the Virtual Network Service
Protocol to the physical network adapter.
After an external virtual network is configured, all networking traffic is routed though the virtual
network switch. The virtual network switch functions as a physical switch would and routes
networking traffic through the virtual network to its destination. For this reason, we recommend
using at least one additional physical network adapter for managing network traffic.
Networking and virtual machines
To connect a virtual machine to a virtual network, you add a virtual network adapter to the
virtual machine and then connect the virtual network adapter to an existing virtual network.
There are two types of network adapters available for Hyper-V: a network adapter and a legacy
network adapter.

The network adapter is designed specifically for Hyper-V and requires a virtual machine
driver that is included with the Hyper-V integration services. This type of networking
adapter provides better performance than a legacy network adapter and is the
recommended choice when it can be used. Because this type of virtual network adapter
requires integration services in the guest operating system, it can be used only with guest
operating systems for which integration services are available. For more information, see
About Virtual Machines and Guest Operating Systems.

Note
If a network adapter is configured for a virtual machine but integration services are not
installed in the guest operating system, Device Manager lists the network adapter as an
unknown device.

The legacy network adapter emulates an Intel 21140-based PCI Fast Ethernet Adapter.
This type of network adapter provides networking capabilities for two scenarios: when
using a guest operating systems for which integration services are not available, and
when network boot capabilities are required. The legacy network adapter uses a driver
that is available in most operating systems, instead of a Hyper-V specific driver. The
legacy network adapter also provides the ability to boot to the Pre-Boot Execution
Environment (PXE).

The network connection for a virtual machine is made by logically connecting it to a port on the
virtual network. For a networking application on the virtual machine to connect to external end
point, the networking packet is first routed through the virtual network adapter to the virtual port
on the external virtual network to which the virtual machine is attached. The networking packet
is then directed to the physical network adapter and out to an external physical network.
22

For the virtual machine to communicate with the management operating system, there are two
options. One option is to route the network packet through the physical network adapter and out
to the physical network, which then returns the packet back to the server running Hyper-V using
the second physical network adapter. Another option is to route the network packet through the
virtual network, which is more efficient. The option selected is determined by the virtual
network. The virtual network includes a learning algorithm, which determines the most efficient
port to direct traffic to and will send the network packet to that port. Until that determination is
made by the virtual network, network packets are sent out to all virtual ports.
Managing MAC addresses
A virtual machine can be configured to use a static MAC address or a dynamic MAC address.
Hyper-V assigns dynamic MAC addresses to virtual machines from a pool of available addresses
that are established when Hyper-V is installed. When there is more than one server running
Hyper-V on the same subnet and virtual machines use dynamic addresses, duplicate MAC
addresses might exist and networking conflicts might occur. In Hyper-V in Windows
Server 2008 R2, you can use Virtual Network Manager on each server running Hyper-V to define
different ranges of MAC addresses to help avoid duplicate MAC addresses.
Note
Modifying the range of available MAC addresses does not affect existing virtual machines that
are configured with a dynamic MAC address. To modify the MAC address of an existing
virtual machine, you can reconfigure the virtual network adapter to use a static MAC address,
or remove and then re-add the virtual network adapter to receive a new dynamic MAC
address.
Configuring virtual local area networks (VLANs)
All released versions of Hyper-V support virtual local area networks (VLANs). A VLAN
configuration is software-based, which means that you can easily move a computer and still
maintain their network configurations. For each virtual network adapter you connect to a virtual
machine, you can configure a VLAN ID for the virtual machine. You will need the following to
configure VLANs:

A physical network adapter that supports VLANs.

A physical network adapter that supports network packets with VLAN IDs that are
already applied.

On the management operating system, you will need to configure the virtual network to allow
network traffic on the physical port. This is for the VLAN IDs that you want to use internally
with virtual machines. Next, you configure the virtual machine to specify the virtual LAN that
the virtual machine will use for all network communications.
23

There are two modes in which you can configure a VLAN: access mode and trunk mode. In
access mode, the external port of the virtual network is restricted to a single VLAN ID in the UI.
You can have multiple VLANs using WMI. Use access mode when the physical network adapter
is connected to a port on the physical network switch that also is in access mode. To give a
virtual machine external access on the virtual network that is in access mode, you must configure
the virtual machine to use the same VLAN ID that is configured in the access mode of the virtual
network. Trunk mode allows multiple VLAN IDs to share the connection between the physical
network adapter and the physical network. To give virtual machines external access on the virtual
network in multiple VLANs, you need to configure the port on the physical network to be in
trunk mode. You will also need to know the specific VLANs that are used and all of the VLAN
IDs used by the virtual machines that the virtual network supports.
To allow Hyper-V to use a VLAN
1. Open Hyper-V Manager.
2. From the Actions menu, click Virtual Network Manager.
3. Select the virtual network you want to edit, and, in the right pane, check to select Enable
virtual LAN identification.
4. Enter a number for the VLAN ID. All traffic for the management operating system that
goes through the network adapter will be tagged with the VLAN ID you set.
To allow a virtual machine to use a VLAN
1. Open Hyper-V Manager.
2. In the results pane, under Virtual Machines, select the virtual machine that you want to
configure to use a VLAN.
3. In the Action pane, under the virtual machine name, click Settings.
4. Under Hardware, select the virtual network adapter connected to the external virtual
network.
5. In the right pane, select Enable virtual LAN identification, and then enter the VLAN ID
you plan to use.
If you need the virtual machine to communicate using additional VLANs, connect additional
network adapters to the appropriate virtual network and assign the VLAN ID. Make sure to
configure the IP addresses correctly and that the traffic you want to move across the VLAN is
also using the correct IP address.
24

Configuring Disks and Storage


You can use virtual hard disks as a storage option on the management operating system, and then
make the storage available to virtual machines.
You can create and manage virtual hard disks using the Hyper-V Manager tool. To create a new
virtual hard disk, you would use either the New Virtual Hard Disk Wizard or the New Virtual
Machine Wizard. If you are creating dynamically expanding disks, the New Virtual Machine
Wizard provides a way to create storage for the new virtual machine without running the New
Virtual Hard Disk Wizard. This can be useful if you want to install a guest operating system in a
virtual machine soon after you create it.
When creating a new virtual hard disk, a name and storage location is required. The disks are
stored as .vhd files, which makes them portable but also poses a potential security risk. You
should mitigate this risk by taking precautions such as storing the .vhd files in a secure location.
Do not create the virtual hard disk in a folder that is marked for encryption. Hyper-V does not
support the use of storage media if Encrypting File System has been used to encrypt the .vhd file.
However, you can use files stored on a volume that uses Windows Bitlocker Drive Encryption.
To create a virtual hard disk
1. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click
Hyper-V Manager.
2. In the Action pane, click New, and then click Hard Disk.
3. Proceed through the pages of the wizard to customize the virtual hard disk. You can click
Next to move through each page of the wizard, or you can click the name of a page in the
left pane to move directly to that page.
4. After you have finished configuring the virtual hard disk, click Finish.

How to configure physical disks that are directly attached to a virtual machine
You can use physical disks that are directly attached to a virtual machine as a storage option on
the management operating system. This allows virtual machines to access storage that is mapped
directly to the server running Hyper-V without first configuring the volume. The storage can be
either a physical disk which is internal to the server, or a SAN logical unit number (LUN) that is
mapped to the server (a LUN is a logical reference to a portion of a storage subsystem). The
virtual machine must have exclusive access to the storage, so the storage must be set in an
Offline state in Disk Management. The storage is not limited in size, so it can be a multiterabyte
LUN.
25

When using physical disks that are directly attached to a virtual machine, you should be aware of
the following:

This type of disk cannot be dynamically expanded.

You cannot use differencing disks with them.

You cannot take virtual hard disk snapshots.

To configure physical disks that are directly attached to a virtual machine


1. Map the storage device you plan to use to the server running Hyper-V. In Disk
Management, the storage appears as a raw volume and is in an Offline state.
2. To initialize the raw volume, in Disk Management, right-click the disk you want to
initialize, and then click Initialize Disk. Note that before you can initialize the disk, it
must be in an Online state.
3. In the Initialize Disk dialog box, select the disk to initialize. You can select whether to
use the master boot record (MBR) or GUID partition table (GPT) partition style.
4. After a disk is initialized, return it to an Offline state. If the disk is not in an Offline state,
it will not be available when configuring storage for a virtual machine.
5. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click
Hyper-V Manager.
6. If you have not yet created the virtual machine where you want to attach the physical
hard disk, create it by using the New Virtual Machine Wizard in Hyper-V Manager, and
on the Connect Virtual Hard Disk page, select Attach a virtual hard disk later.
7. On Hyper-V Manager, under Virtual Machines, select the virtual machine where you
want to attach the physical hard disk.
8. In the Action pane, under the virtual machine name, click Settings.
9. In the navigation pane (left pane), click the controller that you want to attach the disk to.
If you plan to use the disk as a startup disk, make sure you attach it to an IDE controller.
Click Add.
10. On the Hard Drive page, select the location on the controller to attach the disk.
11. Under Media, specify the physical hard disk. If the disk does not appear in the dropdown list under Physical hard disks, make sure the disk is in an Offline state in Disk
Management.
26

12. Once the physical disk is configured, you can start the virtual machine and store data on
the disk. If installing an operating system, the installation process automatically prepares
the disk for use. If you are using the physical disk to store data, it must first be prepared
by the virtual machine.
If you are installing an operating system on the physical disk and it is in an Online state before
the virtual machine is started, the virtual machine will fail to start. You must store the virtual
machine configuration file in an alternate location because the physical disk is used by the
operating system installation. For example, locate the configuration file on another internal drive
on the server running Hyper-V.
How to configure iSCSI-based storage
From the guest operating system, you can connect directly to iSCSI LUNs on a storage array.
Direct connectivity using iSCSI offers the following advantages over other iSCSI LUN options:

You can transparently operate SAN management applications.

Supports guest clustering.

You can connect to iSCSI LUNs without shutting down and restarting the guest operating
system.

You can manage LUNs in the guest operating system in the same way that LUNs are
managed in the physical environment.

Support for VSS hardware snapshots in the guest operating system.

To configure iSCSI direct connections on a guest operating system running Windows


Server 2008 or Windows Vista
1. From Control Panel, double-click iSCSI Initiator.
2. Click the Discovery tab, and then click Add to enter the IP address or DNS name of the
iSCSI target device.
3. Click the Targets tab, and then select the target device that you want to connect to.
4. Click Log On, and then, in the Log On to Target dialog box, configure the log on
parameters. Click OK when finished.
5. Open Computer Management, and then bring the iSCSI disk online and create partitions
on the new iSCSI LUN.

27

Note
For guest operating systems running Windows Server 2003 or Windows XP, you will need to
download the Microsoft iSCSI Initiator from the Microsoft Download Center
(http://go.microsoft.com/fwlink/?LinkId=160332).

28

You might also like