Go to the official VirtualBox downloads page and select the installer for your host operating system. If you are following this guide on a Windows computer, choose the Windows hosts package. Oracle’s page lists the current VirtualBox release and provides platform-specific downloads. 
Verify your download
This step is recommended because it helps confirm that the file you downloaded is complete and has not been changed or corrupted. Ubuntu publishes SHA256 checksum files for Ubuntu 26.04 LTS, and Oracle advises users to verify VirtualBox downloads using checksums.
To verify your VirtualBox Download, go to the official website and check for the SHA256SUMS hash value. This is what you will use to confirm the integrity of your download.


Option 2: Scannable & Structured (Best for a step-by-step guide)
Clicking the SHA256SUM link will open a list of multiple hashes. Don't let the long list confuse you! Because we downloaded the Windows version, we only need to look for the file named VirtualBox-7.2.12-174389-Win.exe.
As shown in the screenshot, the correct hash value for our download is: 5094f3d573fe2a511bfc7ae8982c2f6544ae9b5051048dc7a0e9985c74dcac4c
Now, let’s try to confirm if our hash value matches the one on the VirtualBox official page. Follow the steps below:
-
Open PowerShell or Command Prompt on your Windows. Navigate to your Downloads folder using the command “cd Downloads”.
-
Input the command Get-FileHash .VirtualBox-7.2.12-174389-Win.exe -Algorithm SHA256 in the terminal.
-
Manually compare both hashes to ensure the download hasn’t been tampered with.

Since the two hashes match, we can confirm the file's integrity! This tells us two important things: the installer is safe, and it wasn’t tampered with or modified during the download process.
your download folder and double-click the download to run the installer. If Windows asks for permission through User Account Control, click Yes.

Work through the setup wizard. In this installation phase, you need to perform a few activities, including:
-
Accept the licence terms.
-
Choose the installation location, or keep the default option.
-
Review any network interface warning shown during setup.





You are required to select one or more startup options depending on your choices. This helps to create a desktop shortcut for easy access.

Click the Install button to install VirtualBox software.


Click Finish to complete the setup and launch your virtual machine right away. Congratulations, you have successfully installed VirtualBox!