October 27, 2009

Q. Is there an easy way to convert a physical disk or system to a Virtual Hard Disk (VHD)?

RSS
Subscribe to Windows IT Pro | See More Windows OSs Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. It's possible to convert a physical disk, including a system disk, into a VHD using many physical to virtual (P2V) convertor tools, such as System Center Virtual Machine Manager (SCVMM). These tools typically use a volume shadow copy to capture the disk content and then migrate the content into a VHD. They then create a virtual machine on a hypervisor host matching the hardware of the original physical box. Alternatively, P2V systems can have custom boot environments (often based on Windows PE) that capture the disk contents from outside of the OS. These systems typically require substantial infrastructure but have a lot of functionality.

You might want to simply convert a disk (even a system disk) to a VHD—doing so could be useful for P2V scenarios. Or you might want to take a physical disk and make it a VHD so you can use the features in Windows 7 and Windows Server 2008 R2 that let you boot from VHDs. Sysinternals offers a free tool called Disk2vhd to do this.

Once executed, the tool shows all volumes on your system. It lets you select which drives should be captured to a VHD and to where they should be captured. Once you've selected the volumes, click Create and the tool creates a differential snapshot. (You can see it with the "vssadmin list shadows" command). The data is then copied from the snapshot into a VHD, and then the snapshot is deleted. All of this is done with no down time.



It's important to note that the VHDs created by disk2vhd are fully bootable, unlike the VHDs created by Windows Backup. You can use disk2vhd to capture the system disk then take that VHD, copy it to a virtual server like Hyper-V, and use it as the boot volume.

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

End of Article



Windows IT Pro Community
Blogs





Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Virtualization Whitepapers A Business Case for Backup & Recovery for The Virtualized Environment

Related Events VirtualizationPro 2010 Summit & Expo

Deep Dive into VMware vSphere

RUUP4IT? R2 Takes You Vertical and Virtual

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


SQL Server Magazine Office & SharePoint Pro DevProConnections asp.netPRO ITTV
IT Library Technology Resource Directory Connected Home Windows SuperSite
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc.     Terms of Use | Privacy Statement | Reprints and Licensing