Virtualization Shootout: VMware Server vs. VirtualBox vs. KVM

A comparison of three virtualization solutions: VMware Server, VirtualBox and KVM—each has its strengths and weaknesses.
VirtualBox

VirtualBox is a relative newcomer to the virtualization market, with its initial release in early 2007. VirtualBox originally was created by Innotek, but it has since been acquired by Sun Microsystems. Version 3.0 of the software was released recently and includes many new features.

Ease of Installation

VirtualBox ships for Linux hosts as a native package for most distributions. There are packages for Ubuntu, Debian, OpenSUSE, Fedora, Mandriva, Red Hat, Turbolinux and PCLinuxOS 2007. Installing the software is as simple as downloading the package for your OS, then using your native package manager to install the package. On Ubuntu 9.04, the binary package is 43MB, and installation required the additional packages of libcurl3, libqt4-network, libqtcore4, libqtgui4 and python2.5, all of which are easily fetched via apt-get. Double-clicking on the package in Nautilus launches the Ubuntu Package Installer, which pulls in the dependencies automagically. In all, installation is straightforward, quick and easy. VirtualBox also maintains a repository for Debian-based distributions that you can add to your apt sources. Then you simply can apt-get the package (virtualbox-3.0) and its dependencies.

Ease of installation score: 3. The only way VirtualBox could be easier to install is if it were included in the Ubuntu apt sources out of the box.

Administrative Tools

VirtualBox includes a native “fat client” for your host OS that allows you to manage your virtual machines (Figure 3). The client is easy to use, and it's wizard-based—much like the VMware admin console. Creating virtual machines is a snap, and VirtualBox gets kudos for making it as easy as VMware to spin up new virtual machines.

Figure 3. VirtualBox Admin Console

If you want to run your guest machines in headless mode, VirtualBox has that covered too. There is a VBoxHeadless management binary that will bypass the admin GUI and start an RDP server running for that particular VM. Once your VM is running in headless mode, you can point an RDP client to your physical host's port 3389 (by default, the port is also configurable), and you'll see the virtual machine's console. This is very handy if you're not at the physical machine or can't tunnel X easily. Figure 4 shows a VM running with VirtualBox.

Figure 4. Booting an Ubuntu VM under VirtualBox

Administrative tools score: 3. VirtualBox includes excellent tools for creating and managing virtual machines. The fact that it's a native “fat client” rather than a Web GUI is slightly less convenient for multiplatform access, as compared to VMware, but every bit of functionality is there and easy to use.

Capabilities

VirtualBox may be a young project, but it certainly doesn't lack features. It compares with VMware handily in many areas, such as the following:

  • Support for bridged, NAT and host-only networking.

  • Two-processor virtualized SMP.

  • 64-bit support for both hosts and guests.

  • Snapshot capability for easy capture and rollback.

Unlike VMware, VirtualBox is available in both a proprietary and open-source edition. The open-source edition is released under GPL, but it doesn't include the following features that are available only in the proprietary version:

  • The headless RDP server is not available in the open-source edition.

  • There is no virtualized USB support in the open-source edition.

  • Because USB and RDP support aren't included, the proprietary version's USB-over-RDP feature isn't in the open-source edition.

  • The virtualized serial ATA disk controller isn't in the open-source edition. Disks appear as either SCSI or IDE devices.

Capabilities score: 3. VirtualBox nearly matches VMware Server feature for feature.

Licensing

As mentioned above, VirtualBox ships two different versions of its product: a proprietary version and an open-source edition. The proprietary version is licensed under the VirtualBox Personal Use and Evaluation License (PUEL), and although you are asked to register the software when it's first launched, it's not required. The open-source edition is covered under the GPL, and it's truly open source, though it does omit the four features I mentioned previously. If you do decide to run the open-source edition, be advised that it doesn't come as a binary package, only source code, so you will have to build it yourself. Building it yourself isn't terribly painful, as the folks at VirtualBox have supplied fairly good instructions.

Licensing score: 2. VirtualBox's PUEL license on the more feature-rich version isn't open source, but VirtualBox does make most of the source code available and provides instructions on how to build the code if you don't want to succumb to the evils of proprietary licensing.

VirtualBox total score: 11.

______________________

Bill Childers is the Virtual Editor for Linux Journal. No one really knows what that means.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You make it sound as though

ck's picture

You make it sound as though there are no problems with Virtualbox.

Try running a windows XP guest on Ubuntu Karmic 64 bit. CPU on host machine will be at almost 100%.

Many people have this problem and their forums say everything from run a dummy machine at the same time,
switch 2 cores to one in VM manager, to many other fixes. Most do not work. Even XP running at 30% host CPU at idle sucks.
This is when it is working the best.

If I can't simply run win XP on Ubuntu Krmic with good performance, how is Virtualbox the winner? It's not just me, it's 100's of
people posting these issues.

VMware has no problems. VMware the winner hands down.

Works for me in Ubuntu 9.10 x64

Anonymous's picture

I'm running Ubuntu 9.10 x64 host with VBox non-OSE version.

Currently running Win7 Ultimate in VBox with 798MB RAM - mainly for Outlook 2007 and Visio 2007. Runs smoothly enough for everyday use with CPU usage around 20% on a Core 2 Duo 2.54GHz processor laptop.

Now and again I also need to boot XP Pro in VBox with 1GB RAM. CPU usage together with Win 7 is around 50% when using our Centra client for collaboration.

And just to top it all off, I also have Server 2008 with 1GB RAM for .Net development. All 3 running concurrently takes cpu usage to around 70%.

Used to use VMWare Workstation 4 and 5 for Linux then more recently VMWare Server for Windows. Stopped using VMWare when they moved to web based management console and found remote console performance too slow for my liking.

Did have real problems with VBox prior to v3 with networking. Was causing problems with our remote control app DameWare Remote running in XP. Version 3 resolved that issue so I'm happy.

For VM migration we use rsync to copy the currently running VM and config files to a spare server. When required we boot off the copy. Windows likes to perform a disk scan of the virtual disk on first use then runs happily afterward.

KVM has some unique features

Ritesh Raj Sarraf's picture

KVM does have some more features unique to it which I think the others might not.

Para Virtualized drivers.

Xen (or call it Para Virtualization) is told to be more efficient in terms of performance because the guest OS is modified for the Xen host.
But this has the drawback of guest modification.

With KVM, you get para-virtualized drivers for your block and network devices. This allows you almost native performance without modification of guests.

KVM sucks in the management UI part. And the management UI is mostly the thing you seem to have covered here, in this article.

VMWare over VirtualBox

Daevid Vincent's picture

I've used VMWare (workstation) for years on XP host with Linux guests, since v1.0. It is outstanding. At my current employer, they're kind of cheap and opt for OSS tools whenever possible (good for the movement, bad for me ;-) ). So we use VirtualBox.

