How to fix MacOS Big Sur issue with Virtualbox – failed to open a session

After upgrading to MacOS Big Sur, my virtual boxes stopped to work.

At first with a driver related to drivers.

To fix this, you have to

  • download the latest virtualbox
  • use the uninstall tool
  • do a fresh install.

After this fresh install you will have to go to the System preferences / Security & privacy : you will find a message related to Oracle products and will have to allow access.

Then a second error came :

Failed to open a session for the virtual machine ubuntu.
The virtual machine 'ubuntu' has terminated unexpectedly during startup with exit code 1.
Result Code: E_FAIL (0x80004005) Component: Machine Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

To fix this issue :

sudo csrutil clear
sudo reboot

That’s all folks ! 😉