«

»

Feb
23

Walk-through: Hyper-V on Windows 2008 R2

Installing and setting up Hyper-V on Windows Server 2008 R2 is a straightforward task thanks to Microsoft’s new approach to “roles”.

Preparing Your Server to Run Hyper-V

  1. Ensure that your server’s motherboard and processor support hardware-assisted virtualization.
  2. Go into the BIOS setup menu of your server and make sure that virtualization is enabled.  This setting can usually be found under the advanced options for the processor.
  3. Make sure that your OS supports Hyper-V.  Hyper-V will only run on Windows Server 2008.

Installing Hyper-V

  1. Go to the “Server Manager” and select “Roles”.
  2. Under “Roles Summary” on the right side, select “Add Roles”.
  3. Check the box for “Hyper-V” and click “Next”.
  4. The wizard will ask you to select which network interface to use with Hyper-V.  Feel free to use your server’s main (or only) NIC for this – it is no big deal to set up a bridge so that both the virtual server and host server can share the interface with two different IP addresses.  If your server has a spare NIC and you’d rather not bridge both servers to the single interface, then select that one instead.
  5. Proceed through the wizard.  You will likely be prompted to reboot the server.  Do so when convenient.

Creating Your Virtual Machine

  1. When the server comes back up, go to “Start->Administrative Tools->Hyper-V Manager”.
  2. You will see your server listed under “Hyper-V Manager” on the menu at left.  Right-click it and go to “New->Virtual Machine”
  3. Click “Next” on the “Before You Begin” screen.
  4. On the next screen, specify a name for the virtual machine and the location of where you would like the machine’s files stored.  Click “Next”.
  5. This screen will prompt you for the amount of memory to allocate to the VM.  Think hard about this, but not too hard as it can always be adjusted later.  Pick a memory size and click “Next”.
  6. On the “Configure Networking” screen you must choose a connection to bind the virtual NIC in your VM to.  Your basic choices will be “Not Connected” and “your-interface-name – Virtual Network”.  If you would like your VM to have internet access immediately, choose the “Virtual Network” option.  You will have the opportunity to fine-tune how the VM connects to the network once the VM is created.  Make a selection and click “Next”.
  7. Now we must create or select a .vhd (Virtual Hard Disk).  Assuming you do not already have a .vhd that you would like to use, select “Create a virtual hard disk” and set the size of the disk.  Click “Next” once you’ve decided on a size.  Keep in mind that .vhd files can be resized later.
  8. This next screen will ask if you would like to install an OS now or later.  I would suggest you select “Install an operating system later” so that you can finalize creating the VM and further customize the settings before installing an OS.  Leave this selected and click “Next”.
  9. Check over the summary and, when satisfied, click “Finish” to create your new VM!
  10. Now you should see your VM in the list of  “Virtual Machines” in “Hyper-V” manager.

Installing An OS

  1. Make sure you have installation media for your OS in the form of a physical CD/DVD or an .ISO file.
  2. Right-click on your VM and select “Settings”.
  3. Depending on the operating system that you plan on installing, you may want to fine-tune the hardware profile of the VM.  For example, if I’m installing Linux on a VM, I’ve found that it helps to add a “Legacy Network Adapter” instead of the standard network adapter.  Take a good look at these settings to make sure there is nothing you want to change.  Make sure you apply your settings if you do make any changes.
  4. Once satisfied with the hardware profile, go to “IDE Controller 1” under “Hardware” in the “Settings” window.  You should find a “DVD Drive”.
  5. Select the DVD drive and you will be asked to specify the location of the media to use with your virtual CD/DVD drive.  If you have a physical CD/DVD that you wish to use for the installation of the new OS, select “Physical CD/DVD drive:” and select the letter of the drive the disk is currently inserted.  If you have an .ISO or other supported image file, select “Image file:” and browse for it.  Click “OK” to save your settings.
  6. Right-click your VM and click “Start”
  7. If everything went according to plan you should see your VM starting in the bottom pane of the Hyper-V manager.  Right-click on the VM and click “Connect” to view and interact with the VM.

-n

No comment yet

1 ping

  1. techlauve.com - a knowledge base for IT professionals. » Installing CentOS 5.5 on Hyper-V says:

    […] « Walk-through: Hyper-V on Windows 2008 R2 […]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>