Thursday, 28 May 2015 00:00

Hard Disks in Microsoft Hyper-V

Rate this item
(0 votes)

b2ap3_thumbnail_Hyper-v_logo.pngThe article reviews types of virtual hard disk drives in Microsoft Hyper-V.

Virtual Hard Disk Controllers

Windows accesses hard disk drives via controllers and Hyper-V-based virtual machine is not an exception.

In virtual machines on can choose either IDE or SCSI controllers.

IDE Controller. Hyper-V uses emulated devices with IDE Controller. One can install two IDE Controllers with two disks in each controller. Boot Drive should be connected to one of the IDE devices. Boot Drive can be either a Virtual Hard Disk or a physical disk. Although in a virtual machine in order to start a guest operating system boot drive should be an IDE device, there are many types of physical devices among which one can find a storage for IDE device. For example, one can use one of the types of physical storage devices listed at the beginning of this section.

SCSI Controller. Each virtual machine supports up to 256 SCSI disks (four SCSI controllers, each supporting up to 64 disks). SCSI Controller uses a type of devices that was specially developed for virtual machines and that uses virtual machine bus to exchange data. Virtual machine Bus is available after the start of Guest Operating System. Therefore virtual hard disks, connected to SCSI controllers, cannot be used as Boot Drives.

Although the performance of input-output of SCSI and IDE physical devices may substantially differ, it does not touch upon virtualized in Hyper-V SCSI and IDE devices. Hyper-V. IDE and SCSI devices offer same high performance of input-output, if Integration Services are installed in the Guest Operating System.

Types of Virtual Hard Disks (VHD)

Hyper-V virtual machine can use three types of Virtual Hard Disks. All the types represent an ordinary file located in NTFS volume.

Detailed description of the types:

Dynamically Expanding Disk. This disk is used by default upon creation of a virtual machine. A virtual machine, using this disk, sees it’s full size. However, in the host’s file system the file of hard disk occupies as much space as data occupies in a virtual machine. As data increases in virtual machine, hard disk file also increases. This type of disk is convenient to use in testing environments, because the performance of virtual machines with this disk is less than of virtual machines with fixed size disks.
Fixed Size Disk. A file that is equal in size to the size of virtual machine hard disk is created on the host machine. For example, if you create in virtual machine a 40 GB hard disk, then the host will contain a 40GB file as well. After the file was created, its unoccupied space is filled with nulls. Fixed size disks should be used in the production environment by default.

Differencing Disk. This type disks possess interrelation of parent-child. Parent disk is designed only for reading. Differencing Disk (child) keeps all changes. Using this type of disk one can create several virtual machines with one parent hard disk. At the same time a each machine will have it own differencing disk.

Virtual machine can use any type of VHD. However, there is a possibility for using physical disks as well. For that, use pass-through connection of hard disk drive.

To use such connection, hard disks should be visible on the host machine. It could be local host disks, iSCSI or SAN disks. One cannot connect only a particular volume of hard disk, hard disk should be fully connected. To use pass-through connections, hard disk on a local machine should be Offline. One can turn hard disk to Online or Offline using Disk Manager or diskpart utility program.

In theory, pass-through connection should provide maximum performance. But, according to the results of tests, virtual Fixed disk just slightly gives way to pass-through connection of hard disks.
In case of using physical disks directly connected to virtual machine, one has to consider the following:

  • This type of disks does not support dynamic expansion.
  • Differencing disks cannot be used with physical disks.
  • Virtual hard disk snapshots cannot be created.

Limitations of virtual hard disks:

  • Files of virtual hard disks should be located on NTFS partition;
  • Maximum size of virtual hard disk file should not exceed 2040 GB (2 TB);
  • Folders, containing VHD files, cannot be compressed.

To be continued...

Last modified on Thursday, 28 May 2015 14:24
Data Recovery Expert

Viktor S., Ph.D. (Electrical/Computer Engineering), was hired by DataRecoup, the international data recovery corporation, in 2012. Promoted to Engineering Senior Manager in 2010 and then to his current position, as C.I.O. of DataRecoup, in 2014. Responsible for the management of critical, high-priority RAID data recovery cases and the application of his expert, comprehensive knowledge in database data retrieval. He is also responsible for planning and implementing SEO/SEM and other internet-based marketing strategies. Currently, Viktor S., Ph.D., is focusing on the further development and expansion of DataRecoup’s major internet marketing campaign for their already successful proprietary software application “Data Recovery for Windows” (an application which he developed).

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

Get Help Now

Thank you for contacting us.
Your Private Investigator will call you shortly.