VirtualBox is not starting the guest OS and it displays Failed to open session for the virtual machine [virtual-machine-name]
Call to WHvSetupPartition failed:
ERROR_SUCCESS (Last=0xc000000d/87)
(VERR_NEM_VM_CREATE_FAILED).
Result Code: E_FAIL (0x80004005)
Component: Consolewap
Interface: IConsole{872da645-4a9b-1727-bee2-5585105b9eed}
VirtualBox failed to open session for the virtual machine
To fix this problem, you will need to undertake the following steps:
- Open VirtualBox as administrator
- Install platform package
- Discard saved state
- Reinstall VirtualBox
1] Open VirtualBox as administrator
Although administrator privilege is not mandatory by default, sometimes you might need to use that to fix this problem. If you have a desktop shortcut of VirtualBox and you use this shortcut to open this tool, you can right-click on the corresponding logo, and select Run as administrator. However, if you want to provide the admin permission to VirtualBox permanently, you need to follow these steps.
Right-click on the desktop shortcut and go to Properties. After that, switch to the Compatibility tab.
Here you should find a checkbox saying Run this program as an administrator. Make a tick in that checkbox and click the OK button to save the change.
However, if you do not have a desktop shortcut and you open VirtualBox from Start menu, here is what you can do. You can search for VirtualBox, right-click on the exact search result, and select Run as administrator.
Also, if you want to give admin permission to this Start menu button, these following steps will help you. Search for VirtualBox in the Taskbar search box, and select Open file location. Basically, you need to open the Startup folder in Windows computer and go to Oracle VM VirtualBox.
After that, right-click on the Oracle VM VirtualBox icon, and go to Properties ➡ Compatibility tab and select the Run this program as an administrator checkbox.
After doing this, you should not get the problem as mentioned earlier.
2] Install platform package
The platform package helps VirtualBox to use various components with ease. If you haven’t installed it yet, you can head over to this page, and download the latest platform package for your OS.
3] Discard saved state
If you haven’t closed the VirtualBox or running virtual machine properly, there is a chance of getting such an issue. Therefore, use the Discard Saved State option to kill all the running processes, and close the app immediately. Alternatively, you can select the virtual machine, and press Ctrl + J.
4] Reinstall VirtualBox
If none of the above suggestions helped you to fix the problem, the only solution is the reinstallation of VirtualBox. Do not forget to remove all the leftovers before installing it again.
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://www.thewindowsclub.com/virtualbox-failed-to-open-session-for-the-virtual-machine