Solve NS_ERROR_FACTORY_NOT_REGISTERED on VirtualBox 4

If you setting up VirtualBox on a server you will probably try to set users and groups by you preferences. Changing UIDs and GUIs by your preference after VirtualBox is installed could bring you in a inconsistent situation and you get this message:

VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.

This cryptic message is in fact saying you that something is wrong with users or groups. But what? Not the libraries, not any file created during the VirtualBox installation but… the files created in the /tmp folder. Simply delete all related thing, even the hidden ones, and you will be fine again!

4 thoughts on “Solve NS_ERROR_FACTORY_NOT_REGISTERED on VirtualBox 4

  • 22 September 2012 at 17:03
    Permalink

    I was having this exact error, and I managed to fix it by correcting the path.

    Thanks mate

    Reply
  • 1 November 2012 at 22:20
    Permalink

    Thank you for your help! Much appreciated. The following worked for me on my Mac:

    sudo rm -rf /tmp/vbox*

    Reply
  • 10 January 2014 at 8:57
    Permalink

    thank you for your method. I solved the problem now.

    Reply
  • 24 May 2014 at 8:01
    Permalink

    i solved killing vbox process

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *