VirtualBox 4.0 has been released today. We've already covered what's new in VirtualBox 4.0.x when the first beta came out so check out that post or the changelog for more info.

As you probably know, starting with VirtualBox 4.0.x some features are now available separately, in an extension pack. Here are the step-by-step instructions on installing both VirtualBox and the Extensions Pack in Ubuntu.

Install VirtualBox 4.0 in Ubuntu

1. Remove any previous VirtualBox version you had installed.

Presuming you were using version 3.2, you would have to run the following command:

For USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards support, you'll also have to install an Extension pack which you can download from HERE.

4. Install the VirtualBox Extension pack.

Open VirtualBox 4.0.x and go to File > Preferences and on the Extensions tab, click the "add" button on the right (first blue diamond) and browse for the VirtualBox extension pack you've downloaded in step 1. That's it!