For the last year I’ve been trying to get virtualization of a Windows Partition working on Linux. The goal is to be able to use Linux as my primary desktop OS, while still having Windows available for the MS Apps I need for work (read Outlook). The two main desktop apps that are freely available for this setup are VirtualBox, an open source solution by Sun, and VMware Server. I tested both of these on a Core2 Duo 2 GHz system with 3 GB of RAM and an 80 GB hard disk divided into 3 partitions. Windows XP Pro was installed on the first partition and Ubuntu running KDE 4.2 was installed on the other two.
VirtualBox
VirtualBox is now at version 2.1.2 and is a very solid app. Sun provides an open source version and a freely available closed sourc
e binary for Windows, OS X and Linux. The GUI is very solid and integrates well with KDE, due to the QT interface implementation. The closed source binary has some features that are not available in the open source version, though they are getting migrated as the codebase grows (running a virtual machine from a physical partition, called rawdisk mode, used to only be available in the closed source version).
Setting up virtual box is relatively easy as most distributions have package available from the VirtualBox download page. To get VirtualBox running with an installed version of windows, I found this pretty excellent guide. The only problem I had was with the windows bootloader: I couldn’t get the open source iso to work, so I had to download a copy from a windows XP cd, as I didn’t have one handy.
Impressions
Using virtual box is very straightforward. Setting up the machine and all the settings was straightforward. There are very useful hints at the bottom of each tab in the settings pane which makes choosing options to enable particularly easy. Once I had the machine booting into Windows, I installed the guest additions and rebooted. The VirtualBox Guest Additions are a set of drivers and apps that make integration with the host OS seamless – i.e. you can move your mouse between the client and the host desktops.
Once I started using the virtualized OS, I ran into problems. First, Windows was really slow. To the point of being unusable. Startup took about 10 minutes from boot to fully loaded, and opening an app was a time consuming task. I turned off all the eye candy, which helped opening menus and such, but the overall speed and responsiveness was lacking. Part of the appeal of VirtualBox is the ability to go into ‘Seamless Mode’ a la Parallels on the Mac. Unfortunately, this never worked for me (but I also didn’t wait around for 20 minutes to see if it would work eventually).
I like VirtualBox, I really do, but its just too slow to be a functional, every day virtualization solution. Combine that with some obvious inadequecies, like supporting only one processor and very rudimentary 3D acceleration support, and it doesn’t seem ready for prime time to me. But, I plan on tracking the progress the Sun team is able to make and am definitely willing to give it another shot in the future.
VMware Server
VMw
are Server is a desktop/server virtualization solution from VMware. The current version is 2.0, however this review will look at version 1.0.8 because the 2.0 version does not support rawdisk mode any longer. Getting the older version working was a little bit of a challenge, given my kernel is newer (2.6.27-11) than the last one supported by the 1.0.8 release. I followed this guide for getting the older version working on Ubuntu 8.10. This guide will help to set up VMware to work with a physical disk and existing windows install.
Following the instructions was very simple, and I had everything up and running in about an hour, including download/install time. The options for setting up a rawdisk VMDK in VMware were much more powerful than in VB, for example one could choose the number of processors to emulate on the client.
Impressions
Overall, VMware server is definitely not as pretty as VirtualBox – definitely not built as a desktop centered application. However, the app is rock solid and wickedly fast. Boot time was about half what VB was, and applications were reasonably responsive.
The guest additions were easy to install and gave the same basic features as VirtualBox, except the seamless mode. I did run into a problem with the client software clock getting way out of sync with the hardware clock, either going to fast or two slow. An easy fix was turning on the option to keep the two automatically synchronized in the guest additions control panel.
Conclusions
VMware came out ahead for my particular setup, which admittidly is not one most users will have. As I wasn’t testing the traditional VM setup (having a completely ’soft’ install rather than running an OS of an existing partition), its hard to draw any broad conclusions, but for this use case, VMware is definitely the choice to go with.
Update: Check out my post here on how to get VMWare server 1.0x working on Ubuntu 9.0.