Skip to content
Features

Virtual machine shootout: VMware vs. Virtual PC

Ever wondered which virtual machine product was right for your needs? Ars puts …

Adam Baratz – | 0
Story text

Introduction

A recent film ignited a new generation of armchair epistemologists when it proposed that we could be living inside an elaborate computer simulation. While your philosophy major friends were quick to point out that thinkers since Descartes have posed the same question, it’s likely that none of them ever considered the converse: what if, unbeknownst to them, our computers were really running inside other computers for the selfish interests of a special group of people?

As esoteric as this may sound, such a setup has been in use for a very long time. Virtual machine software can fool an operating system into thinking it’s running on its own hardware, when in reality it’s simply mooching off unused CPU cycles and RAM. Since the OS is running on its native platform, no emulation is necessary; virtualization allows it to run with little cost to CPU performance. However, since display and I/O functions are mapped to slightly different components (a window or a virtual partition, for example), they incur a slight performance hit.

Product: Microsoft Virtual PC 2004
Developer’s site:
Microsoft
Demo: 45-day trial
Cost: US$129 (Shop for this title)
System requirements: 400MHz Pentium II or better, 32MB RAM, Windows 2000 or XP

Product: VMware Workstation 4.5
Developer’s site: VMware
Demo: 30-day trial
Cost: US$189 to download, US$199 with packaging (Shop for this title)
System requirements: 500MHz Pentium II or better, 128MB RAM, Windows NT 4.0, 2000, XP, 2003, various Linux distributions

Why should I use a VM?

Say you’re developing an application under Windows XP. If you need to test your program on other versions of Windows, virtual machine (VM) software allows you to run Windows 98 without forcing you to reboot your computer.

Decent VM software also allows some exchange between the host machine (the real one) and the virtual one. If you encounter a bug, you can switch back to the host, correct the code, and send an updated executable back for further testing.

On especially beefy hardware, VMs can be used to simulate complicated network operations. With the right VM software, you can setup a virtual network to practice domain management and software rollouts without putting production equipment on the line.

More robust pieces of software are available for virtualizing servers. VMware has two products in this category (VMware GSX Server 3 and ESX Server 2). Microsoft is getting ready to release Virtual Server 2005. The feature sets of both companies’ offerings are more specialized for integration with server OSes. They also include strong scripting tools for automating VMs.

You can also use VM software to sample alternative operating systems without committing a dedicated partition to the job. Since VMs can use virtual partitions (a partition that lives inside a file of dynamic or fixed size), you don’t have to worry about reclaiming any hard drive space lost to experimentation. Also, since VM software tends to emulate common hardware, you’re less likely to encounter driver issues with an esoteric OS.

Anyone hoping to use VM software to play favorite DOS games will probably be disappointed. Tests with a couple random games (Terra Nova: Strike Force Centauri and Gabriel Knight 2) didn’t get far beyond their installation. Simpler games ran reasonably, but people solely interested in gaming should try something like DOSBox first.

Let’s get down to business…

If you’re interested in running applications, Virtual PC 2004 (Microsoft; US$129) and VMware Workstation 4.5 (VMware; US$189 to download, US$199 with packaging) are both competitive tools for the job. In fact, they’re both so refined that your ultimate purchase decision will be affected more by your own needs than by any inherent problems with the programs. While general performance is an important consideration (and easily quantified), your eventual uses for the software are more important.

Are you planning on rigorous compatibility testing or just sampling other possible configurations? Do you want pure performance or just an environment for containing potential accidents? Do you want to run lots of different OSes or will you stay within the Windows family? Will you need to use special hardware within your VM or is a generic setup acceptable?

Both pieces of software come with special drivers optimized for the VM’s “hardware” (VM Additions for Virtual PC and VM Tools for VMware). Besides performance boosts, they add extra features that allow you to blur the line a little between VM and host. In a graphical OS like Windows, a new mouse driver enables pointer integration. Instead of letting the VM lock your mouse input, your cursor can glide freely between real computer and virtual.

