Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 894
Santosh Shinde Avatar asked Sep 06 '16 09:09

Santosh Shinde


People also ask

What is NS_error_failure (0x80004005),component machinewrap interface imachine?

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine In this blog, we have given a step-by-step guide to solve this issue. This component MachineWrap interface IMachine issue happens when there is insufficient permission for the Virtual box to start up the VM in mac.

What is the error code for stderr VBOX?

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

What to do when a VirtualBox VM fails?

Sorry, something went wrong. Simple fix for macOS, open VirtualBox Manager GUI, select the problem VM and choose the option "Discard" to delete the saved state. Worked for my issue, found the solution by opening VirtualBox logs (ctrl click VM-> show logs), which had more verbose error message:

What happens if you don't run vboxreload properly?

For example, if after upgrading virtualbox you forget to run "vboxreload" (or to reboot), then you'd be using the same vboxdrv.ko, etc. as the previous version prior to the upgrade. Some package managers don't reload modules properly.


3 Answers

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.

like image 66
Santosh Shinde Avatar answered Oct 04 '22 04:10

Santosh Shinde


Hi I have reinstalled virtual box and the issue has been solved for me.

On my mac while installing virtual box, It has not allowed me to install. So i went system preference -> security & privacy - > general - 'allow apps download from' -> click on the "allow" button.

I have successfully installed virtual box after the above changes on system preference.

Kitchen converge -> successfully done.

like image 36
venkatarao nersu Avatar answered Oct 04 '22 03:10

venkatarao nersu


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

like image 38
Promise Preston Avatar answered Oct 04 '22 02:10

Promise Preston