As previously posted, we have embarked on a project that includes the upgrade and consolidation of SQL Server machines from version 2000 and 2005 to a single server running SQL Server 2008. We have been performing testing to find the optimal path for performing these tasks.
This series of articles present our findings and processes as we performed them. These processes may not be optimal nor preferred in other installations, but they represent the best case for our particular assignment. As such, we certainly welcome feedback.
Part I – Building the Test Environment
Before performing the upgrade we wanted to ensure that our processes would work. Additionally, we have a deference for knowing what roadblocks we might run into ahead of time. When dealing with databases, most times I am going to bet that people or system will be impacted by the DB services being unavailable. Therefore, time is important. Testing before hand can shrink the outage windows and help keep customers happier.
As such, we decided to replicate the key pieces of the infrastructure into a virtual environment. We did this using the VMWare ESXi platform which we are familiar with from our own server infrastructure environment. If you are unfamiliar with ESXi, it is a free version of the VMWare virtual infrastructure product line. You do have to register with the VMWare.com website to download and obtain a license key, but you probably want to be able to review the knowledge base and community forums anyhow. For an SMB like us, it is a great virtualization platform.
Testing Environment ESXi Server Setup
First, we needed the VMWare ESXi server. So we downloaded the latest ESXi bootable ISO from VMWare.com, burned the disc and booted our test server up. We won’t go into all the setup screens, but you can find ESXi installation instructions in a variety of places including this one. Essentially we just took the default installation, rebooted and then configured the management interface with a static IP, mask and gateway. Finally we setup a root password.
Converting or Moving Production to Test
Now whether your production servers are already virtual machines on VMWare or are real, physical servers you are going to need to create an exact copy of them for your test environment. VMWare has a great little, free, tool that allows you to do this. Although they have bigger, better (not free) tools to do this, our needs are such that the free tools work. The VMWare Converter tool is the key. Download it from VMWare.com. Then, we simply install the converter application on the servers that we need to replicate to test. [Note: Just found out that version 4.0 of VMWare converter was released on 2/12/2009. We were using version 3.0]
The conversion process takes the current server and converts it to a compatible VM (virtual machine) on the test server. This include all O/S, network, disk, CPU and memory settings. One note, you’ll want to ensure you have enough disk space on the test ESXi server to accommodate all the disks you are converting for all the VM’s.
[Note: We learned the hard way, having to rebuild the array on the test ESXi server from RAID 5 to RAID 0 in order to get the last bit of disk space we needed. Lesson:Â sum all your disk space needs for all the servers you will be converting, ahead of time.]
The process is quite simple but may take numerous hours depending on the data needing to be migrated. So let’s walk through one example of converting one of our production machines in the following video.

5) Choose "local machine" and the converter will convert the current machine using the current users credentials.

6) Choose the disks to be converted. Be sure you include the O/S drive and any data drives you might need.

8) Our destination type will be VMWare Infrastructure Virtual Machine since we want to convert his server to a VM that will run on VMWare ESXi.

10) Type the name you wish to give the new VM when it is converted. This is not the O/S name but the VM name that shows up in the VM inventory.

13) Place checkmarks on these two options to ignore hibernation and page files and install the VMare tools on the destination VM.

14) Do you want to VM to automatically power on after the conversion is complete? Click finish to start the conversion.
When the conversion completes, pat yourself on the back as you just converted your first server. Now just repeat this process for each of the servers you need to complete your test environment.
Just a quick observation and statement of the obvious. The length of time that a conversion takes is primarily dependent upon two factors, network and disk space. On the network side, I would highly recommend using Gigabit networks for converting larger servers. We found a many fold reduction in conversion time simply by moving from 100 megabit to Gigabit networks. Additionally, the amount of used disk space on the source server will also play a role in the conversion time. The more disk space in use on the source server that is needing to be converted, the more time the conversion will take.
Keep in mind I said “used” space. Unusued space on the disks being converted seems to play very little into the conversion times. As such, clean out your temp files and such before doing a conversion. It might save you some time when converting.
Configuring the Isolated Test Network
Doing this allows us to connect to the management network on the ESXi. Once installed, point your browser to the IP address of the ESXi server via https and you can download the VMWare Virtual Infrastructure client. (https://192.168.1.134 or whatever IP you gave your ESXi server). This client application currently only runs on Windows, sorry Linux folks. This is what you will use to manage your virtual clients.
In our case,we wanted the virtual servers to be able to connect to themselves but not the “real” LAN so as not to cause duplicate IP and Active Directory issues. To do this, we created an isolated virtual network. From the client application, we created a second virtual switch. When we created the virtual switch, we did not link a physical network card to the virtual switch definition. This essential makes a virtual switch that can talk only to other devices on the same virtual switch.This is a plus for testing of an isolated network environment where you do not want the test servers to talk to your LAN. On the downside, your servers on this new virtual switch can’t get to the Internet either. (at least not without some other fancy networking tricks).
Here’s some screenshots of the process.
Again, congratulations. You just finished creating you own host only virtual network switch for isolated server testing. Now you need to move your VM’s to use this new network. You’ll need to edit each VM’s setting and change the network that the NIC connects to be your newly create host only network.
That’s the majority of it. Again, we used this setup to convert 5 of our production servers including SQL 2000, SQL 2005, Terminal Services, File Services and Domain Controller all to this isolated test environment. Then we made a snapshot of each converted server which allowed us to go back to the fresh conversion state as many times as we wanted.
From here, we embarked upon our SQL Server 2008 upgrade testing.
Blessings.
Popularity: 14% [?]











