Table of contents
Install VirtualBox on macOS (Limited Apple Silicon support)
If you’re using Apple Silicon (M1/M2/M3), VirtualBox support is limited and may not work well. Consider alternatives if you encounter issues. Check if you’re using Apple Silicon
Open the VirtualBox download page, then choose the latest version and click “OS X hosts”

Once you get the downloaded install package, click on it and you will see the image below. Click on VirtualBox.pkg. In the next several steps, you will see some questions during the installation process. Just click “Allow”, “Continue” and “Done”. That’s it.

Open the installed VirtualBox. If you can see the image below, congrats! It installed successfully!

To avoid the “kernel driver not installed” error, you must explicitly allow VirtualBox to load in macOS System Settings (Security & Privacy), typically within the first 30 minutes after installation.

Go to System Settings → Security & Privacy.

Click “Allow” in the window that appears.

The Allow button typically appears only within the first 30 minutes after installing VirtualBox. If you have this error and don’t see the button, uninstall VirtualBox, remove any leftover files, reinstall it, and check again.
Install VirtualBox on Windows
Open the VirtualBox download page, then choose the latest version and click “Windows hosts”

Once you get the downloaded install package, click on it and you will see the image below. Click on VirtualBox-xxxxx-Win.exe. In the next several steps, you will see some questions during the installation process.

Click “Next”.

Click “Next”.

Click “Yes”.

Click “Install”. After that, it may take a while, so please be patient. During the installation process it will ask for your permission. Click “Allow” or “Yes” to complete the installation.

Click “Finish”.

Open the installed VirtualBox. If you can see the image below, congrats! It installed successfully!

Next
Now you have successfully installed VirtualBox in your machine. If you want to add any Linux distribution inside the VirtualBox like: