You might want to create a “base” virtual machine with an operating system and applications, and then copy its .vhd file to use for other virtual machines. Before you make copies of the .vhd, however, it’s important to run Sysprep in the guest operating system. This way, the first time you start a virtual machine that uses a copy of the base virtual machine’s .vhd file, the guest operating system will be assigned a new SID and other identifiers, so you won’t end up with network conflicts between different virtual machines that use the same copied .vhd file.
Read all about it in the article I just posted in the "Deployment" category at http://blogs.technet.com/megand/articles/357570.aspx.
Please note that Microsoft does not support using a tool other than Sysprep for cloning virtual machines. For more information, see this Knowledge Base article: http://support.microsoft.com/Default.aspx?id=162001.
I learned how to do this at TechEd 2004 in a lab led by Robert Larson, one of our resident Virtual Server gurus.
You can create a “base” virtual machine with the operating system and applications you want, and then copy its .vhd file to use for other virtual machines. When you do this, it’s important to run a tool called Sysprep on the base virtual machine. That way, when you start a virtual machine that uses a copy of the base virtual machine’s .vhd file, the guest operating system will be assigned a new SID, GUID, MAC address, and so forth when it starts up. This way you won’t end up with network conflicts between different virtual machines that use the same copied .vhd file.
Important Notes:
Step 1: Install the Setup Manager files in your guest operating system
Step 2: Create an answer file
Note: This procedure applies to the Sysprep version for Windows Server 2003. You’ll need to modify the steps for other versions of Sysprep. The files that you extracted from the Microsoft Web site include a help file named Deploy.chm that has specific information for your version. It's a good idea to read the help file and become familiar with this tool and figure out how to customize the following steps for your own environment and purposes.
Step 3 – Sysprep the guest operating system
You can now make copies of this .vhd file and attach them to different virtual machines. After you copy the .vhd file, you need to remove the copy’s read-only attribute. When you start a virtual machine with a copied .vhd file, it will receive a unique SID and other identifiers. You can also use the base .vhd file as the parent drive image for several differencing drives. The unique identifiers for each guest operating system built in this way will thus be written into the differencing drives, and not the parent.
Note: The fourth time you run Sysprep on the same media, you receive the message, "Your grace period limit has been reached and will not be reset." For more information, see http://support.microsoft.com/default.aspx?scid=299840.
I know this is slightly off topic, but Windows Server User Assistance has a number of openings for technical writers, and if we fill the positions, I'll have more time to write in this blog. To qualify, you need to have a strong background and preferably hands-on experience in IT, in addition to excellent writing skills. The positions are all located in Redmond. For more information, go to the Career Center on the Microsoft Web site.
Using virtual machines for software development, software testing, and patch testing is really catching on at Microsoft – and for good reason:
Here are some tips for testers and developers:
You probably already know that Virtual Server provides a complete set of COM interfaces for programmatic management (see Start > All Programs > Microsoft Virtual Server > Virtual Server Programmer's Guide). But did you know about the Virtual Server script repository on TechNet? It contains sample scripts for tasks such as managing virtual hard disks, configuring Virtual Server and virtual machines, configuring security, and managing virtual networks.You can find the repository at http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx.
Here's what Kurt Schmucker, the program manager for Virtual Server 2005 Service Pack 1 says about the release:
"As with typical service packs from Microsoft, Virtual Server 2005 Service Pack 1 will be primarily a rollup of fixes we have seen since the product was released to improve performance and increase scalability. In addition, with Service Pack 1, Virtual Server 2005 will have host support for Windows Server 2003 Service Pack 1 x64 Edition (note that this does not include IA64), provide PXE support, qualify Windows XP SP2 as a host and as a guest, and include the Virtual Disk Precompactor, a utility that is designed to "zero out" — that is, overwrite with zeros — any available blank space on a virtual hard disk. A public beta is slated for the end of first quarter 2005, with product release planned for the second half of calendar year 2005."
You can attach each virtual machine running under the same instance of Virtual Server to a separate physical network and also isolate the virtual machine network traffic from the host, as follows:
To bind or unbind the Virtual Machine Network Service from a NIC:
Note: You can isolate virtual machine network traffic from the host at any time by unbinding Virtual Machine Network Services from the NIC used by the host. For more information about network isolation, see "Virtual network architecture" in the Virtual Server 2005 Administrator's Guide.
For general information about configuring networks for virtual machines, see "Accessing virtual networks from a virtual machine" and "Creating a virtual network" in the Virtual Server 2005 Administrator's Guide.
HP is delivering a live Webinar on January 14, 2005 on Virtual Machine Management. Here's the description from HP: "Learn the advantages of virtual machine technology and understand how the Virtual Machine Management Pack allows you to manage and control the VMWare and Microsoft Virtual Server resources in your environment." To register, go to http://www.hpbroadband.com/program.cfm?key=Q91MTB88Y.
John Howard has posted a series of blogcasts (e.g., video clips published on a blog) that walk you through the process of using VSMT to migrate a Windows NT 4.0 server into a virtual machine running under Virtual Server 2005. You can find them on his blog at http://blogs.msdn.com/jhoward. The first blogcast of the series is at http://blogs.msdn.com/jhoward/archive/2005/01/04/346147.aspx.
Great job, John. Thanks!
Although there are high-level instructions on performing a migration in the VSMT whitepaper (http://www.microsoft.com/windowsserversystem/virtualserver/overview/vsmtwhitepaper.mspx), if you're going to do a serious migration, you need to follow the detailed documentation in the "Virtual Server 2005 Migration Toolkit User's Guide." You'll find it at %ProgramFiles%\Microsoft VSMT\Help\VSMT.chm. This documentation will get you reliably from here to there, and if you have problems, the issue is very likely covered in the Troubleshooting topic. If it isn't, please let me know.
Also, for some guidance with planning a migration and capacity planning, be sure to read the "Solution Accelerator for Consolidating and Migrating LOB Applications," available at http://www.microsoft.com/technet/itsolutions/ucs/lob/lobsa/default.mspx.