So, I have got this shiny new Macbook Pro and installed VirtualBox on it to run some Linux boxes. Here is what I got when trying to start one:
The error message is quite vague. It says On Linux, open returned ENOENT. What about on macOS? It turns out that I have to explicitly allow VirtualBox in the macOS system preference.
Go to System Preferences / Security & Privacy.
Click ?Allow? in the window below.
Now VirtualBox no longer complains about kernel driver.
Update: some people don?t see this button. According to a comment from Albert Wolszon:
This Allow button section shows up only after first 30 minutes after the installation of VirtualBox. If you have this error and don?t see the button, uninstall VirtualBox, remove its belongings (there are usually some files left) and install it once again, then check this button again.
Thanks for the comments!