The new version of Sun xVM Virtual Box -- version 2.1.4 -- has been released. This version includes many bug fixes and includes Windows 7 support, 3D Acceleration via OpenGL, and "out-of-the-box" USB support. Unlike the OSE version that is installable through the standard Ubuntu Repositories, the Personal Use and Evaluation Licensed (PUEL) version includes USB support and easy installation of the Guest Additions.
Most users of the OSE version also install the Guest Additions. By installing this software, users agree to the PUEL, even though they are using the more limited OSE version. If you are going to use the Guest Additions, you are agreeing to the PUEL but NOT getting the advantages of the full PUEL version of VirtualBox.
So, you want to install the full version of VirtualBox AND get automatic upgrade notification through the Synaptic Upgrade Manager? It is as Easy as Falling Of A Log.
I. Getting VirtualBox 2.1.4 PUEL edition
KDE USERS: To access software sources & software installation in KDE, see Repositories/Kubuntu -- These instructions are for Ubuntu with the Gnome desktop environment. KDE users will use "Package Manager (Adept Manager)" to alter their software sources and add the signing key.
If you've previously installed the OSE version of VirtualBox, you'll need to completely remove it. Use System → Administration → Synaptic Package Manager and search for "virtualbox" and completely remove any virtualbox related packages. Right click on the package(s) you want to remove and select "Mark for Complete Removal." Simply using "Mark for Removal" may leave files behind that could block the installation of the PUEL version. Click on "Apply" then confirm the changes and click apply again. When done, go ahead and close Synaptic Package Manager.
Go to System → Administration → Software Sources. Click on the “Third-Party Software” tab. Now, click on the “Add” button near the bottom of the window. Paste the following into the “APT line” box:
If you are running Hardy (8.04 LTS) replace “intrepid” with "hardy". At the time of this writing, packages for later versions are not available. If you are using a version older than hardy (such as gutsy, feisty, etc.) you might have trouble getting up-to-date versions of VirtualBox. Since Ubuntu versions prior to hardy are either no longer supported or will soon reach their end-of-life, this would be a good time to upgrade to at least hardy (8.04 LTS).
deb http://download.virtualbox.org/virtualbox/debian intrepid non-free
Click “Add Source” Do not close Software Sources yet..
Get the signing key directly from Sun at http://download.virtualbox.org/virtu...n/sun_vbox.asc. In Software Sources, click on the Authentication tab and then click on “Import Key File...” Browse to the location of sun_vbox.asc. Click on the file and then press OK. Notice that a key has been added to Trusted software providers for Sun Microsystems, Inc. (xVM VirtualBox archive signing key). Now you can close Software Sources.
II. Install VirtualBox 2.1.4
Open System → Administration → Synaptic Package Manager. Click on the Reload button. Now search for virtualbox (the Quick search box sometimes does not work with third-party repositories, so use the Search button instead). Click on the check box next to “virtualbox-2.1”. Click “Apply” and follow the on-screen instructions. Once VirtualBox is installed, close Synaptic Package Manager
III. Add User(s) to the "vboxusers" Group
Go to System → Administration → Users & Groups. Unlock "Users Settings" using the "Unlock" button near the lower right of the box (next to the close button) then click on “Manage Groups”
Scroll through the list of group names until you find “vboxusers” then click on it to highlight and click on the “Properties” button. You'll see a list of users on your system. Check off all the users who you will want to give access to VirtualBox. Do NOT check off “root”. After you've made your changes, click "OK" and then close groups settings and user's settings.
A reboot should not be required. Simply log out, and then back in. If you get an error when you try to start your guest OS, then go ahead and reboot and then try again. Leave a message on this thread if you find that you need to reboot before you are able to run your virtual machine so that I can change the instructions.
IV. Install Guest Additions
This part of the HOWTO assumes that you have already created a Virtual Machine. Instructions on how to create a VM and install an operating system can be found elsewhere and is outside the scope of this HOWTO. While not required, you will enjoy a much better user experience with your VirtualBox guest operating systems if you install the guest additions. Improved video support and sharing folders with the hostOS are among the benefits of using the Guest Additions. For a Windows guest, start your guest OS. After it is booted up and ready to use, make sure you are in windowed mode (as opposed to full screen), open "Devices" from the menu bar, and select "Install Guest Additions..." Normally, it will start up automatically, but if it doesn't, just open the Windows "start" menu, go to "My Computer" (or "Computer" in Vista) and double click on the CD labeled "VirtualBox Guest Additions."
V. Enable USB Support
Open VirtualBox and click on your Virtual Machine then click “Settings” -- In the left panel, click on USB. Check off “Enable USB Controller” and “Enable USB 2.0 (EHCI) Controller". Do this for each VM in which you wish to have USB access.
Here is a brief list of some common USB problems under VirtualBox:
My USB keyboard and/or USB mouse is not working or is behaving erratically. DO NOT activate these devices for your virtual machines. VirtualBox uses virtual drivers for these devices. Activating them in your virtual machine may cause erratic behavior in both the guest and host OS. ALSO, for proper mouse integration, you will need to install the Guest Additions (see instructions in section IV of this HowTo)
I can activate my USB Hard Drive and/or Flash Drive, but it is not working in the guest OS. You'll need to create a device filter. Before opening VirtualBox, plug in your flash drive and/or your USB hard drive. Open VirtualBox and select your guest OS. Do NOT start the guest, just highlight it. Click on "Settings" in the toolbar and select USB in the left pane. Notice a large white area just below the heading "Device Filters." Right click anywhere in that large white area and select "Add filter from device." Now select your USB hard drive or Flash drive. Notice that the name of the device will now appear in the large white area with a checked box next to it. Repeat for other USB hard drives or flash drives as desired. In some cases, you'll need to unmount the device from your Ubuntu desktop before starting the guest OS. Once the guest OS has been started and is ready to use, plug in the USB hard drive or flash drive. The guest OS should recognize and mount it properly now.
When I activate a USB device (such as my USB printer) in my guest OS, I can no longer use it from my host OS. This is normal. When you enable a USB device, it will be inaccessible to your host OS until you release it from your guest OS.
VI. Enable CD Burner and/or DVD Burner
You're actually better off using tools such as Brasero or K3B in Ubuntu to burn CD's or DVD's ... but if you must use your guest OS, it can be done very easily. If you are using an external USB CDRW/DVDRW drive, plug it in now. Open VirtualBox and select your guest OS. Do not start it yet. Open "Settings" and select "CD/DVD-ROM" from the left panel. In the right panel, check off "Mount CD/DVD Drive" and then select the "Host CD/DVD Drive radio button. Select your CDRW/DVDRW drive from the drop down list. Now, check off "Enable Passthrough." Click OK. Start your guest OS. You should now have full burning support for the drive in the guest.