Elite Buyer

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 11 February 2013

Convert Windows XP into a Windows 7 Virtual Machine with Disk2vhd (hyper v)

Posted on 10:49 by Unknown

Convert Windows XP into a Windows 7 Virtual Machine with Disk2vhd

how to use Disk2vhd to move your Windows XP installation into Windows 7 and then run it with Windows Virtual PC.

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:
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 in to 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 VHDs 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 are 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 an 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 - Security Warning dialog box, shown in Figure A.

Figure A

As soon as the download commences, Internet Explorer displays the File Download - Security Warning dialog box.
When you click the Run button, the download begins, as shown in Figure B.

Figure B

The actual download is really quick.
Once the download is complete, the executable begins to launch, which triggers the Internet Explorer - Security Warning, shown in Figure C.

Figure C

As soon as the executable begins to launch, Internet Explorer displays a Security Warning dialog box.
You’ll then need to accept the Sysinternals Software License Terms, as shown in Figure D.

Figure D

You are encouraged to read through the Software License Terms.
When you get to the main user interface, you’ll see that Disk2vhd automatically selects all 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 on which you are creating a VHD. Then, select the Prepare for Use in Virtual PC check box. As you can see in Figure E, I chose only the main drive and selected an external hard disk. When you are ready, click the Create button.

Figure E

You can choose specific drives as well as a different location and name.
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, as shown in Figure F.

Figure F

The progress gauge keeps you apprised of the conversion procedure.
For instance, my XP system with about 40GB on an 80GB drive took just a little over two hours to complete the conversion and transfer to an external USB hard disk. When the operation is complete, you’ll see the screen shown in Figure G.

Figure G

My example system took a little over two hours to convert to a virtual machine.

Running XP in Windows Virtual PC

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 a Virtual Machine wizard, as shown in Figure H.

Figure H

You’ll launch the Create Virtual Machine wizard.
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, as shown in Figure I.

Figure I

You’ll specify the amount of RAM that you want your Windows XP virtual machine to have.
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, as shown in Figure J. When you’ve done so, just click the Create button.

Figure J

Select the Use an Existing Virtual Hard Disk option and then locate your vhd.
Once the Create a 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 that was relatively painless, and I was able to run my existing Windows XP installation in Window 7, as shown in Figure K.

Figure K

Windows XP is running inside of Windows Virtual PC in Windows 7.

What’s your take?

Will you use this Disk2vhd to virtualize your Windows XP system? Have you used Disk2vhd before? If so, what has been your experience? As always, if you have comments or information to share about this topic, please take a moment to drop by the elitebuyer and let us hear from you.

How to fix the “Cannot attach the virtual hard disk …”


… to the virtual machine.  Check the values provided and try again.” error
Windows Virtual PC: Cannot attach the virtual hard disk to the virtual machine.  Check the values provided and try again.
It sucks as an error message.  Would it take too much programming effort to make it more meaningful Virtual PC team?
What does it mean?
It means you have a Virtual Hard Disk file larger than 127.5GB.  Which Virtual PC does not support.
You might have created this with the Microsoft Disk2VHD tool.
To confirm the “disk is too big” problem, open the Settings on an existing Virtual PC, and try to attach the drive:
The virtual hard disk image ... is too large for the IDE bus.  Make sure that all virtual had disk images connected to the IDE bus are not greater than 127.5GB
In other words, we’ve captured a 160GB hard disk, and Virtual PC won’t let us use it.
But we can fix it, it’s a two step process
First we use DiskPart, and then we use VHD Resizer.

1.DiskPart
DISKPART> select vdisk file=c:\users\dale\desktop\worktest.vhd
DiskPart successfully selected the virtual disk file.
DISKPART> attach vdisk
100 percent completed
DiskPart successfully attached the virtual disk file.
DISKPART> list volume
Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
----------  ---  -----------  -----  ----------  -------  ---------  --------
Volume 0     E                       DVD-ROM         0 B  No Media
Volume 1                      NTFS   Partition    100 MB  Healthy    System
Volume 2     D                NTFS   Partition    199 GB  Healthy
Volume 3     C                NTFS   Partition    265 GB  Healthy    Boot
Volume 4     F                NTFS   Partition    149 GB  Healthy

DISKPART> select volume 4
Volume 4 is the selected volume.
DISKPART> list volume
Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
----------  ---  -----------  -----  ----------  -------  ---------  --------
Volume 0     E                       DVD-ROM         0 B  No Media
...
* Volume 4     F                NTFS   Partition    149 GB  Healthy

DISKPART> shrink querymax
The maximum number of reclaimable bytes is:  106 GB (108636 MB)
DISKPART> shrink desired=40960 (Note: desired is the amount we want to prune of the image)
DiskPart successfully shrunk the volume by:   40 GB
DISKPART> list volume
Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
----------  ---  -----------  -----  ----------  -------  ---------  --------
Volume 0     E                       DVD-ROM         0 B  No Media
...
* Volume 4     F                NTFS   Partition    109 GB  Healthy

