How can I migrate a Windows 7 system image into a VirtualBox VM?

4

I have a Windows 7 system image (as in Microsoft's built-in backup, not dd or Norton Ghost). Can I convert it into a VirtualBox image? I'm aware that you can do this with dd images.

Even if I'm able to convert the image, will it break? The VirtualBox wiki suggested that I need to run MergeIDE before taking the system image, which I didn't do, and now I've already uninstalled Windows. So will I need to reinstall it and make a proper backup?

Update:

Okay, I have created a write-through virtual disk backed by the physical disk that contains my WindowsImageBackup. If I add that vmdk to my VM then it can see the backup! However, a new problem.

"No disk that can be used for recovering the system disk can be found," error code 0x80042412. But it can see the system disk, diskpart says it's online at SATA port 0. And I haven't selected it for exclusion. It just seems not to be able to read the disk.

Update 2:

After some searching I believe the new error is due to the fact that my virtual drive is smaller than the drive that was imaged (even though the actual space used was much less, the drive itself was large). I don't have enough room on any of my drives to accommodate a 1TB virtual disk, so I guess I'm stuck.

FYI for future readers of this post: I think this would have worked if I had enough HDD space. At the least, it should be possible to restore an image into a virtual disk. But it's still unknown whether Windows would boot without the registry changes made by MergeIDE.

windows-7
virtualbox
disk-image
asked on Super User Jan 9, 2012 by Neil Traft • edited Jan 17, 2012 by Neil Traft

2 Answers

4

Have you tried the Sysinternals (Microsoft) Disk2Vhd utility? It'll create a VHD with which Virtualbox is compatible. You'll then need to import this as a disk and create the Virtualbox VM itself to configure the settings.

answered on Super User Jan 10, 2012 by Eccentropy
1

There is no direct Windows System Image to Virtual Machine conversion I am aware of, but since you have the system image, why not just start the Windows install process and use the system image as the source and restore it into a new virtual machine?

Boot from your install media, and when prompted if you would like install windows or restore from a backup - choose the restore option and select your system image backup as the source. My only advice would be try to configure your virtual machine to match your previous hardware (making adjustments as necessary for disk space, processor count, RAM, etc.).

answered on Super User Jan 10, 2012 by Goyuix

User contributions licensed under CC BY-SA 3.0