Here’s 2 great articles describing how to prepare a virtual machine for use as a template VM, the article discuss’s using Microsoft Virtual PC, though the content is valid if you’re using VMWare or some other virtualization product. Here’s the first link, and here’s the second.