Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Windows 7 : Virtualization (part 2) - Native Hard Disk Support in Windows 7

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/4/2012 6:18:17 PM
Windows 7 provides a unique capability, in that you can create, mount, and boot from a VHD file directly from the operating system, rather than requiring a software overlay, such as VirtualBox or ESX Server.

What this means is this: When dealing with most virtualization solutions, such as VirtualBox or VMWare, you need to install an underlying operating system (which controls the physical assets of your computer), then add in the virtualization software (VirtualBox, or the appropriate VMWare software), and then create and run a virtual Windows 7 system inside that. Think of it as a three-layer cake:

The bottom layer is the underlying operating system.

The middle layer is the virtualization software, which manages the VHD.

The top layer is your Windows 7 system.

Microsoft’s native hard disk support for VHDs allows you to dispense with running a software overlay, such as the aforementioned VirtualBox or ESX Server. In this new model, your Windows 7 system manages its own virtualization, so there is no need for an underlying operating system and no separate virtualization software—all three layers of the cake are collapsed back into one layer.

So how do you create a VHD and install Windows 7 to it?

Creating a VHD

The simplest method is to use the Windows 7 installation DVD to create the VHD and then install Windows 7 into that VHD. Follow these steps:

1.
Boot your system using the Windows 7 DVD.

2.
Choose Repair Your Computer as shown in Figure 1.

Figure 1. To create a VHD and install Windows 7 on it, choose Repair Your Computer.


3.
Click Next without selecting a particular destination.

4.
Select Command Prompt (see Figure 2).

Figure 2. Choose the Command Prompt.


5.
Type diskpart and press Enter to start the Diskpart utility.

6.
Type create vdisk file="c:\Windows7Build.vhd" type=expandable maximum=40000 and press Enter, as shown in Figure 3.

Figure 3. Name your VHD.

Tip

You can create any VHD filename you want, as long as there are no spaces in the filename. Note that the maximum parameter is the maximum size of the virtual hard disk in megabytes. You can make it larger if that is appropriate.

7.
Type select vdisk file="c:\Windows7Build.vhd" and press Enter.

8.
Type attach vdisk and press Enter.

9.
Type exit and press Enter to quit Windows Repair. DO NOT REBOOT. Instead, click the [X] at the top right corner to close the Windows Repair window, and return to the installer.

10.
Next, you create a partition in the new hard disk that you have just created. Start by clicking Install Now. When the License terms window appears, click “I accept the license terms”; then click the Next button.

11.
Now click the option to install a new copy of Windows. You will be asked where you want to install the new copy of Windows. Choose the partition containing the virtual hard disk you just created.

12.
Format the new hard disk partition by selecting the partition and then clicking the Next button. This also starts the installation process.

13.
Install Windows 7 to this new hard disk. Figure 4 shows the Windows 7 installation in progress.



Figure 4. Installing Windows 7 could take a while, so use this opportunity to take a coffee break.

14.
Reboot to launch Windows 7.

15.
After your Windows 7 installation is running the way you want, back up the VHD file. This provides a clean image of your system that can then be readily reloaded to your computer if needed.

Note

We’ve also found a number of other methods for creating VHDs and installing Windows 7 documented online by Windows developers around the world. Most of these are variations on creating a Windows system image (a WIM file) and converting it to a VHD, most often using the WIM2VHD utility available at http://code.msdn.microsoft.com/wim2vhd. We found literally thousands of results when we searched on the terms “Windows 7 create VHD.”

Other -----------------
- Microsoft Project 2010 : Putting a Price Tag on Your Project & Incorporating Resource Costs
- Customizing Project 2010 : Creating and Editing Views
- Microsoft Outlook 2010 : Processing Messages Automatically - Controlling Rules & Sharing Rules with Others
- Microsoft Outlook 2010 : Processing Messages Automatically - Creating and Using Rules
- Managing Printing : Migrating Print Servers
- Managing Printing : Deploying Printers Using Group Policy
- Microsoft Visio 2010 : Annotating Visio diagrams with issues
- Microsoft Visio 2010 : Extensions to our ribbon
- Managing Printing : Managing Client-Side Printer Experience Using Group Policy
- Managing Printing : Client-Side Management of Printers
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server