VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005) with meanjs and vagrant

5

I am trying to run mean.js project based on vagrant , but I get the following error with the vagrant up command on ubuntu 14.04 LTS 64 bit.

        There was an error while executing `VBoxManage`, a CLI used by Vagrant
        for controlling VirtualBox. The command and stderr is shown below.

        Command: ["startvm", "d660b7d6-06a3-49bc-8b90-cbad92632c11", "--type", "headless"]

        Stderr: VBoxManage: error: The virtual machine 'pets_default_1473142645576_38190' has terminated unexpectedly during startup with exit code 1 (0x1)
        VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Please help me to solve the issue.

node.js
vagrant
ubuntu-14.04
virtualbox
meanjs

2 Answers

7

I solved the using following Steps :

I have completely remove older VirtualBox versions before installing VirtualBox-5.0 !

  1. Uninstall VirtualBox

    sudo apt-get purge "^virtualbox-.*"
    
  2. Update the software repositories

    sudo apt-get update
    
  3. Clean up

    sudo apt-get autoremove | sudo apt-get autoclean | sudo apt-get clean 
    
  4. Setup API repository (For Ubuntu 14.04 ("Trusty"))

    echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list
    
  5. Setup Oracle Key

    wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
    wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
    

    6.Install Oracle Virtualbox

    sudo apt-get update
    sudo apt-get install virtualbox-5.1
    Start Virtualbox
    virtualbox
    

For more help check to here.

Hope this will Help to other.

answered on Stack Overflow Sep 7, 2016 by Santosh Shinde • edited Jan 30, 2017 by Santosh Shinde
1

I also faced the same issue, but Santosh Shinde's answer helped me to figure it out.

I, however, want to add to it:

After uninstalling every old/previous version of Virtualbox available on your PC:

sudo apt-get purge "^virtualbox-.*"

And cleaning your system:

sudo apt-get autoremove

Rather than installing Virtualbox from the Apt repository of Ubuntu, simply visit the downloads page of Virtualbox, to download the most current version of Virtualbox.

This is because the Apt repository may not have the latest version of Virtualbox.

That's all.

I hope this helps

answered on Stack Overflow Jan 28, 2020 by Promise Preston

User contributions licensed under CC BY-SA 3.0