Create, install and attach VHD files

New features in Windows 7 and Windows Server 2008 R2 allow Admin to create, install and attach virtual drives VHD which helps reduce costs on third-party applications with similar functionality.

Network Management - New features in Windows 7 and Windows Server 2008 R2 allow Admin to create, install and attach virtual drives VHD which helps reduce costs on third-party applications with similar functionality.

In fact, Microsoft also provides test drives for their test business applications (like Windows 7 and Exchange 2010).

Microsoft Virtual Hard Disk (VHD) files are increasingly popular with the popularity of Microsoft Virtual PC and virtualization software. However, with the introduction of Microsoft Hyper-V (using VHD files), the use of VHD files has been maximized. Windows system administrators can install VHD files on these virtual disk images, and in addition, curves can create separate Image VHDs.

Why do we need to install the VHD file?

Most administrators have installed an ISO file and a ZIP file when using Windows 7 and Windows Server 2008 R2 because we need a driver file from a good storage area to install an application.

Unlike ZIP files or ISO files, most Windows admins will use VHD files for their own purposes, such as operating as virtual hard drives on a virtual machine. However, we can use the VHD file for anything if we want when we have this file on our system.

Where to download VHD file?

VMware's VMDK format is still more popular than the VHD format due to the virtual device distribution process while the VHD format just started to confirm its position. That's because Microsoft distributes demo virtual machines from their Web site using VHD format. Here are some Microsoft sites that allow downloading VHD files:

  1. Run IT on a Virtual Hard Disk - Test Drive Program. Provides several installations for Windows Server 2008 R2, Windows 7 Enterprise, and Exchange Server 2010, along with countless free VHD files.
  2. Windows 7 90-day Eval. Although this file is in the Test Drive Program, this is considered the most useful VHD download.
  3. SharePoint add-on in VHD format.

Create, attach and install VHD file in Windows 7

Windows 7 and Windows Server 2008 R2 allow users to create and install Microsoft VHD files. So we don't have to use third-party tools like before.

Attach and create VHD file is done in Windows Disk Management Console . Most users will access this Console via Computer Management by right-clicking on Computer and selecting Manage . When Computer Management MMC Console appears, we can perform many different tasks here, such as: Tasking, event checking, folder sharing, user and group account creation, real-time testing exam, device management, service management, and disk management.

To attach or create a VHD file, click the Action menu as shown in Figure 1.

Create, install and attach VHD files Picture 1Create, install and attach VHD files Picture 1

Figure 1: Create and attach VHD file in Computer Management Console of Windows 7.

However, the method to access the attached menu and create the fastest VHD file is to run the Disk Management MMC directly by going to the Start menu and entering diskmgmt.msc into the search box and pressing Enter .

Create, install and attach VHD files Picture 2Create, install and attach VHD files Picture 2
Figure 2: Accessing the Disk Management MMC via the Start menu.

Of course we can attach a previously created VHD file in Microsoft Virtual PC or Virtual Server, or create a VHD file in Windows 7 or Windows Server 2008 R2.

To create a VHD file, click the Create option on the Action menu. Then a dialog box will appear, on this dialog we will specify the location to save this VHD file, select the properties for the VHD file as Dynamic (dynamic or resizable) or Fixed (fixed, cannot resize), and specify the size of the new virtual drive as shown in Figure 3.

Create, install and attach VHD files Picture 3Create, install and attach VHD files Picture 3
Figure 3: Create a new virtual drive.

In the first time we create the virtual drive, we will see the Microsoft VHD HBA device driver loaded.

Create, install and attach VHD files Picture 4Create, install and attach VHD files Picture 4
Figure 4: Microsoft VHD HBA driver has been successfully installed.

Then in Disk Management we will see the new drive but we need to enable it, create a new disk and format it like any other drive. First, right-click on the new drive and select Initialize Disk .

Create, install and attach VHD files Picture 5Create, install and attach VHD files Picture 5
Figure 5: Launching VHD Disk.

A message will appear asking us to confirm the process. Click OK .

Create, install and attach VHD files Picture 6Create, install and attach VHD files Picture 6
Figure 6: The message appears when selecting Initialize Disk from the context menu.

Once done, right-click on this drive again select New Simple Volume to run the New Simple Volume Wizard .

Create, install and attach VHD files Picture 7Create, install and attach VHD files Picture 7
Figure 7: New Simple Volume Wizard.

On this Wizard, select the drive, letter for the drive, format, and the size limit of the drive. When done, click Finish .

Create, install and attach VHD files Picture 8Create, install and attach VHD files Picture 8
Figure 8: Check the installation information on the Complete page.

 

Once you have done the operation on the New Simple Volume Wizard, we will see a new drive like any other physical disk partition.

Create, install and attach VHD files Picture 9Create, install and attach VHD files Picture 9
Figure 9: New VHD drive has been created.

In fact we won't be able to tell if this is a VHD file unless we right-click on this drive and see the Detach VHD option.

Create, install and attach VHD files Picture 10Create, install and attach VHD files Picture 10
Figure 10: Detach VHD option in the context menu of the virtual drive.

Attaching a VHD is much simpler. Suppose we have selected the Detach option to remove the above VHD file. To attach a VHD file, go to the Action menu Select Attach VHD .

A message will then appear asking to browse for the VHD file and may choose to install this VHD file as Read-only or not, then click OK to attach the file.

Create, install and attach VHD files Picture 11Create, install and attach VHD files Picture 11
Figure 11: Attach a VHD file.

We will then see this drive as shown in Figure 9.

3.9 ★ | 36 Vote