Running VMWare Server 2.0 on Windows Vista with proper performance

VMWare Server 2.0 was released about two months ago. Virtualization is hot and has a lot of different uses. I use it to run the Linux-based middleware products (Apache, IBM WebSphere Server, IBM WebSphere Portal, etc.) for which we are building an automated deployment product on my . But more about that later...

Anyway, I've been running betas and release candidates of VMWare Server 2.0 for six months now and while the functionality is great, initially the performance was very bad on my Thinkpad T61p running Windows Vista. Last week I finally got it to work with proper performance. A perfect time to let other people know how. 🙂

The short version:

  • Turn off User Access Control (UAC).
  • Edit C:\ProgramData\VMWare\VMWare Server\config.ini to include the line
    host.TSC.noForceSync = TRUE
  • Edit your VMWare Server host settings to "Allow some virtual machine memory to be swapped"

And now for the long version...

As mentioned in comments by Theo Fokkema here and here, you need to add host.TSC.noForceSync = TRUE to C:\ProgramData\VMware\VMware Server\config.ini. Unfortunately editing that file on Windows Vista with UAC turned on is tricky. When you edit the file as a user with admin privileges (but not the Administrator itself), you will actually edit a file in a place like C:\Documents and Settings\vinny\AppData\Local\VirtualStore\ProgramData\VMware\VMware Server\config.ini. Already annoyed by the many UAC confirmation dialogs and discovering that IBM WebSphere Server 6.1 also gets confused because of this, I disabled UAC. There are at least four ways to do so, but I choose the easiest; the control panel.

After that fix the total system freezes when starting up a VMWare image where gone, but it still took an inordinate amount of time to start up (3-5 minutes). It turned out that the default setting for the VMWare host is to try and fit all virtual machine memory into reserved host RAM. While that may seem like a good idea, I guess it had the effect of Vista first swapping out a whopping 1.5 GB of my 3 GB memory to disk so that it could reserve that memory for my 1.5 GB Linux image!

To fix that you follow the purple line in the screenshot to the right. It goes a little something like this:

  1. Open the VMWare Server 2.0 web console
  2. Select your host in the inventory tree on the left
  3. Click the "Edit Host Settings" link.
  4. Select the "Allow some virtual machine memory to be swapped" option.
  5. Ignore the warning about this negatively impacting your performance - we know better. 😉
  6. Click OK.

That's it! Happy VMing!

Comments (3)

  1. Nehemoth - Reply

    September 5, 2009 at 8:57 pm

    I will try this on Windows 7, if need it

  2. Nehemoth - Reply

    September 6, 2009 at 2:25 pm

    Did not need it on Windows 7 (RC1).

    Working like a charm

  3. Vincent Partington - Reply

    September 15, 2009 at 7:05 pm

    @Nehemoth: What part of the advice is not necessary? All of it? In any case, thanks for checking this out!

Add a Comment