DISKPART> detach vdisk
DiskPart successfully detached the virtual disk file.
DISKPART> exit
What we now have is a VHD file still sized at 149GB, but with a 109GB partition in it.  What we need to do next is resize the VHD to 109GB.
2. VHDResizer.
Use VHDResizer to resize your newly shrunk VHD file, in this example WorkTest.VHD
VhdResizer -enter the size of the disk you want to resize to.  Not greater than 127.5GB though. VhdResizer - resizing the VHD file VhdReziser - Processing complete
(yes, I picked a New Size larger than 109GB, I went for 120GB instead).
And finally…
Success!  It boots!
Windows XP Boots
This article might be useful as well:
Mount base and differencing VHD disks using Windows Virtual PC on Windows 7 x64.
To recap, the tools used were:
DiskPart (included in Windows)
Disk2VHD
VHDResizer

135 e. 9th st, Long Beach, CA 90813 562-366-4177
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in disk2vhd, hyperv, microsoft, virtual, xp | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Best 100 Most Interesting Blogs and Websites of 2013
    The 100 Best, Most Interesting Blogs and Websites of 2013   by Shaw Adli Google Note:  If you tweet or share this post, please include the #...
  • Best Music Apps
    15 of the best music apps Lanyard Lanyard is a beautiful way to keep and share memories of the gigs you’ve been to. This Web app (native...
  • Best Hard Drive Disk Degragmentation Tools Defrag (Computer Support Torrance)
    Five Best Disk Defragmentation Tools 562-366-4177 elitebuyer.com Defragmenting your hard drive regularly is an important part of regular h...
  • Essential Outlook 2010 Tips to improve your email
    Understand How Calendar Preview Appears in Meeting Requests When you e-mail a meeting request to a co-worker or client, if the recipient us...
  • Archiving Outlook Manually
    Microsoft Office Outlook® 2003 and 2007 In Outlook, archiving is a way to back up or delete old items, such as e-mail messages, appointmen...
  • Learn any Languages Via Subtitles While Watching Movies With LaMP
    A really great way to get good at a foreign language is to watch films that have subtitles in the language you’re learning; this allows yo...
  • How To Transfer Contact to iphone 5 from 4s/4 iphone
    How to Transfer Contacts to iPhone 5, iOS 6 from iPhone 4S/4/3G/3GS   iPhone     Just purchased the new iPhone 5 and want t...
  • Sync iPhone 3g With Google Calendar
    NuevaSync allows direct, over-the-air, native synchronization of certain smart phones and PDA devices with public PIM, and calendaring servi...
  • How to boot Windows 7 from a USB Flash Drive Step By Step
    Step by Step on how to install Windows 7 from a USB Flash Drive. Download Diskpart form Microsoft site Run diskpart Type : List disk You sho...
  • How To flush DNS on you desktop computer
    If you get a Ip conflict on your network you need to flush out the DNS on that systems. n  Microsoft   Windows , you can use the command  ip...

Categories

  • -6123
  • 100
  • 101 most useful
  • 128bit
  • 15 Android widgets that will make iPhone users jealous
  • 20 sites to promote your web site
  • 2007
  • 2010
  • 3gs
  • 4gs
  • 562-366-4177
  • 5g
  • 5gs
  • 6123
  • 64bit
  • 90505
  • 90732
  • 90804
  • 90813
  • access
  • activex
  • adli
  • alert
  • apps
  • archive
  • array
  • attachments
  • audio
  • autocomplete
  • backtoschool
  • basic
  • best
  • Best PDF Tools
  • better
  • blogs
  • blue screen
  • bluscreen
  • bmw
  • boot
  • browser
  • browser chooser
  • bsod
  • burn cd
  • burn dvd
  • burn iso
  • ca
  • capture
  • carson
  • ccleaner
  • cd
  • certificate problems
  • changes
  • cheat
  • cis
  • claim
  • classicshell
  • cmb
  • combofix
  • command
  • compaq
  • complex
  • compliance
  • computer
  • computer fix
  • computer help
  • computer upgrade.
  • confugure.
  • connection
  • contacts
  • control panel
  • create
  • creating
  • data
  • data21
  • defrag
  • defraging
  • defragmenting
  • delete
  • deleted
  • delivered
  • dell
  • dentist
  • dentrix
  • desktop
  • desktop vista
  • desktop windows 7
  • desktop windows 8
  • desktp
  • disaster
  • disc
  • disk2vhd
  • doubling
  • download
  • Driver manager
  • dual monitors
  • duplicate
  • dvd
  • easy transfer
  • ebcnetworks
  • efficient
  • elitebuyer
  • email
  • email e-mail
  • emergency
  • emial color code
  • enhancements
  • entrepreneur
  • error
  • expand
  • explorere
  • failure
  • fast
  • fax
  • file
  • file zilla
  • files
  • filesharing
  • filezilla
  • finder
  • firefox
  • firewall
  • fix
  • fix center
  • fixmycomputer
  • folder
  • folders
  • format
  • free
  • freezing
  • ftp
  • gmail
  • google
  • Google sync with iPhone
  • google.
  • greeting
  • hard drive
  • have
  • help
  • help fix computer
  • hep
  • High Ranking in Search engines
  • hot Corner
  • how to
  • howto
  • hp
  • hyperv
  • icloud
  • ie8
  • ie9
  • improve
  • inbox
  • indexing
  • insurance
  • internet
  • Internet Explorer Windows XP Professional
  • invalid
  • ios
  • iphone
  • Iphone to google Sync
  • iphone5
  • iso
  • it
  • jpg
  • junk
  • kids
  • languages
  • laptop
  • laserjet
  • late
  • learn
  • lesson
  • linux
  • listary
  • long beach
  • long beach computer
  • long beach laptop
  • longbeach
  • los angeles
  • mac
  • malicious
  • malware
  • malwarebytes
  • management
  • managment
  • marketing
  • message
  • micorosft
  • micorosoft
  • microsoft
  • microsoft office
  • microsoft office 2010
  • mobile
  • move
  • movie
  • multi boot
  • multi-user
  • mutliboot
  • network
  • network support
  • networking
  • new
  • newspaper websites First Click free access to all the news articles without registering or subscribing
  • nk2
  • office
  • office 2007
  • office 2010
  • office xp
  • office2007
  • office2010
  • Online
  • operating
  • option
  • orignianl
  • outllok2010
  • outloo
  • outlook
  • outlook 2000
  • outlook 2003
  • outlook 2007
  • outlook 2010
  • Outlook it disappears from the task bar
  • outlook2007
  • outlook2010
  • panning
  • password
  • pc
  • pc repair
  • pci
  • PDF Password Remover Mac
  • pdf printer.
  • PDF Unlocker for Mac
  • phone
  • pictures
  • pin
  • Pismo
  • pocket
  • point
  • portable
  • precisionamc
  • print spooler
  • printer
  • productivity
  • profile
  • program
  • prompt
  • putty
  • QTTabBar
  • quick books
  • Quick Cliq
  • quickbooks
  • range
  • recover
  • recovery
  • remote
  • removal
  • repair
  • replacment
  • restore
  • reverting
  • review of Adobe Acrobat
  • review of Foxit
  • review of PDF-XChange
  • roadkil
  • router
  • run.
  • safe mode.
  • san pedro
  • scan
  • schedule
  • school
  • script
  • scripts
  • search
  • searching
  • second monitor
  • sender
  • server
  • server 2003
  • server 2008
  • server 2008.
  • service
  • setup
  • share
  • sharing
  • shaw
  • shoot
  • site
  • slow
  • smb
  • social
  • software
  • spam
  • spamfilter
  • speed
  • spooler
  • ssd
  • ssd hard drive
  • ssl
  • ssl cipher
  • ssl2
  • start menu
  • statup
  • stellar phoenix
  • step
  • step by step
  • stream
  • support
  • support.
  • sync
  • system
  • system doctor 2014
  • systems
  • tamim
  • Taskbar
  • tech
  • technet
  • techsupport
  • this copy of windows must be activated with microsoft before you can log on.
  • tip
  • tips
  • tool
  • torrance
  • transfer
  • trick long beach
  • troubleshoot
  • tweak
  • typing
  • typist
  • unc
  • understand
  • uninstall
  • updates
  • upgrade 90802
  • utilities
  • verify
  • video
  • virtual
  • virus
  • vist
  • vista
  • visual guide
  • voice
  • warning
  • webcam
  • website
  • websites
  • wet
  • widgets
  • widnows7
  • widows
  • window 7
  • window 7 libraries
  • window 7 pro
  • window 8
  • window7
  • window8
  • windoweasytransfer
  • windows
  • windows 7
  • windows 8
  • windows vista
  • windows xp
  • Windows XP Professional
  • Windows XP SP3
  • windows7
  • windows8
  • windwos7
  • wireless
  • Word 2007 ie8
  • xp
  • XP Recovery Disc
  • XP tech support.
  • Yardi

Blog Archive

  • ▼  2013 (16)
    • ►  November (1)
    • ►  October (1)
    • ►  July (3)
    • ►  June (5)
    • ▼  February (2)
      • Failure configuring Windows Updates Reverting Chan...
      • Convert Windows XP into a Windows 7 Virtual Machin...
    • ►  January (4)
  • ►  2012 (63)
    • ►  December (11)
    • ►  November (3)
    • ►  October (2)
    • ►  September (3)
    • ►  August (2)
    • ►  July (5)
    • ►  June (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (18)
    • ►  January (4)
  • ►  2011 (9)
    • ►  December (3)
    • ►  November (1)
    • ►  September (1)
    • ►  May (1)
    • ►  April (1)
    • ►  February (2)
  • ►  2010 (10)
    • ►  December (5)
    • ►  November (1)
    • ►  August (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2009 (10)
    • ►  October (2)
    • ►  August (1)
    • ►  May (2)
    • ►  April (3)
    • ►  March (1)
    • ►  January (1)
  • ►  2008 (1)
    • ►  December (1)
Powered by Blogger.

About Me

Unknown
View my complete profile