Skip to content

TechRepublic

  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • TechRepublic Premium
  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • See All Topics
  • Sponsored
  • Newsletters
  • Forums
  • Resource Library
TechRepublic Premium
Join / Sign In
Microsoft

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

By greg shultz September 17, 2010, 12:51 AM PDT

Image
1
of 9

9-17_Fig_A.png
9-17_Fig_A.png
Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Security Warning

Security Warning

Would you like to be able to still run Microsoft Windows XP while you get familiar with Windows 7? Well, moving your existing Windows XP system to a virtual machine that you can run in Windows 7 is a relatively easy procedure with the Disk2vhd tool from Microsoft’s Windows Sysinternals team: Mark Russinovich and Bryce Cogswell.

In this edition of the Windows Desktop Report, I’ll show you how to use Disk2vhd, which is a free tool, to move your Windows XP installation into Windows 7 and then run it with Windows Virtual PC.

What is Disk2vhd?
As its name implies, Disk2vhd is designed to create VHD versions of physical disks. This tool can be used to convert systems running Windows XP SP2 and up as well as Windows Server 2003 and up. To perform this task, the Disk2vhd utility makes use of the Windows Volume Snapshot feature built into the operating system. When you run Disk2vhd, it first creates a volume snapshot image of the hard disk. It then exports that image into a VHD that you can then add to Windows Virtual PC as well as to Hyper-V Manager. If you’ll be using Windows Virtual PC, keep in mind that it supports a maximum virtual disk size of 127GB. If you create a VHD from a larger disk it will not be accessible from a Windows Virtual PC virtual machine. Another thing to keep in mind is that Windows Virtual PC doesn’t support the Multiprocessor Specification and it will not be able to boot VHD’s captured from multiprocessor systems.

Preparation
In order to ensure a successful virtual machine transition, there are several tasks that you’ll want to perform on your Windows XP system in preparation for the operation. Let’s take a closer look.
Backup: You’ll want to back up your system using Windows XP’s Backup Utility or a third-party disk imaging tool, such as EASEUS Todo Backup, which is a free package that I used for my test configuration. That way if anything goes awry, you can restore your Windows XP system and get right back to work. Just to be on the safe side, you may also want to back up all your data on CD/DVD or on an external hard disk. While it may sound like overkill, having an extra backup of your data will give you peace of mind.
Optimization: You’ll want to make sure that your Windows XP system and hard disk is in tip-top shape by running Disk Cleanup and Disk Defragmenter. Doing so will help make the operation run quickly and smoothly. By running Disk Cleanup, all unnecessary files will be removed, such as trash in the Recycle Bin and Temporary Internet Files. By running Disk Defragmenter, your hard disk will be ready for optimal performance.
Windows Update: You’ll want to run Windows Update on your Windows XP system and make absolutely sure that all current updates are downloaded and installed.

My example configuration
In my example, I’ll be using two different computers: one computer running Windows XP SP3 and one computer running Windows 7. I’ll run Disk2vhd on the XP system and create the VHD on and external hard disk. The drive on this XP system is using about 40GB on an 80GB hard disk. I’ll then move the virtual machine over to Windows 7 and run it there using Windows Virtual PC.

Getting Disk2vhd
You can get and use Disk2vhd in one of two ways. You can download Disk2vhd from the Windows Sysinternals page on the Microsoft TechNet site. Or you can run immediately Disk2vhd from the Live.Sysinternals.com site. Either way, the utility does not require installation, which means that using it is as easy as launching the executable.

Converting the system
I decided to run Disk2vhd from the Live.Sysinternals.com site for this article. Once I clicked on the link, I immediately saw the Internet Explorer File Download u2013 Security Warning dialog box.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Quick download

Quick download

When you click the Run button, the download begins as shown.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Another Security Warning

Another Security Warning

Once the download is complete, the executable begins to launch which triggers the Internet Explorer – Security Warning.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Choose specific drives

Choose specific drives

When you get to the main user interface, you’ll see that Disk2vhd automatically selects all of the available volumes/drives, sets a default location, and chooses a name for the VHD file. You can choose a different location and name if you want. In fact, the procedure will go faster if you select a different hard disk besides the one of which you are creating a VHD. Then, select the Prepare for use in Virtual PC check box. As you can see, I only chose the main drive and selected and external hard disk. When you are ready, click the Create button.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Progress gauge

