{"id":784,"date":"2011-07-15T14:44:52","date_gmt":"2011-07-15T19:44:52","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=784"},"modified":"2011-07-15T14:44:52","modified_gmt":"2011-07-15T19:44:52","slug":"how-to-convert-a-physical-hard-drive-to-a-virtual-machine","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=784","title":{"rendered":"How to Convert a Physical Hard Drive to a Virtual Machine"},"content":{"rendered":"<h1><a href=\"http:\/\/www.kirbtech.com\/blog\/2008\/10\/09\/how-to-convert-a-physical-hard-drive-to-a-virtual-machine\/\" target=\"_blank\">How to Convert a Physical Hard Drive to a Virtual Machine<\/a><\/h1>\n<p>6:07 PM\u00a0CATEGORIES:\u00a0<a title=\"View all posts in Misc.\" href=\"http:\/\/www.kirbtech.com\/blog\/category\/misc\/\" rel=\"category tag\">MISC.<\/a>\u00a0BY\u00a0<a title=\"Posts by Kirby Witmer\" href=\"http:\/\/www.kirbtech.com\/blog\/author\/admin\/\" rel=\"author\">KIRBY WITMER<\/a>\u00a0<a title=\"Comment on How to Convert a Physical Hard Drive to a Virtual Machine\" href=\"http:\/\/www.kirbtech.com\/blog\/2008\/10\/09\/how-to-convert-a-physical-hard-drive-to-a-virtual-machine\/#comments\">28 COMMENTS<\/a><\/p>\n<div>\n<p>Recently, I was working on a customer\u2019s computer which had a bad motherboard. The customer opted to go with a new computer instead of repairing the old one. Naturally, I copied all the documents, Outlook pst files, etc. to the new computer, but I thought, wouldn\u2019t it be nice if I could create a virtual hard disk of the physical drive that I or the customer could actually boot into? However, I could not find a method to create a .vhd file from an existing hard drive, so I gave up the idea. The next day I attended a Microsoft Across America event in Gettysburg, and the Microsoft rep in his presentation mentioned that he had made a .vhd file of his wife\u2019s old computer using a program called\u00a0<a href=\"http:\/\/www.winimage.com\/download.htm\">WinImage<\/a>. I quickly jotted the name down, and today I had a chance to download the program and it does\u00a0<em>exactly<\/em>\u00a0what I\u2019m after. With that lengthy introduction here are the steps you need to do to convert your physical hard drive\u00a0into a Virtual Machine or .vhd file for use in Microsoft Virtual PC 2007 or a similar program.<!--more--><\/p>\n<p><em>Just for the record the physical drive I was imaging had\u00a0<a href=\"http:\/\/www.amazon.com\/gp\/product\/B00022PTRU?ie=UTF8&amp;tag=mymusings05-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B00022PTRU\">Windows XP<\/a>\u00a0installed on it. The procedure is going to vary slightly for other versions of\u00a0<a href=\"http:\/\/www.amazon.com\/gp\/product\/B0013O54OE?ie=UTF8&amp;tag=mymusings05-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B0013O54OE\">Windows<\/a>.<\/em><\/p>\n<ol>\n<li>Download and install\u00a0<a href=\"http:\/\/www.winimage.com\/\">WinImage<\/a>. WinImage is free for 30 days after which there is a nominal $30 onetime charge. Definitely worth it.<\/li>\n<li>Attach the physical hard drive to the computer on which you loaded WinImage. You can do this either by plugging it directly into the motherboard via an empty SATA or IDE port, or you can use a USB adapter such as this\u00a0<a href=\"http:\/\/www.amazon.com\/gp\/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FSabrent-USB-DSC5-3-5-Inch-Converter-Adapter%2Fdp%2FB000HJ99DI%3Fpf%5Frd%5Fp%3D413863501%26pf%5Frd%5Fs%3Dcenter-41%26pf%5Frd%5Ft%3D201%26pf%5Frd%5Fi%3DB000A8P2NM%26pf%5Frd%5Fm%3DATVPDKIKX0DER%26pf%5Frd%5Fr%3D0XXYNRMCEEV4BW0JHG9D&amp;tag=mymusings05-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325\">one from Amazon<\/a>, which is by far the easier method.<\/li>\n<li>Open the WinImage program. If you are running Windows Vista, make sure you run the\u00a0<em>WinImage (Administrator)<\/em>mode which can be found under the WinImage folder under\u00a0<em>All Programs<\/em>.<\/li>\n<li>In WinImage, click the\u00a0<em>Disk<\/em>\u00a0menu item and then select \u201c<em>Creating Virtual Hard Disk Image\u00a0from physical drive<\/em>\u201c.<\/li>\n<li>Make sure the \u201c<em>Include non removable hard disk(s)\u201d<\/em>\u00a0box is checked, and then select the hard drive that you would like to make an image of. You can either make a fixed size or dynamically expanding hard disk. I would recommend the dynamically expanding option. Click OK.<\/li>\n<li>Select a location to store the .vhd file, and click\u00a0<em>Save<\/em>.\u00a0Be sure you have enough disk space.<\/li>\n<li>At this point, WinImage will begin converting the hard drive to a .vhd file. This process could take an hour or more depending on the size of your hard drive, and how it is connected. Just be patient.\u00a0<img decoding=\"async\" src=\"http:\/\/www.kirbtech.com\/wp-includes\/images\/smilies\/icon_smile.gif\" alt=\":)\" \/>\u00a0Once the process is complete, your new .vhd file is ready to be opened with\u00a0<a href=\"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/virtualpc\/default.mspx\">Microsoft Virtual PC<\/a>.\u00a0If all goes well,\u00a0it will boot fine into Windows and you won\u2019t have any problem at all. If so, you are good to go, and you can ignore the rest of the steps. However,\u00a0most likely\u00a0Windows XP will lockup or freeze while booting. In this case, proceed to step 8.<\/li>\n<li>Ok. So you\u00a0managed to create the .vhd file, but now\u00a0regardless what you try\u00a0Windows XP will not boot properly.\u00a0Typically, the problem is the drivers that Windows is trying to load on startup. Here is what you need to do. Grab the closest Windows XP cd and pop it in. Start the Virtual PC, and in the CD menu, select\u00a0<em>Use Physical Drive<\/em>. In the file menu select\u00a0<em>Reset<\/em>.<\/li>\n<li>Press any key when you see the \u201c<em>Press any key to boot from CD\u2026<\/em>\u201d message. Once setup had loaded,\u00a0type\u00a0<em>\u201cR\u201d<\/em>\u00a0which will load the Recovery Console. Enter the number of the windows installation you want to log onto. Most often its 1. Enter the administrator password if you have one, otherwise hit\u00a0<em>\u201center\u201d.<\/em><\/li>\n<li>At the command prompt, type\u00a0<em>\u201cCD System32\u2033 ,\u00a0<\/em>hit enter. Then type\u00a0<em>\u201cexpand D:\\i386\\HALACPI.DL_\u201d<\/em>\u00a0, hit enter again. Finally, type\u00a0<em>\u201ccopy HALACPI.DLL HAL.DLL\u201d,\u00a0<\/em>and hit enter. Type Y for yes on the overwrite file confirmation message. (*cd drive letter may vary)<\/li>\n<li>Reboot the Virtual Machine. If everything works the way its supposed to you should see it boot into Windows.\u00a0Likely, you will have to reactivate Windows before it will allow you to actually log on. Congratulations, you now have\u00a0a virtual image of your physical drive.<\/li>\n<li>Optional: Depending on how big your .vhd file is, you may want to compress the image. Check out this\u00a0<a href=\"http:\/\/kurtsh.spaces.live.com\/blog\/cns%21DA410C7F7E038D%211902.entry\">post for tips on\u00a0that.<\/a>\u00a0Or\u00a0<a href=\"http:\/\/blogs.msdn.com\/virtual_pc_guy\/archive\/2005\/07\/07\/436216.aspx\">this one.<\/a><\/li>\n<\/ol>\n<p>If you still have difficulties you can check out the following websites which helped me tremendously.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/virtual_pc_guy\/archive\/2004\/11\/22\/268225.aspx\">Using Virtual PC for computer migration<\/a><br \/>\n<a href=\"http:\/\/blogs.msdn.com\/virtual_pc_guy\/archive\/2004\/11\/30\/272662.aspx\">Tips for migrating a physical computer to a virtual machine (part 2)<\/a><br \/>\n<a href=\"http:\/\/blogs.msdn.com\/virtual_pc_guy\/archive\/2004\/12\/10\/279667.aspx\">Tips for migrating a physical computer to a virtual machine (part 3)<\/a><br \/>\n<a href=\"http:\/\/blogs.msdn.com\/virtual_pc_guy\/archive\/2004\/12\/16\/316643.aspx\">Tips for migrating a physical computer to a virtual machine (part 4)<\/a><\/p>\n<p><em>Disclaimer: Your mileage may vary. Make sure you have current backups before attempting any major changes to your computer. I\u2019m not responsible for any problems that may occur from following or not following these steps.\u00a0You also are responsible to make sure you have the appropriate Microsoft Software licenses for your virtual machines.<\/em><\/p>\n<p>Update 10\/13\/2008 \u2013 If you get a blue stop screen with an error 0x0000007B try expanding hal.dl_ to the \\system32 folder instead of halacpi.dl_.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Convert a Physical Hard Drive to a Virtual Machine 6:07 PM\u00a0CATEGORIES:\u00a0MISC.\u00a0BY\u00a0KIRBY WITMER\u00a028 COMMENTS Recently, I was working on a customer\u2019s computer which had a bad motherboard. The customer opted to go with a new computer instead of repairing &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=784\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-784","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=784"}],"version-history":[{"count":2,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":786,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions\/786"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}