Home > Windows Server Tips > Windows Server Monitoring and Management > Optimizing Virtual Server: Software configuration tips
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SERVER MONITORING AND MANAGEMENT

Optimizing Virtual Server: Software configuration tips


Tim Fenner, Contributor
12.27.2006
Rating: -4.40- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Now that we've looked at how to optimize Microsoft Virtual Server through hardware configuration, let's consider some ways to achieve the same thing through software configuration.

1. Through Windows and Virtual Server Updates. Connect to Microsoft from both the host and guest operating systems and download all updates. On the host, also check to see if there are any Virtual Server updates as well. (I've had success is using the latest service pack beta as well)

After installing any service packs or upgrades on the host server, be sure to upgrade the "Virtual Machine Additions" on each guest operating system. Note: You may have to manually uninstall the prior version from Add/Remove Programs.

2. Through Page file and performance options.. Set the Host server to use Memory for foreground programs: Control Panel>System>Advanced tab>Performance button>Advanced tab>Memory Usage set to "Programs." This one was surprising to me, but it was a recommendation made by a member on the Microsoft Virtualization team.

  1. Disable the Windows Paging Executive on your host and VM so that Windows executive components never get paged. You can disable the Paging Executive only by editing the registry, which you do at your own risk and only after backing up your registry with the Windows backup utility (by selecting System State).
  2. Change the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control \Session Manager\Memory Management\DisablePagingExecutive key from 0 to 1. This is to protect against performance loss due to disk contention/over access. Do this only if you have allocated enough RAM to the host server (at least 1 GB)

You might even want to disable paging altogether on your host server as well. But do so only if you have enough RAM available for the host server (again, at least 1 GB). Do this at your own risk; this will keep the host from being able to generate a complete system dump if it fails.

Note: Microsoft's Virtual Server blog team recommends allowing Windows to manage Virtual Page file on guest operating systems, so set it to System Managed Size. However, I have had success with just assigning the same fixed amount to both the min and max fields.

3. Exclude VMs from antivirus screening. Make sure your antivirus software (and antispyware programs if possible) is excluding your VM software processes (e.g., Virtual PC.exe) and files (e.g., virtual hard drives, settings files, etc.). Basically, tell your realtime scanning engine to exclude any VHD, VSV and VUD files. This does not represent a huge security risk for viruses as these files are not executable, they are database files only.

4. Through using virtual SCSI drives. The default for a VM is to use IDE drives. Virtual IDE drives are slow, just like their physical counterparts. Virtual SCSI drives communicate faster (like their physical counterparts). Again, I found that the Microsoft Virtual Server blog site recommended installing Windows onto the default, fixed Virtual hard disk (which is IDE), then, post-installation, migrating the virtual disk over to a virtual SCSI controller. Here's how:

  1. After installing onto an IDE drive, shut down the guest operating system
  2. Edit the Virtual Machine's configuration to add a SCSI controller to your virtual machine.
  3. Boot the virtual machine.
  4. Uninstall and Reinstall the Virtual Machine Additions.
  5. Shut down the virtual machine.
  6. Change the virtual drive from the IDE controller to a free channel on the virtual SCSI controller

5. Make the most of defragmentation. Defragment your host machine's physical disks and defragment and compact your Virtual Machine's virtual disks. Defragmenting always minimizes disk I/O, and compacting your VM will increase performance. A slimmer machine will consume less RAM, leaving more RAM for the host system cache. Note: Running a defrag can cause performance issues, so schedule for off or non-peak hours.

6. Dedicate a physical network interface card (NIC) to your guest operating systems. On the host computer that has multiple physical NICs, this can be done by:

  1. Go to the Control Panel-->Network Connections
  2. Right-click the network card that you want to dedicate to virtual machines-->Choose 'Properties.'
  3. Uncheck all the options except the 'Virtual Machine Network Services' entry.

Also, while you are in the Network Connections window:

  1. Choose the Advanced menu-->Advanced Settings.
  2. Select the Adapters and Bindings tab.
  3. Move the dedicated NIC you chose for your guest operating systems to the top of the list to give it priority.

This will give VMs priority access to the network interface if you cannot remove the host from using the NIC (such as if the server only has a single NIC)

Software tips not specific to Virtual Server

The following three tips are not specific to Virtual Server, but deserve mention.

1. Disable all advanced features to speed up Remote Desktop sessions. Control Panels-->System-->Properties-->Advanced -->Performance Settings Button-->Choose Adjust for best performance.

2. Do not use a desktop background.

3. Stop Explorer from searching the network at odd times. Open My Computer-->Tools menu-->Folder Options-->View tab-->Uncheck "automatically search for network folders and printers"

About the author: Tim Fenner (MCSE, MCSA: Messaging, Network+ and A+) is a senior systems administrator who oversees a Microsoft Windows, Exchange and Office environment, as well as an independent consultant who specializes in the design, implementation and management of Windows networks.

More information on this topic:


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Windows Server Virtualization and Microsoft Hyper-V
Does Microsoft Hyper-V fit in the dynamic data center?
The right time to implement Microsoft Hyper-V
Microsoft Hyper-V technology primer
Server virtualization at the hardware level with Hyper-V
Backing up virtual servers: Top methods for Windows machines
What's in a name: Keeping track of virtual servers
Virtualization and 64-bit: A match made in Windows heaven
Debunking Microsoft Virtual Server myths
Optimizing Virtual Server: Hardware configuration tips
Eliminate zero-day threats with virtual server technology

Windows Server Monitoring and Management
Does Microsoft Hyper-V fit in the dynamic data center?
A quick guide to Server Manager for Windows Server 2008
Network Access Protection in Windows Server 2008: Should you care?
Considerations in building GeoClusters for Windows Server 2008
Easing security concerns with Server Core for Windows 2008
Understanding quorum in Windows Server 2008 clustering
What's there to hate about Windows Server 2008?
Windows PowerShell: A backdoor to malware?
When (and when not) to use Windows server failover clustering
Backing up virtual servers: Top methods for Windows machines

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Microsoft Hyper-V  (SearchWindowsServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

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.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts