VirtualBox NS_ERROR_FAILURE (0x80004005) macOS


I'm using macOS and installed VirtualBox.

When I start a machine, I'm getting the following error :

Failed to open a session for the virtual machine ubuntu.

The virtual machine 'ubuntu' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}
asked on Stack Overflow Oct 7, 2018 by JP Jack • edited Oct 15, 2018 by deltonio2

4 Answers


This error seems to appear with VirtualBox installs on versions of macOS 10.13.

To fix this issue, you have to uninstall VirtualBox (use the VirtualBox_uninstall.tool of the VirtualBox downloaded dmg).

Then, install it again executing VirtualBox.pkg. At the end of the install, go to System Preferences, Security and Privacy, and the click the allow button :

Allow Oracle America, Inc.

This should solve your issue.

answered on Stack Overflow Oct 15, 2018 by deltonio2 • edited Mar 25, 2019 by Dale K

Using a readonly filesystem, blocking VBox files wrtiting access causes this error. Move VBox virtual machines files to a new location with writing permissions must resolves this problem. In my case, i use a Linux server, with VBOx software but my machine was moved to a Windows partition with BitLocker active and the windows Disk was mounted in ReadOnly, causing this problem.

answered on Stack Overflow Sep 29, 2020 by Paulo Salgado

enter image description here

  • Run it and it works!
answered on Stack Overflow Mar 28, 2020 by Prashanth Sams • edited Jun 20, 2020 by Community

I got this when I was trying to restore a suspended session. The fix was to click the "Discard" button (down arrow icon) and just discard the saved machine state. It's at least faster that uninstall/reinstall, I'd try it first.

answered on Stack Overflow Oct 31, 2020 by Christian N.

User contributions licensed under CC BY-SA 3.0