Implementing Server
Virtualization with Hyper-V
2
Installing Hyper-V
 Hyper-V is Microsoft's implementation of
virtualization technology.
 It allows us to create virtual machines (VMs)
 Separate working operating system on one physical
computer
 Reduce hardware costs
 On a windows server 2012, Hyper-V is a role, just
like other roles.
 So to install Hyper-V, we go to the server manager.
3
Installing Hyper-V
 On the server manager, click on Add roles and features, click
through this wizard the way we did in the past.
 If you are installing Hyper-V on a virtual machine, you will get an
error. Check this YouTube video to solve the error:
https://www.youtube.com/watch?v=rBPPkhkSHRU
 At the select server roles, select Hyper-V, and install it.
 While installing Hyper-V, at the ‘Create Virtual Switches’ page,
you will be asked to select a network adapter that will serve as
a virtual switch.
 Virtual switch enables the server to communicate other computers
on the network.
 Virtual switches are network adapters for virtual machines.
 You see one or more network adapters here.
 Select one external network adapter
4
Installing Hyper-V
 The next page is the virtual machine migration
page.
 Just leave this feature disabled for now, and click
next.
 The next page is the default stores page.
 Leave the default settings, and click next.
 Then finally confirm installation and Hyper-V
will be installed.
5
Creating Virtual Machines in Hyper-V
 After installation, when you return to the
server manager, you will now see the Hyper-V
role appearing in the list of installed roles on
the left hand side.
 The computer you installed Hyper-V is known
as Hyper-v host, and the operating system we
will install next is the hyper-v guest.
6
Creating Virtual Machines in Hyper-V
 While adding a guest hyper-v machine, you can
assign more than one virtual CPU (based on why the
virtual machine is required), to increase its speed.
 Regarding RAM, there are two ways that RAM can
be allocated for the virtual machines
 Static memory: RAM is allocated at once.
• The amount of RAM you mentioned is taken from the host
machine exclusively
• To change the size of the RAM, you have to shut down the
virtual machine.
• This was the only feature in Windows server 2008.
7
Creating Virtual Machines in Hyper-V
 Dynamic memory
• Introduced in Windows server 2008 R2 with service
pack 1
• Treats RAM as a shared resource
• The guest machine is allocated with starting RAM size,
but it will ask more if it is running out while executing.
8
Creating Virtual Machines in Hyper-V
 To create a virtual machine in hyper-v, go to
the server manager, click on tools menu, and
select Hyper-V Manager.
 Then opened is the Hyper-V manager console.
 On the left, you see the host name (this
server’s name).
 Right click on it, select new > virtual machine
 Then click next on the first page.
9
Creating Virtual Machines in Hyper-V
 Then give a name for the virtual machine
 So that it can be identified in hyper-v manager.
 You can also change the place where to store the virtual machine.
 Better to put it in a separate hard disk than C: drive
 Click next and you will then be asked to specify the
generation.
 Generation 2 are introduced in Windows Server 2012 R2, and
provide more advanced features and functionality than
generation 1 version.
 But you can only install the latest Windows server OS on them
(windows server 2012 and windows server 2012 r2, win8 64 bit,
win 8.1 64 bits or windows 10)
 Select the common generation 1 version and click next.
10
Creating Virtual Machines in Hyper-V
 Then you will be asked to assign memory
 Here you can enter the amount of RAM to use
static memory (give it at least about 850 MB)
 Also check the box for using dynamic memory.
 Then you will be asked to configure networking
 Select external network adapter card (not internal).
 Then on the connect virtual hard disk page, you
can set up hard disk related things, just leave the
default and click next
11
Creating Virtual Machines in Hyper-V
 Then you will be asked the source of the OS to install
from.
 We will install the OS later
 Then click next and finish
 When the machine is created, it will appear in the
hyper-v manager console.
 You can right click on the virtual machine and select
settings, to modify many characteristics of the virtual
machine, including the number of processors assigned
12
Installing the Operating System in Hyper-V
 We can install an operating system from .iso image or
DVD to a Hyper-V virtual machine.
 We will use an iso image to install windows server 2012
R2.
 Open the hyper-v manager, right click on the virtual
machine (at the middle pane), and select settings.
 On the settings window, click on DVD Drive under IDE
controller 1.
 On the right, select image file option button.
 Then click on the browse button and find the iso image.
13
Installing the Operating System in Hyper-V
 Then click ok.
 Then start the virtual machine from the hyper-v manager, by
right click and start, or double click on it, go to action menu,
and click on start.
 Then the virtual machine starts installation from the iso image.
 If you get error while installation saying it encountered unexpected
error, and the RAM you allocated was the minimum 512 MB, just go
to the setting and increase the RAM size to around 850 MB
 Finally you will be asked to enter password for the
Administrator.
 That way you have one virtual machine with Windows Server
2012 R2.
14
Installing the Operating System in Hyper-V
 You can add more than one virtual machines in
hyper-v, and treat them just as separate windows
servers.
 Then join the domain from each, and install roles
required.
 The virtual machines auto start whenever you
start the host machine.
 The virtual machines give service on the network
just like any physical server do.

