Changes

Jump to: navigation, search

Creating Hyper-V Virtual Machines

2,574 bytes added, 15:41, 13 January 2009
Assigning a Passthrough Disk to a Virtual Machine
== Assigning a Passthrough Disk to a Virtual Machine ==
 
As previously described, Hyper-V allows a entire physical disk to be allocated to a virtual machine. This configuration is also referred to a ''passthrough disk''. Unfortunately, the Hyper-V virtual machine creation wizard does not provide the option to configure a passthrough disk, leaving this configuration to be performed later. If a passthrough disk is required, select the option to ''Attach a virtual disk later'' on the wizard's ''Connect Virtual Hard Disk'' screen.
 
Once the remainder of the virtual machine creation process is completed, right click on the new virtual machine from the ''Virtual Machines'' list in the Hyper-V Manager main window and select ''Settings...''. The settings dialog for the selected virtual machine will appear containing a list of devices in the left hand panel. One of these devices will be IDE Controller 0. This was created by default and is intended to have the virtual disk attached to it. If a SCSI controller is required instead, select the ''Add Hardware'' option at the top of the device list, select ''SCSI Controller'' from the right hand panel and click on the ''Add'' button.
 
In order to add a physical passthrough disk to the virtual machine, select IDE controller 0 (or the SCSI controller if one was added), select ''Hard Disk'' from the right hand panel of the dialog and click the ''Add'' button as illustrated in the following figure:
 
 
[[Image:hyper-v_add_virtual_disk.jpg|Adding a new virtual disk to a hyper-V virtual machine]]
 
 
Once the ''Add'' button is pressed, the hard drive settings will appear. As illustrated in the following figure, the hard drive settings screen provides the option to create a Virtual Hard Disk (VHD) file, or to ''Assign a physical hard disk'', the latter being the option we need. At this point it is possible that this configuration option will be disabled. This is most likely because the disk is question is currently online. To take the disk offline, open the Server Manager for the host system and click on ''Storage -> Disk Management'' in the left hand panel. In the main panel, right click on the disk name in the graphical section of the view and select ''Offline'' from the menu:
 
 
[[Image:taking_disk_offline.jpg|Taking a Windows Server 2008 parent partition disk offline]]
 
 
Once the disk is offline, the ''Assign a physical hard disk'' option will be enabled. Select this option, choose the appropriate disk drive from the drop down list and click ''Apply'' to commit the change. The virtual machine has now been assigned a physical disk for its storage purposes.
== Virtual Machine Installation Options ==
1,798
edits

Navigation menu