I thought I'd written this down somewhere, but apparently not, so I figured I'd make a blog post out of it.
Despite the fact that it's been a long time since I've blogged, I don't think it's a secret that I'm a fan of virtualization. The other day, after posting on some VBAX threads, I started feeling that I needed an Excel 2003 install to test some things. Now I've detailed the steps I used to set up an Office Sandbox before, but what I really wanted here was the ability to run multiple VM's at once. So it was obviously time to recreate my environment.
This time, rather than set up a single virtual machine with all kinds of snapshots on it, allowing me one testing ground at a time, I decided to go with linked clones in VMWare. This allows me to set up one main Windows XP hard drive, then spin off just a linked clone for each Office installation. They're separate, can run at the same time, and I don't need to create a large hard drive for each image. Each linked clone expands to incorporate the office install, but that's about it.
In addition, I also set up a Windows 2003 master and am currently in the process of setting up a domain controller and a file server. This will let me fool around with some features that require a domain, and also means that I can set up a file structure similar to the office. I'm hoping that I won't have to deal with any more of those "your network add-ins aren't available right now" messages.
At any rate, here's the steps I went through to create it using VMWare 6.5.
Initial VM creation
- I made a new VM and installed Windows XP. Nothing really magical there (at least not in my opinion)
- Installation of VMWare Tools is also essential
Patching, patching and more patching
- I installed all the various service packs and windows updates. Tons of them. Then more.
- Next I installed Microsoft Update (after all, I plan on installing Office here) then checked for even more updates
- I also installed some optional updates that I thought I might need (.NET 3.5, etc…)
- Check for more windows updates
- Basically keep checking for Windows updates until there are none left.
Performance Tuning
- Download and install BGInfo so that the desktops get tagged with their system info.
- Download it from http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx.
- I create a folder in C:\Program Files\BGInfo and extract the pieces there
- Right click the Start Menu and Explore all Users. Drill into the startup for all users and place a shortcut to BGInfo.exe there
- Modify the "Shortcut to BGInfo" in the statup menu to read "BGInfo", go into it's properties and append /timer:0 to the target path
- Trash the zip file as it's no longer required.
- Install any programs I know I'll need in all machines (PDFCreator)
- On Windows Server 2003 uninstall the enhanced browing security. (Control Panel-->Add/Remove Programs-->Add/Remove Windows Components-->Uncheck Internt Explorer Enhanced Security Configuration.)
- If space and performance is a concern, uninstall any other unnecessary windows components
- Go to Internet Explorer and set the Home Page to something I'll use.
- Empty the recycle bin
- Run disk cleanup (Startà All Programsà Accessoriesà System Toolsà Disk Cleanup) and clean up EVERYTHING
-
Go into System Properties (Right click My Computer in the Start Menu) and adjust the following
- Turn off System Restore (System Restoreà check the box)
- Adjust for Best Performance (Advancedà Performanceà Settingsà Adjust for Best Performance)
- Drop the page file (Advancedà Performanceà Settingsà Advancedà Changeà No Paging File)
- Restart the computer (to confirm the page file deletion)
- Run defragmentation in the OS until it is almost instant complete
- Go back into system properties and create a page file. I set the initial and max size to the Recommended value at the bottom of the page.
- Shut down the guest OS.
- Run the VMWare disk defragmentation
- Uncheck all the "Connect at startup" settings for the floppy drive, CD ROM & Bluetooth
Preparing for next step
- With the machine shut down, create a snapshot. I label mine "Golden Master" and put in the notes what date it is patched to.
Creating the Office PC's
- From the VMWare VM menu, I chose Clone, and set up a Linked Clone from the snapshot
- Install Office
- Install utilities like freewheel, mztools, smartindenter. The reason I didn't do these earlier is that some require office be installed first, and some aren't necessary (Freewheel) in later office versions.
- Patch it (until no more patches show up)
- Run defragmentation in the OS until it is almost instant complete
- Shut down the VM
- Run the VMWare disk defragmentation
- With the machine shut down, create a snapshot. This one I'll call Office XXXX base image, patched to yyyy-,mm-dd
At this point I'm set up to use that VM. It may sound like a lot of work, but the bonus is that if I can roll back to a fresh office install at any time. Likewise, I can spin off a new linked clone from my Golden Master at any point in time too.
You'll notice that I don't have any antivirus software on the VM's. This is because I'm not using these for production, just for testing. I don't really want to have huge AV downloads every time I want to make a quick test, and I don't plan on surfing the net on these machines.
As far as Windows servers, I basically follow the same steps. Once I've got the base OS installed, patched and tuned, then I snapshot the golden master, create the linked clones, and off I go.