12 Implementing Update Doc.pptxUpdateUpdateUpdateUpdateUpdate Virtualization with Hyper-V.pptx

  • 1.
  • 2.
    2 Installing Hyper-V  Hyper-Vis Microsoft's implementation of virtualization technology.  It allows us to create virtual machines (VMs)  Separate working operating system on one physical computer  Reduce hardware costs  On a windows server 2012, Hyper-V is a role, just like other roles.  So to install Hyper-V, we go to the server manager.
  • 3.
    3 Installing Hyper-V  Onthe server manager, click on Add roles and features, click through this wizard the way we did in the past.  If you are installing Hyper-V on a virtual machine, you will get an error. Check this YouTube video to solve the error: https://www.youtube.com/watch?v=rBPPkhkSHRU  At the select server roles, select Hyper-V, and install it.  While installing Hyper-V, at the ‘Create Virtual Switches’ page, you will be asked to select a network adapter that will serve as a virtual switch.  Virtual switch enables the server to communicate other computers on the network.  Virtual switches are network adapters for virtual machines.  You see one or more network adapters here.  Select one external network adapter
  • 4.
    4 Installing Hyper-V  Thenext page is the virtual machine migration page.  Just leave this feature disabled for now, and click next.  The next page is the default stores page.  Leave the default settings, and click next.  Then finally confirm installation and Hyper-V will be installed.
  • 5.
    5 Creating Virtual Machinesin Hyper-V  After installation, when you return to the server manager, you will now see the Hyper-V role appearing in the list of installed roles on the left hand side.  The computer you installed Hyper-V is known as Hyper-v host, and the operating system we will install next is the hyper-v guest.
  • 6.
    6 Creating Virtual Machinesin Hyper-V  While adding a guest hyper-v machine, you can assign more than one virtual CPU (based on why the virtual machine is required), to increase its speed.  Regarding RAM, there are two ways that RAM can be allocated for the virtual machines  Static memory: RAM is allocated at once. • The amount of RAM you mentioned is taken from the host machine exclusively • To change the size of the RAM, you have to shut down the virtual machine. • This was the only feature in Windows server 2008.
  • 7.
    7 Creating Virtual Machinesin Hyper-V  Dynamic memory • Introduced in Windows server 2008 R2 with service pack 1 • Treats RAM as a shared resource • The guest machine is allocated with starting RAM size, but it will ask more if it is running out while executing.
  • 8.
    8 Creating Virtual Machinesin Hyper-V  To create a virtual machine in hyper-v, go to the server manager, click on tools menu, and select Hyper-V Manager.  Then opened is the Hyper-V manager console.  On the left, you see the host name (this server’s name).  Right click on it, select new > virtual machine  Then click next on the first page.
  • 9.
    9 Creating Virtual Machinesin Hyper-V  Then give a name for the virtual machine  So that it can be identified in hyper-v manager.  You can also change the place where to store the virtual machine.  Better to put it in a separate hard disk than C: drive  Click next and you will then be asked to specify the generation.  Generation 2 are introduced in Windows Server 2012 R2, and provide more advanced features and functionality than generation 1 version.  But you can only install the latest Windows server OS on them (windows server 2012 and windows server 2012 r2, win8 64 bit, win 8.1 64 bits or windows 10)  Select the common generation 1 version and click next.
  • 10.
    10 Creating Virtual Machinesin Hyper-V  Then you will be asked to assign memory  Here you can enter the amount of RAM to use static memory (give it at least about 850 MB)  Also check the box for using dynamic memory.  Then you will be asked to configure networking  Select external network adapter card (not internal).  Then on the connect virtual hard disk page, you can set up hard disk related things, just leave the default and click next
  • 11.
    11 Creating Virtual Machinesin Hyper-V  Then you will be asked the source of the OS to install from.  We will install the OS later  Then click next and finish  When the machine is created, it will appear in the hyper-v manager console.  You can right click on the virtual machine and select settings, to modify many characteristics of the virtual machine, including the number of processors assigned
  • 12.
    12 Installing the OperatingSystem in Hyper-V  We can install an operating system from .iso image or DVD to a Hyper-V virtual machine.  We will use an iso image to install windows server 2012 R2.  Open the hyper-v manager, right click on the virtual machine (at the middle pane), and select settings.  On the settings window, click on DVD Drive under IDE controller 1.  On the right, select image file option button.  Then click on the browse button and find the iso image.
  • 13.
    13 Installing the OperatingSystem in Hyper-V  Then click ok.  Then start the virtual machine from the hyper-v manager, by right click and start, or double click on it, go to action menu, and click on start.  Then the virtual machine starts installation from the iso image.  If you get error while installation saying it encountered unexpected error, and the RAM you allocated was the minimum 512 MB, just go to the setting and increase the RAM size to around 850 MB  Finally you will be asked to enter password for the Administrator.  That way you have one virtual machine with Windows Server 2012 R2.
  • 14.
    14 Installing the OperatingSystem in Hyper-V  You can add more than one virtual machines in hyper-v, and treat them just as separate windows servers.  Then join the domain from each, and install roles required.  The virtual machines auto start whenever you start the host machine.  The virtual machines give service on the network just like any physical server do.