In general it's fine for running a LAMP development VM on my XP host. I notice no real issues. However, the VMWare networking seems to be flawless and everything works fantastic. Virtualbox, I can't seem to use a 'internal' mode (didn't try Host-only). My host can't connect to the VM. I have to use 'bridged'. Not such a big deal as it makes it easy for co-workers to connect to my VM too.

The biggest annoyance -- and it's a HUGE one -- is that you can't just zip up a directory of files like you can on VMWare. The virtual disks are separate from the virtual machines and all mapped in some XML file. ugh. This makes copying an entire VM from one machine to another a real PITA. I get some of the logic and flexibility of Sun's way, but honestly I think the pain isn't worth the benefit. Converting to .ovf isn't much help either. And ironically it seems to make a .vmdk file -- exactly what VMWare uses, so why not just do that in the first place!?

Overall VMware seems more polished, picture snapshots are great, recording video and screenshots are great. Multiple snapshots seems like a great idea, but honestly, I've never really used them much. They're too painfully slow to manage once you get a few. Deleting and consolidating is an exercise in patience and disk thrashing.

The one thing I WISH VMWare would do (or stop doing depending on how you look at it), is NOT load my XP up with 5 different services ALWAYS. They should load up when I launch VMWare, not sit there running and chewing up RAM/CPU when I'm not using a VM. It's stupid. I have a .bat script that I have to replace the icon launcher with every time I install it (which launches the services), and manually go tweak the services to stop running on startup.

Oh yeah, it would be great if BOTH of these guys would make the .vmdks (or .vdi for that matter) SHRINK too. It sucks that they only GROW LARGER. I want them to be more intelligent/dynamic. If I delete 5 GB worth of stuff from the VM, then my disk image should shrink by 5GB. Instead it stays the same! LAME. You have to jump through all these hoops to manually shrink them. And if you're using a Linux guest, then it's extremely cumbersome -- often times requiring setting up a new VM image and dd or tar or something into the new image. Grrrr.

In any event Virtual Machines are simply a modern miracle. It blows my mind every time I use one.

I believe that VirtualBox

Anonymous's picture

I believe that VirtualBox supports something called Shared Folders. This is a functionality to "share" folders between the host and the guest, so directories from the host can be modified on the guest and vice versa. To transfer files from the guest to the host and back, it is as easy as copying and pasting into some folder.

I had high hopes for

Anonymous's picture

I had high hopes for VirtualBox but was dissapointed by several things. VirtualBox is unusable for anything as serious as a simple LAN server deployment because they keep steaming ahead with fancy new features like OpenGL while in their "stable" release basics such as snapshotting don't work (maybe that's fixed now, it wasn't the only thing). They just need a Debian-style release cycle. It's not helping that they rename all the commands and syntax so often and there is insufficient documentation for them. Doing anything beyond the basics--e.g. networking--is just far too much effort. And even if you get it working, I can't trust it is going to be stable the way they release it, therefore I can't deploy it except on my desktop. The licence model of free vs. OSE is misleading and makes installs and maintenance annoying. Last I checked Sun isn't offering any support yet. Don't mean to be a Negative Nellie on VBox but it can't be taken very seriously yet; I hope they can sort some of their issues out soon to provide a real alternative to VMWare which is still the only realistic choice.

kvm is much faster then the

Anonymous's picture

kvm is much faster then the other 2 dooohhh

Biased???

Kashif Iftikhar's picture

The review seemed biased even to someone like me who has very limited experience with virtualization. It almost seemed like a VirtualBox promotional campaign. I fail to see why VBox got more points than VMWare. Though I would like to see KVM mature quickly to something more substantial but before that, after trying both products, I cannot see VBox preferred over VMWare.

biased??? hardley!

Anonymous's picture

The author clearly indicated that he has been using VMWare for at least two years.

His comparison of the two products was just straight forward evaluation and dead on accurate.

I used to be a user/reseller for VMWare.

I have been using VirtualBox over VMWare for a while now.

I prefer VirtualBox in place of VMWare.

Just because you like VMWare better than VirtualBox doesn't make the article a promo for VirtualBox.

apt-get install virtualbox-ose

Alan Porter's picture

You article suggests that Virtualbox is not in the standard Ubuntu repositories. In fact, the Open Source Edition (OSE) *is* in the standard repo's (it's in the "universe" section). I use VB-OSE to run Winders, when I have to.

But if you need USB support, you'll have to download the package from Sun.

Alan Porter

Good article

João Ramos's picture

Hello

This is a good article, but in the world of "free" virtualization, you are missing Xen and QEMU/KQEMU as they can be used for desktop class Linux machines also.

Just a small note... correct your title ;)

Regards
JR

Desktop Virtualization is different from Server Virtualization

Anonymous's picture

Desktop Virtualization is different from Server Virtualization. The author knows this and clearly stated he was looking at desktops.

Xen or QEMU aren't desktop virtualization tools and more than ESXi is, IMHO.

IMO, Xen is dying. I find that sad since my company runs a number of Xen servers with about 6 VMs under each. We're planning a migration, but haven't found a suitable path yet.

Virtualization

creylopez's picture

Good article but IMHO VirtualBox should be below the others specially VMware as the extra points that make it win are not free of cost.

I missed other virtualization solutions as OpenVZ and the promising Proxmox platform that, by the way, uses also KVM.

Regards

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix