ArtinSoft's Blogs

Software Migration Experts
Welcome to ArtinSoft's Blogs Sign in | Join | Help
in Search

Jose Aguilar's Blog

All things migrations, software and technology

Moving a VMDK with Linux installed to a VHD

As suggested in this post by Christian, I went ahead and downloaded the vmdk2vhd utility to convert virtual hard drives from VMWare’s VMDK format to Microsoft’s VHD format. To test it out, I also downloaded Red Hat Enterprise Linux trial virtual appliance from VMWare’s site, and ran the converter on it. These are my results.

First, running the converter is pretty straightforward. You just launch the utility, and it presents you with a simple UI, where you select the vmdk you want to convert, and the path to the destination VHD.

VMDK2VHD01

Once you select the vmdk and the vhd, press the convert button to start the conversion process:

VMDK2VHD04

The tool shows you a dialog box when it completes the conversion:
VMDK2VHD05

I created a new virtual machine in Virtual Server 2005 R2 SP1 Beta 2 using this newly converted VHD,  and, not knowing what to expect, I started it. The redhat OS started the boot up process normally:

VMDK2VHD07

After making some adjustments to the configuration, including the X Server configuration, I finally got the X Windows server to come up. I am currently playing with the OS, and will proceed to install the VM Additions … I will document the process in another post soon.

VMDK2VHD09

As you can see, the process for converting a VMWare virtual hard disk to a Virtual Server VHd is very straightforward. This will work, ideally, in a migration scenario, but this also enables a scenario to try out the large amount of Virtual Appliances that you can download from VMWare’s website.

Published Jan 23 2007, 08:44 PM by Jaguilar
Filed under: ,

Comments

 

Csaborio said:

Whoa...I never thought that it would actually work! :D Glad to see the process went alright...seems like the tables have turned with VMWare now that there is a VMDK->VHD tool available.
January 23, 2007 6:52 PM
 

peter said:

actualy it doesnt work more often you had lots of luck

March 13, 2008 7:59 AM
 

Neon Jack said:

BEWARE of using this tool on VMWare images of Windows OSes. You need to prepare the image before converting it. This tool does not do that. If you don't prepare the image before conversion, you will get endless BSODs (Blue Screens Of Death).

Preparing the image is VERY complicated, easy to go wrong, and the current adhoc tools provided on the Internet that I've seen don't work, particularly if your host system is Vista.

I would explore deeply into the issues and problems surrounding this whole process before you go off converting, if I were you. The biggest problem is having VMWare Tools installed on the guest OS.

In comparison Linux may well be a bit of a doddle...

May 14, 2008 5:56 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About Jaguilar

Jose A. Aguilar has been working at ArtinSoft for more than 6 years, starting out with Informix to Java migrations and moving on to VB6 to .NET conversions using the Visual Basic Upgrade Companion. He currently works as both Senior Software Migration Consultant and Program Manager for the Visual Basic Upgrade Companion, helping clients to leverage their existing investments in VB6 by moving them to .NET Framework.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems