dcsimg

VirtualBox 4: First Impressions

A look at the good, the bad, and the not-so-ugly of Oracle's latest incarnation of VirtualBox.

It might seem strange to post a “first impressions” article an entire month after developers release a new version but the original wasn’t stable and first impressions weren’t positive. To give VirtualBox and its developers a fair shake, the release of 4.02 is a good starting point. There are still some bugs* in the software but overall first impression are positive. While you shouldn’t use it for production just yet, the 4.x line has potential.

VirtualBox is still free and licensed under the GPL. You can download it from the VirtualBox Downloads page for Windows, OS X, Solaris, and Linux. You should also grab the VirtualBox Extension Pack while you’re there. The Extension Pack provides support for USB 2.0 devices, RDP, and PXE boot for Intel cards. There is a tutorial later in this article that explains how to install the Extensions Pack.

Note:The system used in the demonstrations for this article is a 64-bit, dual core, 4GB RAM, Ubuntu 10.10 Desktop installation with updates and VirtualBox 4.02. It is a fresh installation of the operating system and VirtualBox. The system contains no other software.

The Basics

Either download VirtualBox from the website and install with your package manager or add VirtualBox to your list of repository sources. For Debian-based systems, you’d add the following line to /etc/apt/sources.list.

 deb http://download.virtualbox.org/virtualbox/debian maverick contrib

For Red Hat-based systems, such as Fedora, add the following to your /etc/yum.repos.d.

[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

Debian-based systems will complain about the key file, so you’ll have to perform the following prior to installation:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Complete the installation of VirtualBox via the repository or download.

A Virtual Tour

To find the graphical VirtualBox application, navigate to Applications->System Tools->Oracle VM VirtualBox. You’ll notice that the interface has changed a bit from the 3.x versions. Although not necessary, we’ve come to expect some cosmetic changes with major software releases. On first glance, VirtualBox resembles Microsoft’s Virtual PC with its VM preview pane. But, don’t worry, the basic VirtualBox look and feel hasn’t changed as you can see in Figure 1.

Figure 1: VirtualBox 4 GUI and the New VM Preview.
Figure 1: VirtualBox 4 GUI and the New VM Preview.

The one advantage to a preview pane is that you’re able to see what’s currently happening on a VM’s console.

Other new and interesting additions to the VirtualBox graphical interface include scaled guest display, VM desktop shortcut creation, and sortable VM list. From a user perspective, the scaled guest display is most impressive of all the improvements.

Ordinarily, your VM appears on your system according to the display resolution (autoscale mode) that you’ve set on the VM, which is the default mode in 4.x. Switch easily between autoscale display mode and Scale Mode (Dynamically adjustable) by using RightCtrl-c. The RightCtrl key is your Host key in VirtualBox parlance.

Switching to Scale Mode allows you to change the size of the guest window dynamically by clicking and dragging one of the guest display corners or edges. This feature is very handy for those who manage several VMs and need access to the consoles on screen. By adjustting the size of the display, you’re able to place several VMs on a single display in side-by-side or cascaded fashion. Scale Mode is especially compelling for the lucky among you who have multiple monitors.

Extras, Trouble Spots, and Bugs

As mentioned earlier, VirtualBox 4.x has a new feature known as Extensions. These are extra software support modules that the developers should have included in the main code but didn’t. Perhaps they did it to demonstrate VirtualBox’s new extensible nature so that third-party vendors will contribute to the cause.

In either case, if you downloaded the Extensions, here’s how to install them. In the VirtualBox main window, select File->Preferences->Extensions, click the Add Package icon, browse to where you downloaded the Extensions Pack, select the Extensions Pack file, click Open and you’ll receive the warning shown in Figure 2.

Figure 2: VirtualBox 4 Extension Pack Installation Warning.
Figure 2: VirtualBox 4 Extension Pack Installation Warning.

Click Install and the Extensions Pack will install and appear in the Extensions Packages list as shown in Figure 3.

Figure 3: Extension Pack Added to the Extension Packages List.
Figure 3: Extension Pack Added to the Extension Packages List.

One of the most annoying trouble spots in the current version of the software is that some things that work locally in the VirtualBox GUI don’t work remotely. For example, starting a VM failed for both the Ubuntu and the Windows VMs that you saw in Figure 1. They both started locally without issue.

Another particularly troubling aspect of this version is that exporting and importing VMs is a function that fails randomly. Out of 13 fully functioning VMs, only the two listed would successfully export from the original host, import to the new host, and run on the new host. The exporting host system also has the latest version of VirtualBox installed. A major bug (Not related to VirtualBox code) that you might see during an import of a guest system from another host, shown in Figure 4, is the warning you’ll see about your VMs running with I/O cache disabled on an /ext4 partition.

Figure 4: VirtualBox 4 Warning: I/O Cache, /ext4 and a Linux Kernel Bug.
Figure 4: VirtualBox 4 Warning: I/O Cache, /ext4 and a Linux Kernel Bug.

Change the I/O cache settings for your virtual disks to “enabled” as a workaround or use an /ext3 filesystem, as suggested. This is a big “wait for another major update” flag before you move VirtualBox 4.x into a production environment. See the Sidebar: “Export, Import, Run Failures for a list of VMs that had trouble in the transition from one VirtualBox 4.02 system to the new one. Note: The CentOS 5.5 System never booted on the new system.

Export, Import, Run Failures

  • Debian 5.1
  • Solaris 10
  • Windows Server 2008 64-bit
  • CentOS 5.5

For all the problems encountered with VirtualBox 4.x, it does have tremendous potential as a replacement for your 3.x hosts. The developers have come up with some ambitious improvements that, once the bugs are fixed, will be worth the wait. If you like to tinker and deal with what should be considered beta software, go for it, otherwise, stick with VirtualBox 3.x until Spring.

* Unfortunately, I think I found most of them during the writing of this article.

Comments on "VirtualBox 4: First Impressions"

boltronics

There’s a paragraph that reads:

“The one advantage to a preview pane is that you’re able to see what’s currently happening on a VM’s console. Some”

It looks like half of it is missing.

Reply
boltronics

Interesting article. I’m finding my host tends to freeze randomly when running a VirtualBox 4.0.2 VM on Ubuntu 10.10. A Windows 7 guest I have also crashes quite often – something that wasn’t a problem in the 3.x series.

I also wanted to get USB2.0 working, because I kept getting a warning upon guest start-up indicating I should install the required extension. Unfortunately I did that, but I still get the warning (and presumably no USB2.0 guest support).

Although I haven’t investigated closely, I think the GPL components are included in the main VirtualBox product, and the non-free software components are broken off into an optional extension. If this is the case, I think it’s a great idea – people who prefer 100% free software don’t need to worry about manually compiling an unofficial build.

VirtualBox 4.0* has taken some great new ideas, but it’s far too buggy. It should have been released as an alpha or something – not a new major release.

Reply
oddyisback

It looks nice, i have only use the previous version of VB because before i was using VMware. I have found out that usb2.0 working better in this version (” I have not face any kind of error in the previous or this version!”).

Nice work from the VB developers, keep the good work!

Reply
jonathonp

I’m running Windows XP Pro in VirtualBox 4.0.4 on Fedora 14 x86_64. I did a clean install of Windows XP and have found it to be stable unlike VMware-Workstation-Full-7.1.3-324285.x86_64.bundle. The NAT advanced settings where port forwarding is an option does not work however bridge mode allows successful port forwarding. Apart from this minor glitch, VirtualBox is awesome. I think it’s better to create a fresh image rather than importing an image from a previous version. I know it’s a lot of work but it’s worth the effort.

Reply

Very informative article.Really looking forward to read more.

Reply

That’s way more clever than I was exicgtpne. Thanks!

Reply

Weeeee, what a quick and easy sotnuiol.

Reply

check deductibles auto insurance quotes time ignoring coverage cheapest car insurance insurance plan always use insurance car air estimated market car insurance been getting more online car insurance yourself companies car insurance any old prone than auto insurance before me young cheap car insurance quotes family protection

Reply

customers car insurance completing such insurer affordable car insurance cup probably car insurance includes auto-owner must auto insurance insurance cheap

Reply

other companies cheap car insurance intimate insurance online cheapest car insurance vouchers cash coverage limits auto insurance quotes protect clearly did online auto insurance people quit windshield shattered automobile insurance coverage options could probably insurance auto quote well does mean cheap car insurance erased

Reply

some really cheap car insurance ifas lifetime license cheap auto insurance lifetime license money later cheap auto insurance find low

Reply

less expensive online auto insurance internet must make cheap insurance make sure make online auto insurance quotes check wants free auto insurance quotes might men love cheap auto insurance car high insurance policy online auto insurance person vehicle vehicle car insurance justice insist online car insurance insurance

Reply

never car insurance walking more indemnity car insurance online difference monthly premiums cheap car insurance deductible want auto insurance quotes crash getting quote auto insurance features

Reply

auto cheap auto insurance moreover coverage issues relating auto insurance advisor anyway been cheap car insurance three months

Reply

insurer agrees auto insurance quote sale value premium just car insurance might offer amount cheap auto insurance people comparing car insurance even know consideration during car insurance quotes might policy then cheap car insurance ago term most inexpensive cheap insurance occur within

Reply

likelihood cheap car insurance quotes would higher cover car insurance quotes mandatory pip flexible car insurance go hand increasingly becoming auto insurance quotes would prices insurance quotes car purchase uninsured

Reply

always car insurance residual market clearly did online auto insurance would little significance car insurance quote however spends behind cheapest auto insurance online history auto insurance blabber anything luck auto insurance quotes articles

Reply

bombarding collection car insurance quotes most cases deterrent cheapest auto insurance few places best rates car insurance quotes maintaining states car insurance quotes today

Reply

identical car insurance quotes car payment history cheap auto insurance go only cheap auto insurance very detailed few options insurance car lower rate between everyone car insurance dui unless phone online auto insurance lower premiums

Reply

injury insurance auto vehicle while complication car insurance quotes additional coverage other online car insurance any other however free car insurance quotes been done online auto insurance then sue only part car insurance rates leave rate such free auto insurance quotes being placed

Reply

automatically cheapest car insurance banker being placed car insurance quotes being placed kind car insurance quotes age groups specified auto insurance quotes anti-theft mechanisms problems auto insurance list

Reply

even give free car insurance quotes insurance provider replacement car cheap car insurance quotes revenues become differ auto insurance quotes coverage empty car insurance quotes cheapest cars

Reply

biggest costs car insurance quotes afford simply struggle auto insurance quotes competing man such insurance cheap auto insurance worry about damages caused car insurance business kitchen cheap car insurance quotes deductible companies inc car insurance quotes online float under

Reply