[HOWTO] Properly install VirtualBox 4 beta in Ubuntu/Debian/Linux Mint (and other Debian/Ubuntu derivatives)

I downloaded deb of VirtualBox beta 1 from the beta packages page of Oracle website and installed it. However, while launching Virtual Machines created with Oracle VirtualBox 3.x (closed source version), I got the following error:

Failed to open a session for the virtual machine [machine name].
A virtual device is configured in the VM settings but the device implementation is missing.
A possible reason for this error is a missing extension pack. Note that as of VirtualBox 4.0, certain features (for example USB 2.0 support and remote desktop) are only available from an ‘extension pack’ which must be downloaded and installed separately (VERR_PDM_DEVICE_NOT_FOUND).

Details:
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {515e8e8d-f932-4d8e-9f32-79a52aead882}

It was clear that it requires an extension pack. I went back to the download page and found an extension pack named “Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA1-68572.vbox-extpack” (newer versions may be available now so name may be different) and downloaded it. I installed it by double clicking it. It opens with VirtualBox by default (if it doesn’t, open with and select VirtualBox). The following error popped up:

Failed to install the Extension Pack /path/Oracle_VM_VirtualBox_Extension_Pack-4.0.0_BETA1-68572.vbox-extpack.
Failed to locate load the main module (‘/usr/lib/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/linux.x86/VBoxPuelMain.so’): VERR_FILE_NOT_FOUND.

Details:
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ExtPackManager
Interface:
IExtPackManager {8104df65-74d6-4e33-b374-50aa062b4afd}

When I tried to launch a Virtual Machine, I got the previous error. However, when I tried to reinstall the Extension, I got the following error:

Extension pack ‘Oracle VM VirtualBox Extension Pack’ is already installed. In case of a reinstallation, please uninstall it first.

I learned from WebUpd8 that libstdc++5 was required for it. So, I just installed it by typing the following in terminal:

 sudo apt-get install libstdc++5

Then, after restarting VirtualBox, I was able to launch my Virtual Machines again.

If you enjoyed this post, make sure you subscribe to my RSS feed!
  • Shantanu Gadgil

    The equivalent for CentOS/RHEL/Fedora is installing the “compat-libstdc++” packages

  • http://www.techhamlet.com Pubudu@TechHamlet

    Cool tutorial mate! I think this is the 1st major version that they are going to release after Oracle bought them :D

  • Pingback: Properly install VirtualBox 4 beta in Ubuntu/Debian/Linux Mint (and other Debian/Ubuntu derivatives) | Ubuntu-News - Your one stop for news about Ubuntu()

  • Pingback: Properly install VirtualBox 4 beta in Ubuntu/Debian/Linux Mint (and other Debian/Ubuntu derivatives) | Debian-News.net - Your one stop for news about Debian()

  • anton

    Thanks for your information, I’ve installed the latest version of VirtualBox.

    And does anybody have the same question with me, which usb devices are disabled on my guest os ?

    I found my usb dev rule is wrong, and do some fix:

    — /etc/udev/rules.d/10-vboxdrv.rules 2010-12-09 10:18:13.000000000 +0800
    +++ /home/anton/10-vboxdrv.rules.orig 2010-12-09 10:15:44.000000000 +0800
    @@ -1,5 +1,5 @@
    KERNEL==”vboxdrv”, NAME=”vboxdrv”, OWNER=”root”, GROUP=”root”, MODE=”0600″
    -SUBSYSTEM==”usb_device”, ACTION==”add”, RUN=”/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers”
    -SUBSYSTEM==”usb”, ACTION==”add”, ENV{DEVTYPE}==”usb_device”, RUN=”/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers”
    -SUBSYSTEM==”usb_device”, ACTION==”remove”, RUN=”/usr/share/virtualbox/VBoxCreateUSBNode.sh –remove $major $minor”
    -SUBSYSTEM==”usb”, ACTION==”remove”, ENV{DEVTYPE}==”usb_device”, RUN=”/usr/share/virtualbox/VBoxCreateUSBNode.sh –remove $major $minor”
    +SUBSYSTEM==”usb_device”, ACTION==”add”, RUN=/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}” vboxusers
    +SUBSYSTEM==”usb”, ACTION==”add”, ENV{DEVTYPE}==”usb_device”, RUN=/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}” vboxusers
    +SUBSYSTEM==”usb_device”, ACTION==”remove”, RUN=/usr/share/virtualbox/VBoxCreateUSBNode.sh –remove $major $minor”
    +SUBSYSTEM==”usb”, ACTION==”remove”, ENV{DEVTYPE}==”usb_device”, RUN=/usr/share/virtualbox/VBoxCreateUSBNode.sh –remove $major $minor”

    • Guest

      same issue here with a SYNTHAX error in /etc/udev/rules.d/10-vboxdrv.rules

  • Pingback: SIMPLISM.KR » Blog Archive » [Ubuntu 10.04 LTS] Oracle VM VirtualBox 4 설치 - Simple is the Best!()