Getting to grips with the Virtual Server Migration Toolkit

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

ANALYSIS

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.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

8 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

9 hours ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

10 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

12 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

13 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

14 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

15 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

15 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

16 hours ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

18 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

24 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

1 day ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

1 day ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

1 day ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

1 day ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

1 day ago by ramwellian on Cloud computing security: no more oxymoron?