Virtualization Technology News and Information
Getting to grips with the Virtual Server Migration Toolkit

Quoting from ZDNet

Although migrating real servers to virtual using this tool is not without its difficulties, you may be surprised to learn how painless the process can be.

Virtualisation is rapidly becoming a major force in IT. With Microsoft's release of Virtual Server R2 Enterprise Edition for free (available here) and VMware's free offering of VMware Server (formally GSX Server — available here) virtualisation has become a hot topic in many shops. It came as no surprise that the virtualisation wave hit my own company. When the choice to use Microsoft's product was made, we found the virtualisation process itself was fairly simple. The next step was to look at migrating our real server to our new virtualised environment.

The job
We needed to find a way to migrate our real servers to virtual. Some of these were as simple as installing a new server and migrating the function. We only had to implement a few backend DNS changes, and users were none the wiser. Unfortunately, we could not do this with all of our servers. We wanted a way to virtualise our current environments with only a minimum of user downtime. The best way to do this was with imaging software.

The tool
We decided to use the Virtual Server Migration Toolkit (VSMT) from Microsoft (available here). This tool managed to make it high on our list due mainly to the price (free). This tool makes use of another Microsoft tool, Automated Deployment Services, to take an image of a physical server, create the new virtual server, and then deploy the image to the virtual server. From the initial information we read, this did not seem to be the best of the imaging tools, but it did meet our main requirement: price.

Using the VSMT was not an easy intuitive process. This mostly command line tool required a good deal of effort to set up, and make work. It also required us to create another server to run the Automated Deployment Services and the VSMT itself. While these could have been run from one of our Virtual Server servers, company policy prevents us from installing unneeded services on production servers.

Putting the toolkit to the test
Using the VSMT consists of several steps. The first step (after properly preparing your physical server) is to gather your hardware information with the gatherhw tool. This is a simple command line tool that generates an XML file containing pertinent information regarding the physical system.

You will then use the hwvalidate switch of the vmscript to validate the XML file created in the previous step. This will tell you if there are any needed patches or incompatibilities in your physical system. After correcting any issues, you will use the vmscript command again to create a series of scripts to perform the final parts of the migration.

One of the great powers of the VSMT lies in this. The scripts created are simple batch files, so you are free to edit them as you wish. This gives a lot of power to you as the administrator in creating and customising your virtual machines, although you must be careful as you can also cause yourself many problems if you edit settings you are unsure about. The next step you will perform is the capture of the virtual machine. You will have already created a script to do this (%sourcemachinename%_createvm.cmd). Running this step will create all the necessary jobs in ADS to take the image of the physical computer.

Once this is done, you will need to reboot your physical server, and set it up for PXE boot. When you have taken your image, you will create your virtual machine with another script (%sourcemachinename%_createvm.cmd). This will create your virtual machine on the target Virtual Server, and place the proper boot floppy image in the systems floppy drive. You will then run the %sourcemachinename%_deployvm.cmd script to push your image to the newly created virtual machine. As with the image capture step, this script creates all the necessary jobs within ADS to do this.

After this you will need to install the Virtual Machine Additions to your newly virtualised server, along with installing any necessary drivers for the new hardware. Your new system will be identical to your old system. You can even set the system to clone the MAC address of your old system if that is needed. You can view a walkthrough of the process here.

Right tool for the job?
Without a doubt the Virtual Server Migration Toolkit is a difficult tool to work with, but after a few uses it became much easier. This tool gives you a lot of power in the migration processes. With the use of ADS and the created scripts, you are in full control of the migration. By the time we had migrated our first 10 servers using this tool it seemed as easy as copying a file, and it never failed to the job we set it out to do. After the initial learning curve was reached, the Virtual Server Migration Toolkit really proved itself to be the right tool for the job.

Read or comment on the original, here.

Published Saturday, October 14, 2006 4:31 PM by David Marshall
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
<October 2006>