November 2006 - Posts

 

The instructions below show you how to first install and configure IIS on Windows Vista, followed by instructions for installing Virtual Server 2005 R2.


Installation and Configuration of IIS on Windows Vista to Support Virtual Server 2005 R2

IIS installation on Vista is a straight forward process, but selecting all the required components to support the Virtual Server 2005 R2 administration web site operation is a little tricky.  While you could take the simple approach and install all features under IIS, that is not a good security practice.  Follow the procedures listed below to install only the required features of IIS to support Virtual Server.

Note:  If User Access Control is enabled on your system, you will have to approve the launch of the Control Panel application since it requires administrative rights.

Installing IIS on a Windows Vista machine

  1. Logon to the Windows Vista machine with an account that has administrative rights
  2. Click the Vista Start icon
  3. Select Control Panel

  1. Click the Programs option; this will present you with a new dialog shown below

  1. Under the Programs and Features option, click the Turn Windows Features on or off option and you will be presented with the Windows Features installation dialog. 

  1. Expand the Internet Information Services node
  2. Expand the Web Management Tools node
    • Enable IIS Management Console
  3.  Expand the IIS 6 Management Compatibility node
    • Enable IIS Metabase and IIS 6 configuration compatibility
  4. Expand the World Wide Web Services node
  5. Expand the Application Development Features node
    • Enable CGI
  6. Expand the Common HTTP Features node and enable the following options:
    • Default Document
    • Directory Browsing
    • HTTP Errors
    • Static Content
  7. Expand the Health and Diagnostics node and enable the following options:
    • HTPP Logging
    • Request Monitor
  8. Expand the Performance Features node
    • Enable Static Content Compression
  9. Expand the Security node
    • Enable Windows Authentication

After all selections have been made, the options should look like

To close the window, click OK .

Installation of Virtual Server 2005 R2

  1. Download Virtual Server 2005 R2 or Virtual Server 2005 R2 SP1 Beta 2 from the Microsoft Download site (screen shots reflect installation using VS 2005 R2 SP1 Beta 2)
  2. Right-Click the Setup.exe and Select Run As Administrator to start the installation
  3. Click the button to Install Virtual Server 2005 R2
  4. Read the license term and select I accept the terms of this license agreement if you agree, then click Next.
  5. On the Customer Information dialog, enter your User Name and Organization, the Product ID should be grayed out and already provided.  Click Next
  6. You are now on the Setup Type dialog.  Since we are doing a single server installation we want to select the default option of a Complete Install. 
  7. Click Next.
  8. Select the port that you want to use for the Virtual Server administration web site or use the default of 80 on Vista. 
  9. Select the default option of Configure the Administration Website to always run as the authenticated user, then click Next.

 

  1. Accept the default to Enable Virtual Server extensions in Windows Firewall. This will automatically enable firewall exceptions for the Virtual Server Web site and the VMRC protocol in the Windows Firewall.
  2. Click Next.
  3. You have now selected all the configuration options for Virtual Server 2005 R2.  Click Install to complete the installation. 
  4. You should see the installation proceed, and then you will see a Internet Explorer window display that provides a summary of the installation and the links to the new Virtual Server Administration web site.

NOTE: You will have to Right-Click the IE Icon and select Run As Administrator, then type http://localhost/VirtualServer/VSWebApp.exe?view=1 to run the admin console and get connected.  By default, even if you are an admin in Vista, IE runs at lower privileges.

 

 

When you create a Virtual Hard Disk (VHD), you must specify the maximum size for the disk.  If it is a fixed disk, the specified disk space is immediately allocated as a single file on the host drive.  If it is a dynamically expanding drive, an initial allocation is made as a single file on the host and the VHD file expands as data is written.  Eventually, if enough data is written, the disk grows to the maximum drive size that you originally set at creation time.  With Virtual Server RTM and R2, the default maximum size of a VHD was set to 16GB, but this could be changed to a larger size during disk creation.  With the large amounts of data typically generated these days, there are probably many VHD's out there reaching the default 16GB disk size. 

To avoid this potential issue, in Virtual Server 2005 R2 SP1 the default disk size is set to 127GB.  However, this new setting may potentially create a new issue.  If you create multiple dynamically expanding VHD's using the default size, you could quickly over subscribe the host drive if one or more VHD significantly expands because of new data being saved to it. 

Note:  Make sure to properly plan and configure your VHD size and effectively monitor your VHD sizes and storage devices to proactively resolve these types of issues.

Now what do you do if you need to expand the size of the VHD because it ran out of space?

Unfortunately, there is no silver bullet to magically fix this problem today.  The VHD maximum disk size cannot be modified once it is created.  When the VHD is originally created, internal definition of the disk is performed at that time.  This includes setting the disk header, the Block Allocation Table (BAT), and the disk footer.  The BAT is a table of absolute sector offsets into the file that refers to the assigned data blocks. The size of the BAT is calculated, and the number of entries is set based on the number of blocks needed to store the contents of the VHD when fully expanded. For example, a 2-GB VHD that uses 2 MB blocks requires 1024 BAT entries.

Although you could potentially create a tool to read a VHD format, determine the current configuration and BAT size, specify a new disk size, and finally create the VHD with the new size and BAT table with all current data blocks mapped to the new file, such a tool does not exist today.

Therefore, your next best option may be to do the following:

  1. Create a new VHD and set the maximum size needed.
  2. Using a disk imaging tool that allows you to expand the disk partition, image from the original VHD to the new VHD increasing the original partition allocation to accommodate the new VHD space requirements. You might have to fix the Master Boot Record (MBR) after you do this.
  3. Replace the original VHD with the new VHD.

This typically requires you to mount  the original and new VHD files to perform the imaging.  Virtual Server 2005 R2 SP1 makes this process much easier, and scriptable with the introduction of the VHDMount tool.  This tool will allow you to mount both the original and the new VHD from the host OS and perform the imaging without needing to boot into a virtual machine.

So, while the process is not as simple as running a tool to expand the existing disk, it is not a huge effort to undertake, but will require down time. 

For reference information on the VHD specification, go to http://www.microsoft.com/windowsserversystem/virtualserver/techinfo/vhdspec.mspx

 

Many of us in IT are interested in having as much information as possible to make good purchasing decisions.  This is true in the virtualization product arena as well.  Sadly, there really is very little performance information available today that reflects how each of the mainstream virtualization products compare to each other.

It appears that the non-profit Standard Performance Evaluation Corporation (SPEC) wants to change this by developing a set of standard methods to perform these comparisons.  To this end, they are seeking comments from the IT community to better understand the types of information that would provide useful industry benchmarks.

For more information about this working group, email them at info@spec.org.

 

Technorati tags:

Microsoft has launched a new program that makes available for download a set of pre-configured VHD's for evaluation purposes.  Evaluation periods vary depending on whether or not the user is an MSDN or TechNet subscriber and the date of the VHD creation (see the VHD FAQ for details).  Featured on the site are downloads for Windows Server 2003 R2 Enterprise Edition, Exchange Server 2007, and SQL Server 2005

Once a user downloads a VHD, it can easily be configured within Virtual Server 2005 R2 as a new guest virtual machine (VM).