How to Configure a Difference Virtual Machine In Windows 7

In a Previous “How To”, we discussed how to us a virtual hard drive to create a virtual machine to would run it. See “How  to Configure A Virtual Machine in Windows 7.” In this final How To on the same subject we will discuss how to create a difference image from the existing vhd.

A difference file is an image, or snapshot of the main vhd. It is intended to allow the user to work with the image, and not worry about damaging the main vhd file. In other words, by using the difference file, the user can work and perform any tasks he wants and it will not impact the main vhd; indeed the image file can even be deleted, but the main vhd will still be there. Even so much as to recreate the difference file.
The steps to perform this are simple and straight forward.
For starters, let’s look at the folder that has the vhd and the vmc. We will create a new folder called Difference.

New Folder Difference 400x2751 How to Configure a Difference Virtual Machine In Windows 7

Create a New Folder - Difference

 

Next we will return to the Virtual PC Console. That is where we will create the difference file. Click Start

Start Microsoft Virtual PC 400x3411 How to Configure a Difference Virtual Machine In Windows 7

Select Start -> Microsoft Virtual PC

Virtual PC Console1 How to Configure a Difference Virtual Machine In Windows 7

Virtual PC Console

 
From this we will go to the menu and select File
Then select Virtual Disk Wizard

VirtualDiskWizard1 How to Configure a Difference Virtual Machine In Windows 7

Select the Virtual Disk Wizard

 

 

WelcomeToTheVirtualDiskWizard 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Welcome To The Virtual Disk Wizard

Click Next
Select Create a new virtual disk

 

Disk Options1 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Disk Options

 

 

Virtual Disk Type1 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Virtual Disk Type

Click Next

Here we will use the existing vhd and create a new one in the difference folder.
Click Browse

 

Virtual Hard Disk Location1 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Virtual Hard Disk Location

  

First we identify the vhd file

Virtual Hard Disk Location 2778.vhd 400x2681 How to Configure a Difference Virtual Machine In Windows 7

Virtual Hard Disk Location - 2778.vhd

Select the 2778.vhd file and select Difference and open it.

Virtual Hard Disk Location Difference 400x2681 How to Configure a Difference Virtual Machine In Windows 7

Virtual Hard Disk Location Difference

 
Click save.

 

Virtual Hard Disk location path 400x3111 How to Configure a Difference Virtual Machine In Windows 7

The Path for the Virtual Hard Disk location

 
Click Next

From the options select Differencing

Virtual Hard Disk Options Differencing 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Virtual Hard Disk Options - Differencing

Click next
Now you are asked to select the parent. This is the master vhd file on which the differencing (image) is created. So we must leave the Differencing folder and return to the previous folder that is resides in.

click Browse

Differencing Virtual Hard Disk Name and Location 2778 VHD 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Differencing Virtual Hard Disk - Name and Location-2778-VHD

 

Difference No items match your search 400x2681 How to Configure a Difference Virtual Machine In Windows 7

Difference - No items match your search

 
Go up a level

Differencing Virtual Hard Disk 2778.vhd 400x2681 How to Configure a Difference Virtual Machine In Windows 7

Differencing Virtual Hard Disk - 2778.vhd

 
Select Open

 

Differencing Virtual Hard Disk Name and Location 2778 VHD1 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Differencing Virtual Hard Disk - Name and Location-2778.VHD

Select Next

Completing the Virtual Disk Wizard Finish 400x3111 How to Configure a Difference Virtual Machine In Windows 7

Completing the Virtual Disk Wizard - Finish

 Click Finish

Virtual disk was created successfully1 How to Configure a Difference Virtual Machine In Windows 7

Virtual disk was created successfully

And this is what the vhd image will look like:

2778 vhd image 400x2761 How to Configure a Difference Virtual Machine In Windows 7

2778.vhd image

 
The vhd image file is in the difference folder. It has a size of only 21 KB. Compare this the vhd file of 6,393,989 KB. This is why it is considered a snapshot and will only retain information for the image, not the main vhd file.

The next to the last step is to copy the SQLServer-2005.vmd file to the Difference folder.
That part is easy, you will do a copy and paste operation. Select the file SQLServer-2005.vmc copy it and paste it over to Difference.

Copy SQLServer 2005 vmc 400x2761 How to Configure a Difference Virtual Machine In Windows 7

Copy SQLServer-2005-vmc

 

Copy SQLServer 2005 vmc To the Difference folder 400x2761 How to Configure a Difference Virtual Machine In Windows 7

Copy SQLServer-2005-vmc To the Difference folder

Now launch the SQLServer-vmc file (click).
It will be put into the Virtual PC Console and run from there.

 

VirtualPC Console running the SQL Server 2005 vmc file1 How to Configure a Difference Virtual Machine In Windows 7

VirtualPC Console running the SQL Server 2005 vmc file

 

This was the third of a series of “How To” posts on using the Virtual Machine Console and creating vmc’s. Virtual machines are a computer running inside a computer. They are sandbox’s which allow users to work in a production environment, but without affecting that environment. They also save money by not having to buy additional hardware to run special applications. They can be run from inside a host machine.