How to create a virtual machine with Microsoft Virtual Server 2005 R2

How to create a virtual machine with Microsoft Virtual Server 2005 R2

Once you have Virtual Server installed, the obvious next step is to create a virtual machine. But where do you start?

In the first article in this series Installing Microsoft Virtual Server 2005, we walked through the process of installing Microsoft Virtual Server 2005. In this article, I'll walk through what you need to know to create a new virtual machine (VM).

Configuring Virtual Server settings

Although you could start creating VMs immediately after installing the Virtual Server service, it helps to spend some time customizing a few basic server settings. If you want to play along at home, start by launching the Virtual Server Administration Web site (I'll provide screenshots if you'd rather just sit back).

Many different configuration options may be important, but in this article, I'm going to discuss the settings that most Virtual Server administrators will want to change.

Enabling the VMRC Server
The Virtual Machine Remote Control (VMRC) Server is a process that allows users to connect directly with virtual machines. This is most important during the guest OS installation process. For security purposes, the VMRC Server is disabled by default. To enable it, click on the "Server Properties" link under "Virtual Server" in the left navigation bar. Then, click on the VMRC Server link.

In the VMRC Server

    Requires Free Membership to View

    When you register, my team of editors will also send you the latest expert resources covering all areas of server virtualization, such as platforms, architectures and strategies, server hardware, managing virtual environments, application issues and more.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchServerVirtualization.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchServerVirtualization.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

link, you'll be able to configure many different settings, including the TCP port number, on which network interface(s) the VMRC server will respond, default screen resolution and supported authentication methods (see Figure 1).

To allow connections, check the Enable checkbox and click OK. You should now be able to connect to VMs using the VMRC client application or directly through the Virtual Server Administration Web site.

Figure 1: Configuring VMRC Server options for Virtual Server

Configuring search paths
By default, Virtual Server will create new VM-related files within a folder buried beneath the local "Documents and Settings" folder. It's almost always better to create your VMs in another file system location. Click again on "Server Properties" in the Virtual Server Administration Web site and then select "Search Paths". Figure 2 shows the options that are available.

Figure 2: Configuring Virtual Server search paths

The two settings are:

  • Default virtual machine configuration folder: This is a single file system path that specifies where new virtual machines will be created. Choose a path on a volume that has plenty of free disk space. You can always override this location, but keeping VM-related files in an organized location will pay off in simplifying administration.
  • Search paths: Here you can enter a comma-separated list of file system paths, an option provided primarily for convenience. When you're working with VMs and related objects, the Virtual Server Administration Web site will automatically look in these paths for files. You can always manually type the path names, but it's much easier to just select appropriate objects from a list.

When you click OK, Virtual Server will attempt to verify the file system locations that you've specified. If the paths or folders don't exist, you'll receive a warning. You can always change these file system locations in the future (just note that Virtual Server will not move any files – you'll have to do that yourself).

Creating a new virtual machine

With the basic server settings out of the way, it's time to create a new virtual machine. Although you could manually create virtual hard disks (VHDs) and VMs, Virtual Server provides a shortcut. The process is easy enough using the Virtual Server Administration Web site. Click on "Create" in the Virtual Machines section.

Figure 3 shows the available options.

Figure 3: Creating a new virtual machine

If you're worried, rest assured that all of the decisions you make here can be changed later. Here's a quick overview of the information you'll need to specify:

  • Virtual machine name: It's a good idea to use a description of the configuration of the VM. Examples might be, "Windows Server 2003 Enterprise Ed.", or "RedHat Test Workstation". Virtual Server will use these names for the folder name and the name of the initial virtual machine configuration (.vmc) file and, optionally, virtual hard disk (.vhd) file that it creates. Note that if you want to create the VM in a location other than the default Virtual Server path, you can type the fully qualified path in this box.
  • Memory: This box will allow you to specify the total amount of physical memory that will be committed to the virtual machine. A good rule of thumb is to use at least the minimum that you would have in a physical machine that was designed to run the intended guest OS. Remember that you can change the setting later.
  • Virtual hard disk: In this section, you can choose to create a new virtual hard disk (VHD). This is allows you to specify the maximum size of the VHD and whether it should be connected to a virtual IDE or SCSI controller. The physical file that is created will initially be small, but it will expand as space is required by the Guest OS. Because the maximum size cannot be directly changed, it's a good idea to use the 16GB recommendation. You can also attach an already existing VHD or choose to create the VM with no VHD at all.
  • Virtual network adapter: Here's where you can determine the type of network connectivity you want the VM to have. By default, you'll have the option of internal network (specifying that VMs will only be able to talk to each other) or external network (which will allow the VM to participate on the host's LAN connection). I'll cover the options in detail in a future article. If you're not sure what to choose, "Not connected" is a safe bet (you can always attached to a network later).

Once you've provided the necessary details, you can click the Create button to define the VM. Virtual Server will create the necessary files, and you'll see your new VM in the "Master Status" page of the Administration Web site.

Configuring VM hardware options
So far, you've only included the bare minimum that's required to create a basic VM. But you can also view further details about the hardware configuration of the VM by clicking on "Configure" in the "Virtual Machines" section of the Administration Web site.

As shown in Figure 4, you'll be able to make changes, such as changing the amount of memory allocated to the VM, changing its name, modifying virtual network adapters, adding virtual hard disks, etc. I'll cover several of these options in future articles.

Figure 4: Viewing a VMs virtual hardware configuration

Next steps

Now that you've configured Virtual Server and created your first VM, you're ready to install a guest operating system. I'll cover that topic in the next article.

Installing Virtual Server 2005 Installing a guest operating system

About the author: Anil Desai is the author of numerous technical books focusing on the Windows Server Platform, Virtualization, Active Directory, SQL Server, and IT management. Most recently, he has written The Rational Guide to Managing Microsoft Virtual Server and The Rational Guide to Scripting Microsoft Virtual Server. He has made dozens of conference presentations at national events and is also a contributor to technical magazines.

This was first published in October 2006

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.