A virtual machine is a software, that lets you create and run a separate operating system in your existing computer system. You can boot the virtual machine from the parent operating system and run just like another software application.
For example: If you are using Windows xp, you can install popular virtualization software like Windows virtual PC, Vmware workstation to create a virtual machine within your current operating system. Now in that virtual machine, you can install any operating system e.g Windows xp, vista. You can run these operating systems in a new explorer window within Windows xp.
The problem with virtual machines is that you have to install an operating system from scratch. This includes loading the operating system from cd or dvd, installing all the drivers and system software etc. This can be very time consuming and is not a quick job.
How to Convert your Existing Operating System into a Virtual Machine
Microsoft has a free application named Disk2vhd, which can create a virtual machine of your existing operating system. The utility is a portable application and does not require any installation. You can run the virtual machine on any computer you want.
Following are the steps involved to create the virtual machine of your existing Windows operating system:
1. Download the Zip file (751 Kb) and extract it. After that, just run the Disktovhd. exe.
2. The application will show you the available drives in your computer.
![]()
3. Select the drive which you want to migrate as a virtual machine. In this case, i would want to create a virtual machine for my Vista installation, hence i have selected the D drive.
4. Specify the path where you want to save the virtual hard drive (vhd) file. The file would be of large size and almost equal to the size of the operating system drive.
5. Hit the Create button. It would take some time to create the vhd file (mine took 25 minutes).
The software will clone a virtual hard disk of the drive selected and save it in specified location. After the vhd file has been created, you can use any virtualization software to mount the virtual hard disk and run the operating system as a virtual machine.
For example: I mounted the virtual hard disk on Microsoft Virtual PC and ran Windows Vista as a virtual machine under Windows xp. The software can convert the chosen hard drive into a vhd file, even if it is under use.
How can the Virtual machine be useful
Using a virtual machine has many advantages, especially when you are tech savy. Consider you are working in Windows xp and need to test a small Windows application compatible with Windows vista only. In that case you have to boot your system and start Windows vista again. A virtual hard disk of vista will come in handy here as you can start testing the vista compatible application by starting a virtual machine in xp.
![]()
Another situation where virtual machine can be a real time saver is when you are using multiple computers. Suppose you want to work in your friends computer with all your installed software and applications. In that case, just create a virtual hard drive of your operating system and carry the vhd file in a usb stick. When you are using the friend’s computer, just mount the virtual hard disk and use all your installed software.
Disktovhd can be used to create virtual hard drives of Windows xp, Windows vista, Windows server 2003. If you are using Ubuntu, check out how to create an Ubuntu virtual machine.
Receive the latest update in your inbox.










For which virtualization programs does this work? Specifically, does it work with:
Virtual Box Open Source
Virtual Box private
VMWare player (free version)
@digitivity : It works with Windows Virtual PC. I havent tried it with VMware workstation though
disk2vhd images work fine in VirtualBox. So do VMWare images and Parallels images.
i have an hp laptop running vista home premium, it is a 64 bit operating system but it is not able to be connected to my hp printer which is 64 bit compatable (or so it says on the box) the error i keep getting is that thunking spooler has stopped working. The printer works fine on my Xp run desk top. I think it may be a registry probem but i’m not sure. Can you help?
Hi there,
My PC have Win7 and Sv2008 OSes in seperate partion (disk).
Normally I used dual boot (one ON and the other OFF).
But when develop something that need server side application to run (such database and web server), I want both of them are ON.
Using VHD image of Win7 in Hyper-V of Sv2008 could solve my problem.
But when it come to syncronization of my work in VHD image of Win7 and my real disk partition of Win7, I have to manually copy files between both of them.
Is there any work arround to simplified my problem ??
Or migh be, is it posible to run my fisrt (or second) OS in VM (as a guest OS) on top of my second (or first) OS, but without using an VHD image (instead, using the disk partition of the guest OS directly)??
Thank u kindly for the response.
You need to re-enable the automatic start of the print spooler driver from the services menu.. Go to Run->services.msc->Print Spooler, and right click on it to go to the properties tab. If the Startup type says “Disabled” or “Manual”, change it to “Automatic”. this should enable the spooler from the next startup. Choose “Start service” and then try to print again. If the same error pops up, you might need to re-install the service. Please refer to the Microsoft help pages to get that working.
????
I know this is an old post, but the .vhd extension does not work with VMWare
To build your virtual appliance,which includes your applications,database and library files pre configured and ready,you need to create an image of virtual machine with a stripped down os and your application and port that machine as a virtual appliance. In order to do this,you have two options. Create an appliance to your virtual machine and then configure the application and host it as an appliance. Or, you can use ready made tools for the job. For Instance, there are plenty of application that creates one for you.