VirtualBox 3.0 Installation Guide

This will explain how to install and configure VirtualBox to run on your Crunchbang system.

There are two version of VirtualBox to choose from:

  • Personal Use and Evaluation License (PUEL)
  • Open Source Edition (OSE)

There is a webpage that details the differences between the two editions, but here is a quick listing of the differences:

  • Remote Display Protocol (RDP) Server
  • USB support
  • USB over RDP

This HOWTO will be using the PUEL edition as it has USB support.

Installing VirtualBox 3.0 (PUEL)

There are a number of ways to install VirtualBox onto your system.

  1. Using apt-get
  2. Using GDebi

Using apt-get

By far the easiest ways to install VirtualBox (and any other software) is by using apt-get in Terminal Emulator.

  1. Open up Terminator (Openbox Menu > Terminal)
  2. At the prompt, type:
    sudo nano /etc/apt/sources.list

    or

    gksudo gedit /etc/apt/sources.list
  3. Enter your password.
  4. You will need to add the appropriate line to your /etc/apt/sources.list file:
    deb http://download.virtualbox.org/virtualbox/debian jaunty non-free     ## #! 09.04
    deb http://download.virtualbox.org/virtualbox/debian intrepid non-free   ## #! 08.10
    deb http://download.virtualbox.org/virtualbox/debian hardy non-free      ## #! 08.04
    deb http://download.virtualbox.org/virtualbox/debian gutsy non-free      ## #! 07.10
    
  5. Put the line that corresponds to your version of CrunchBang in your file, either by retyping it or copying and pasting it. Then save the file.
  6. You will need to install the Sun public key to your system. You can do that with one command:
    wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
  7. You will need to update your repositories with the new addition that you made, so go back to Terminator and type:
    sudo apt-get update
  8. Now to install virtualbox with apt get, type:
    sudo apt-get install virtualbox-3.0

That will run the installer and get VirtualBox 3.0 installed on your system. There are some additional steps to get it configured that will be later in the document.

Using GDebi

This method is the next easiest method to install VirtualBox onto your system.

  1. Make sure that you have gdebi installed on your system.
    sudo apt-get install gdebi
  2. Download the appropriate DEB package from VirtualBox at http://www.virtualbox.org/wiki/Linux_Downloads
  3. Go to your download location.
  4. Double-click the .deb package that you downloaded. (virtualbox-3.0_3.0.10-54097_Ubuntu_jaunty_i386.deb at the time of writing.)
  5. Click the 'Install Package' button in Package Installer
  6. Enter your password
  7. Click the 'Forward' button on the Creating group 'vboxusers' box.
  8. Click 'Close' when the installer finishes.
  9. Close Package Installer
  10. Add yourself to the 'vboxusers' group
    1. Go to Users/Groups (Openbox Menu > System > Users/Group)
    2. Click on the 'Unlock' button
    3. Enter your password and hit the 'Authenticate' button
    4. Select your USERNAME and hit the 'Properties' button
    5. Select the 'User Privileges' tab
    6. Click in the box next to 'Use VirtualBox' and hit 'OK'
    7. Close 'Users/Groups'
    8. Logout/Login for the Group changes to take effect
  11. You are ready to start up VirtualBox.
    1. Bring up a Run dialog box
      1. Openbox Menu > Run Program
      2. Press ALT-F2
    2. Type 'VirtualBox'
  12. Accept the Personal Use and Evaluation License (PUEL) by scrolling all the way down and pressing the 'I Agree' button
  13. Register your VirtualBox
  14. Make some virtual machines!

Installing Guest Additions

There are different ways to install Guest Additions; here's a quick one:

  1. Boot your CrunchBang machine in VirtualBox
  2. Make sure you have installed the following packages: linux-headers-generic build-essential
  3. In VirtualBox, click Devices/Install Guest Additions - this will mount the virtual Guest Additions 'CD' image
  4. Open a terminal and type sudo thunar - after entering your password, it will bring up the Thunar file manager with root/sudo access.
  5. Browse to the VBOXADDITIONS_* virtual CD that should now be visible in the left column of Thunar
  6. Click (or double-click, depending on your settings) on the appropriate file. For 32-bit CrunchBang, you'd currently use VBoxLinuxAdditions-x86.run
  7. A terminal will open and begin the installation. After it's complete it'll ask you to 'Press Return to close this window . . .'
  8. Restart CrunchBang and you should be good to go.

You can, of course, install via terminal as well, but this may be a touch easier for those with terminal-phobia. =)

 
howto/virtualbox.txt · Last modified: 2009/11/07 22:07 by anonymous
 

Copyright © 2010 CrunchBang Linux. Some rights reserved.