Jul 9 2009 · Random
I recently looked into Virtualbox as a alternative to my current virtualization solution (MS Virtual PC). I was particularly convinced to give it a try after reading this article on ArsTechnia detailing some of the new features in version 3.
A quick rundown of the good and the bad (so far):
- 64-bit guest within a 32-bit host. As a 32-bit version of Windows XP is my primary OS, I loved that I could virtualize the 64-bit version of Windows 7 and was able to get pretty decent performance. (fyi, I do have a 64-bit CPU with hardware virtualization support)
- Unable to install openSUSE 11. I have no clue why; it booted from the CD image, but froze once I selected the menu option to start setup. However, I was able to successfully install openSUSE 11.1 without any issues.
- Constant CPU usage. I notice some of my VM would constantly push their CPU/core to 100%. However, I think this is related to the following issue…
- Networking problems. The default virtual ethernet adapter (PCnet) seems to cause certain VMs to freeze. I encountered this with openSUSE and Ubuntu. A solution can be found here; basically, just switch to the “Intel PRO/1000 T Server” adapter.
- Problems installing guest additions on openSUSE. I wanted the guest additions primarily to be able to dynamically adjust the guest’s resolution, which is an increadibly powerful feature. Getting the guest additions installed is not quick and easy. Partial solutions can be found here and here. In short, first do an update to make sure you have the same kernel and kernel sources (needed for the guest additions).
sudo zypper dist-upgradeThen add/update the following components:
sudo zypper install gcc make automake autoconf kernel-sourceAll of this can take a while. After all installs/updates are done, restart, then run the appropriate script off the cd image.
- Dynamic resizing doesn’t work. If you got the guest additions installed following the steps above, you’ll find that dynamic resizing doesn’t work (however, your resolution will jump to 1024×768 from the default 800×600). There’s message after installation of the additions that alludes to this. You’ll have to edit xorg.conf (/etc/X11/xorg.conf). See here. In the Monitor section remove or comment out any “PreferredMode” options. In the Screen section remove or comment out any line with “Modes”. Restart, and dynamic resizing should now work. (Note, one minor quirk I noticed is that the openSUSE taskbar jumped from the bottom of the screen to the top when a resize was done. I’m not sure if this is an issue with Virtualbox or openSUSE.).
Overall, I’m both impressed and disappointed. Virtualbox has an impressive feature-set, but the “out-of-the-box” experience leaves a lot to be desired.