File sharing lets you exchange information with the host computer. Shares usually appear to the virtual machine as network shares. Of course, as your VM is a fully-functioning computer, it can also access any real network shares. Both products also enable drag-and-drop support and clipboard sharing between virtual machines.

An important thing to remember before choosing a virtual machine over a dual-boot setup is that you’ll need lots of RAM. More RAM than you ever conceived of needing before. While you’ll probably have enough CPU cycles to spare, you need enough RAM for both operating systems to run comfortably. As long as you have double your comfortable minimum, you should be fine.

Also worth noting is that installations of Windows XP will require their own product keys, regardless of whether your host computer is also running it. Since XP will see whatever hardware your VM portends to have, it will assume that it is a new computer in need of new activation.

Microsoft Virtual PC 2004

Virtual PC was originally developed for Mac OS by Connectix (the Mac version is still available which emulates rather than virtualizes an x86 computer). Microsoft bought the software from them, spruced it up, and has repackaged it as Microsoft Virtual PC 2004.

Since it is a Microsoft product, the most exotic OS it officially supports is OS/2. Microsoft has stated that they are not opposed to their software being using with other operating systems, however they’re considered to be “third-party products.” If you have trouble getting someone else’s OS to run with Virtual PC, they will direct you to the operating system developer for support. This is not to say other operating systems won’t run at all. There is significant documentation available to demonstrate that getting unsupported operating systems to run isn’t that big a deal.

Virtual PC running XPAs this wouldn’t be a proper Ars review without a little messing around, I had to see if I could at least get Linux working. I tried both Fedora Core 2 and Red Hat 9. Fedora installed easily, but caused Virtual PC to freeze when it tried to reboot. I was eventually able to kill the process, but it took a lot of coercion. The OS would boot, but all commands resulted in segfaulting.

Red Hat 9 froze in the same fashion after installation; this time I had to reboot my computer to actually get rid of the stuck process. Afterwards, however, I had a functional Linux installation. I only tested GNOME, but presumably other configurations of X Windows also work. Unfortunately, since Linux isn’t officially supported, you can’t enable pointer integration or file sharing.

The biggest draw to Virtual PC is its ease of use. A wizard guides you through setting up your virtual machines. The options aren’t very detailed: you specify the OS you intend to use (other is an option for the more adventurous), the amount of memory to allocate, and the location for the virtual hard drive.

Most flexibility issues seem to be there to make the program simpler to use. As a result, getting from setting up Virtual PC to a working OS installation is painless. Since there are so few options to act as stumbling blocks, it’s very easy to get your VM working.

A consequence of this ease of use is fairly limited customizability through the GUI. About the most fine-tuning you can do is changing the amount of memory to allocate. You can only use three hard drives. You can’t add optical drives, even if you just want to use ISOs. These limitations aren’t inconveniences for everyone, but they should be noted if they’ll cause problems in your working environment.

However, it is possible to further tweak VPC by editing the .vmc file installed (by default) in My DocumentsMy Virtual Machines. The .vmc file is actually an XML preference file for Virtual PC. Open it up in your favorite text editor and you can do things like edit the MAC address of your network adapter and make other tweaks not possible via the program itself.

Despite the fixed hardware, what you have to work with isn’t that limited. Virtual PC supports as much memory as you can throw at it, three hard drives, an optical drive, a floppy drive, serial and parallel ports, four network adapters, and sound (Sound Blaster-compatible). Network adapters can be bridged, only connected to the host, or setup to share the host’s connection with NAT. You can connect a named pipe or a text file on the host to either of the two possible serial ports if you want a little more control. An S3 Trio64 is the emulated video card. SCSI support is limited: Virtual PC can use SCSI hard drives, but it cannot pass through other devices. Thus, while a SCSI hard drive will show up to the VM as an IDE drive, you will not be able to connect, say, a SCSI tape drive to VPC.

The main interface for Virtual PC is its console window. It contains a listing of the virtual machines you’re currently using (though you can store virtual machines on your computer and leave them unlisted). When VM is running, it shows an active thumbnail of its display.


Console with inactive VM


Console with active VM

Each virtual machine receives its own window. A status bar displays hard drive, CD, and network access. You can pause and hibernate VMs and resume activity later. Virtual PC also has a feature called undo disks. They store changes made to your virtual HD in separate files. If something catastrophic happens, you can revert to the disk’s last saved state; otherwise you can commit the changes.

VM Additions support is very good. Drivers are available for all flavors of Windows 9x, NT 4.0 SP6, 2000, XP, OS/2 Warp 4, and even DOS. I didn’t encounter any problems with Windows 2000 or XP. The most notable features added are file sharing, pointer integration, and dynamic display resizing. Resizing the VM window or switching to fullscreen mode automatically adjusts the resolution of the VM to fill the new space. Very helpful.

If you decide to use a VM to play DOS games, Virtual PC has a number of very desirable features. Sound works instantly. No special setup was needed for sound in Virtual PC; all games tested autodetected it without a hitch. File sharing also makes getting files into DOS much easier.

While some users may find fault with the fixed hardware support and limited OS compatibility, Virtual PC is an extremely-polished program that should meet most peoples’ needs.

VMware Workstation 4.5

If you need more control than Virtual PC offers, you should take a look at VMware.

Not only does VMware offer official support for everything from Windows 3.1 to FreeBSD, it also grants you more control over your VMs. You can manage an entire virtual network, emulate either IDE or SCSI hard disks, and take advantage of USB hardware that is connected to the host machine. A Linux version of the host software is even available.

VMware’s VMs are also upgradeable. Just as you can add hardware to a real computer, you can alter the setup of your VM. You can add new disk drives, Ethernet adapters, serial ports, parallel ports, and SCSI devices. If you always need access to a CD full of important data, you can make a new virtual drive that’s linked to an ISO.

You can even make up virtual NICs for your own virtual network. Virtual networking options are so rich that a separate utility is provided for managing the virtual adapters. VMware’s only major fault is that it imposes a 4GB cap on the amount of memory you can allocate across all active virtual machines.

The main interface consists of a single window. Each VM takes a tab rather than an independent window. If you prefer a non-tabbed interface, that’s also an option. When a VM isn’t running a summary page displaying hardware information and user notes is shown. While running, a status bar displays disk and network activity.


The VMware main window


VMware running XP

If you’re going to be spending most of your VM time with a non-Microsoft OS, VMware is really the only way to go. It includes optimizations for Red Hat, SUSE, Mandrake, and Turbolinux. FreeBSD and NetWare are also supported. If you want to run Windows, it has you covered; experimental support for Longhorn is even included.

SMP users will also prefer VMWare because it runs each instance of a VM in its own process, making it highly customizable in terms of CPU offloading and the like. If you’re likely to run more than one VM at a time, this will prove to be a performance enhancement you’ll want.

VM Tools are available for all of these OSes except DOS. Heavy DOS users (anyone still out there?) might prefer the extra features of Virtual PC. Virtual PC has another edge with its dynamic display resizing. Since VMs usually reside in windows, being able to treat them as fully repositionable and resizable views lets you work with more comfort. It’s one of those subtle features like the mouse wheel, where you don’t know how useful it is until you try it.

VMware Network UtilityOne of the places where VMware really shines is its documentation. When I first set up Linux, I had issues getting my network to pick up. The error I got said that it couldn’t link with my card and to check the cable. Since there isn’t a cable to check on a computer that doesn’t really exist, I thought I was up the creek.

I checked the help on the chance my problem would be documented; lo and behold it was. Part of the help is a Guest OS Install Guide which has detailed instructions for setting up all supported OSes, along with common problems. I made the prescribed amendments to a couple config files and had everything working in under a minute.

