Wednesday, September 4, 2013

How to Create VM Using Hyper V Manager

The virtual machine configuration parameters that you must define prior to creating a new virtual machine, and the process to create and configure a new virtual machine using the New Virtual Machine Wizard in Hyper-V Manager.

Defining Basic Virtual Machine Configuration Parameters

Before you create a new virtual machine (VM) using the Hyper-V Manager, it is crucial that you define these essential parameters:
  • Virtual Machine NameThis is the name that is associated by default with the new virtual machine folder, as well as the new virtual hard disk (VHD) that will contain the virtual machine operating system and data files. This is also the virtual machine name that is displayed in the Hyper-V Manager console. You should develop a naming convention that reflects the information that is required in your environment to quickly and appropriately identify the new VM.
  • Virtual Machine Processor AllocationThis represents the number of virtual processors to allocate to the new virtual machine. This parameter should take into consideration the requirements of the virtual machine guest operating system and hosted applications, as well as those of other running virtual machines, and the host operating system. All of the Microsoft Windows Server 2008 Hyper-V editions and Microsoft Hyper-V Server 2008 support a maximum of 24 logical processors in a Hyper-V host (up to 4 physical processors, each with 6 cores), and a maximum virtual machine allocation of 4 virtual processors. Although this is not used in the New Virtual Machine Wizard, you must define this parameter to ensure that you create the new virtual machine on a Hyper-V host with sufficient resources to support it.
  • Virtual Machine Memory AllocationThis represents the amount of memory to allocate to the new virtual machine. The memory allocation should take into consideration the amount of RAM in the physical server in conjunction with the memory requirements of the new guest operating system and hosted applications, as well as other running virtual machines. Microsoft Hyper-V Server 2008 and Windows Server 2008 Standard Edition limit a virtual machine memory allocation to 31 GB, while Microsoft Windows Server 2008 Enterprise and Datacenter Edition allow a maximum memory allocation of 64 GB.
  • Virtual Hard Disk Size and LocationIf you need to install a new guest operating system, you must define the size for a new IDE-based virtual hard disk. In Hyper-V, IDE-based VHDs can support up to 2040 GB. Although Hyper-V also includes a SCSI controller, it is a synthetic device (one that does not represent a physical counterpart) that cannot be used to boot a VHD without an installed operating system. Unless you specify otherwise, a new virtual hard disk is stored in the default virtual machine directory using the same name as the virtual machine and a .vhd extension. If you intend to connect a pre-existing VHD to the new virtual machine, you must define the virtual hard disk folder location and copy the VHD to it prior to creating the VM.
  • Virtual Network ConnectionThis represents the virtual network to connect to the new virtual machine. If you want to isolate the virtual machine, you can choose not to connect the virtual network adapter to any virtual network. Hyper-V allows connection multiple virtual networks using a combination of legacy and synthetic virtual network adapters. However, the New Virtual Machine Wizard only provides the connection to a single virtual network.
  • Installation Method and MediaThere are several methods available in Hyper-V to install a guest operating system in a new virtual machine. You can use physical installation media in a connected CD/DVD-ROM drive mapped to a virtual CD/DVD-ROM drive, an accessible ISO image file that contains a bootable image of a guest operating system, a virtual floppy boot disk image, or a network-based installation.
Once you have defined these basic parameters, you are ready to create a virtual machine using the New Virtual Machine Wizard available in Hyper-V Manager.

Creating Hyper-V Virtual Machines


1) To get started you will need to open the Hyper-V management console.


2) In the right-hand panel, click on the new button and select Virtual Machine from the menu that appears.


3) Now click next to skip past the Before You Begin section and give your virtual machine a name

4) Assign the machine a static amount of RAM.


5) Now choose a virtual network that you want to join your machine to.


6) Under most circumstances you will want to create a new VHD, however if you want to attach a previously created VHD it can be done now.


7) I have opted to install the OS that our virtual machine will be using from a ISO file on my hard drive but you could choose a number of different options including network-based installation.


8) Finally click finish to create the machine.

No comments:

Post a Comment