Progress gauge

You’ll then have to sit back and wait. Depending on how large your hard disk is and the location of your destination folder, the process can take a while to complete. As the process chugs away, you’ll see the progress.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Create Virtual Machine wizard

Create Virtual Machine wizard

Once you copy the virtual Windows XP system’s .vhd file over to the Windows 7 system, you’ll then open Windows Virtual PC and launch the Create Virtual Machine wizard.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Specify RAM

Specify RAM

In order to reduce the amount of initial tweaking, I configured my virtual machine to have the same amount of RAM as its physical counterpart.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Existing virtual hard disk option

Existing virtual hard disk option

When prompted to add a virtual hard disk, select the Use an existing virtual hard disk option and then use the Browse button to locate your .vhd file. When you’ve done so, just click the Create button.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

Convert XP into a Windows 7 Virtual Machine with Disk2vhd

Virtual Windows XP

Virtual Windows XP

Once the Create Virtual Machine wizard is complete, then just reopen Windows Virtual PC, locate the new virtual machine and launch it. Of course I had to do a bit of tweaking in order to get my XP system running and because XP was now running on a new system, I had to reactivate Windows XP. However all of that was relatively painless and I was able to run my existing Windows XP installation in Window 7.

This gallery is also available as a TechRepublic blog post and download. Image created by Greg Shultz for TechRepublic.

  • Microsoft
  • Account Information

    Share with Your Friends

    Convert XP into a Windows 7 Virtual Machine with Disk2vhd

    Your email has been sent

Share: Convert XP into a Windows 7 Virtual Machine with Disk2vhd
Image of greg shultz
By greg shultz
My first computer was a Kaypro 16 \"luggable\" running MS-DOS 2.11 which I obtained while studying computer science in 1986. After two years, I discovered that I had a knack for writing documentation and shifted my focus over to technical writing.
  • Account Information

    Contact greg shultz

    Your message has been sent

  • |
  • See all of greg's content

TechRepublic Premium

  • TechRepublic Premium

    IT staff systems and data access policy

    IT pros typically have access to company servers, network devices and data so they can perform their jobs. However, that access entails risk, including exposure of confidential information and interruption in essential business services. This policy from TechRepublic Premium offers guidelines for governing access to critical systems and confidential data. From the policy: SUMMARY IT ...

    Published:  January 31, 2023, 11:00 AM EST Modified:  February 1, 2023, 12:00 PM EST Read More See more TechRepublic Premium
  • TechRepublic Premium

    Windows administrator’s PowerShell script kit

    The Windows GUI is the traditional way to perform administrative tasks, but scripting offers faster and more versatile methods that can help further your technical skills. This download includes 21 publicly available PowerShell scripts, along with a document explaining each one, to help you up your scripting game and administer your AD environment more efficiently. ...

    Published:  January 31, 2023, 11:00 AM EST Modified:  February 1, 2023, 12:00 PM EST Read More See more TechRepublic Premium
  • TechRepublic Premium

    Scheduled downtime policy

    Maintenance tasks, equipment upgrades and installations must be completed regularly — potentially creating disruptions and preventing employees from doing their work. This policy is designed to help your organization determine procedures for scheduling and communicating server, system and network downtime with the goal of minimizing the impact and inconvenience for your staff, clients and contractors. ...

    Published:  January 30, 2023, 11:00 AM EST Modified:  January 31, 2023, 6:00 PM EST Read More See more TechRepublic Premium
  • TechRepublic Premium

    Nondisclosure policy

    This policy outlines the measures the organization is taking to ensure protection of its confidential information, including the imposition of a contractual obligation in the form of a nondisclosure agreement. From the policy: SUMMARY A nondisclosure policy protects an organization’s confidential information from exposure to persons outside or inside the organization who could intentionally or ...

    Published:  January 30, 2023, 11:00 AM EST Modified:  January 31, 2023, 8:00 PM EST Read More See more TechRepublic Premium

Services

  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information

Explore

  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • TechRepublic
  • TechRepublic on Twitter
  • TechRepublic on Facebook
  • TechRepublic on LinkedIn
  • TechRepublic on Flipboard
© 2023 TechnologyAdvice. All rights reserved.
  • Privacy Policy
  • Terms of Use
  • Property of TechnologyAdvice