VMware’s design makes it very clear what tasks you can accomplish with the program. The layout feels complete without being overstuffed; the help system makes it easy to find answers without seeming like its missing anything.

One of the big faults of Virtual PC is its overly streamlined design. Even though the program doesn’t have very many settings, it doesn’t comfortably communicate how easy it is to use. With a program so powerful that it can pretend to be another computer, you’d expect that there would be options up the wazoo for geeks to tweak to perfection.

However, there aren’t. Virtual PC’s developers should hardly be faulted for this. Few programs “just work” without some prerequisite prodding from the user. Situations like this can cause the geek equivalent of housewife ennui to set in: “Have I done everything I could to wring every ounce of performance out of this program? Is there some clever feature hiding somewhere that’s escaped my notice? Something left out of the documentation perhaps?”

Benchmarking and conclusions

Of course, the best way remove most doubt as to which program performs the best is through benchmarking. We tested with Windows XP Pro SP1 on three “different” machines: the host computer, Virtual PC, and VMware. Tests were limited to XP since Windows is the most popular OS that both pieces of software are optimized for. The host computer was used for a baseline measurement.

The hardware backing all three machines was a Pentium-M 1.5Ghz. The host was first tested with 256MB of RAM. Both VMs were then configured to use 256MB after a full 512MB was installed in the host. Bridged network connections were used with both, since other network configurations are possible with VPC (as opposed to bridging in VMware because VPC only supports bridged connections). Benchmarking was completed with SiSoft Sandra Standard 2004.2.9.104.


SiSoft Sandra VM benchmarks

As was expected, the host tested better than either of the virtual machines. While network performance was comparable, VMware had a decisive lead in every other category, with drivers being the likely cause of the speed gap. Since the network connection was bridged, all traffic basically passed right through to the host’s NIC. In other areas where more remapping is required (i.e., disk access, memory), the need for optimizations becomes more apparent.

Since VMware is an older product (it appeared in 1999, as opposed to a 2001 release for VPC), its developers have had the time and feedback to make it a more mature product. Drivers are the major obstacle to a VM squeezing optimal performance out of its host machine. VMware’s developers have simply had more time to whittle down the gap.

This isn’t to say that mere numbers can reveal the ultimate truth; they only show one side. I became well-acquainted with using Windows in both pieces of software before I bothered to benchmark them. My experience as a user was far better with Virtual PC than it was with VMware. Virtual PC not only felt smoother to me, but its superior integration with the virtualized OS sealed the deal.

VMware only gets a firm recommendation for Windows if you’re interested in simulating networks or if you need more variable virtual hardware. It will also pass USB devices through to a VM, which is something Virtual PC is unable to do at this time.

On the other hand, running Linux in Virtual PC came with its share of headaches. Not every distro is compatible. If you run into problems after a seemingly surefire installation, you won’t be able to turn to Microsoft with any problems. Unless you like to live dangerously, VMware’s established track record of Linux support gives it a pretty strong lead over the competition.

Virtual machines are power tools. They allow you to accomplish more with your computer than you might suspect. However, with any tool, knowing its proper use is more important than merely yearning to use it. Virtual PC and VMware are both capable of going after some fantastic problems, but their users will be most satisfied when they’ve selected the right tool for the job. At this point in time, VMware gets the nod over Virtual PC for its better overall performance and support for non-Windows operating systems.

Microsoft Virtual PC 2004

Pros

  • Simple to use
  • More features from VM Additions
  • Smoother Windows support

Cons

  • Limited OS support beyond Windows
  • Interface and help feel deceptively sparse
  • No USB pass-through support

VMware Workstation 4.5

Pros

  • Speed, speed, speed
  • Strong Linux support
  • Robust networking options
  • USB pass through support
  • Support for SCSI devices

Cons

  • Price vs. Virtual PC
  • No dynamic display resizing
  • Less-refined Windows support

Revision History

Date Version Changes
8/02/2004 1.0 Release

?

0 Comments