VirtualBox needs your CPU's hardware virtualization: Intel VT-x or AMD-V. Most "VirtualBox won't start my VM" problems come from it being switched off, or from Windows quietly using it for something else. So we check that first, then install.
Step 1: Is virtualization switched on?
Windows: open Task Manager → Performance → CPU. Under the graph, look for Virtualization: Enabled.
Linux:
lscpu | grep -i virtualization # should print VT-x or AMD-V
grep -Ec '(vmx|svm)' /proc/cpuinfo # a number above 0 = CPU supports it
If it says Disabled, go to Step 2. If it says Enabled, skip to Step 3.
Step 2: Turn it on in BIOS/UEFI
Reboot and keep tapping the setup key as the PC starts:
| Brand | Key to try |
|---|---|
| Dell, Acer, ASUS laptops | F2 |
| HP | Esc, then F10 |
| Lenovo | F1 or F2 (or the small Novo button) |
| MSI, most desktop boards | Del |
On Windows 11 there's an easier way: Settings → System → Recovery → Advanced startup → Restart now → Troubleshoot → Advanced options → UEFI Firmware Settings.
Look for Intel Virtualization Technology (VT-x) or, on AMD, SVM Mode. It's usually under Advanced, CPU Configuration or Security. Set it to Enabled, then Save & Exit (often F10).
Step 3 (Windows only): stop Hyper-V from hijacking it
Windows features like Hyper-V, WSL2, Docker Desktop, Memory Integrity and Virtual Machine Platform grab the virtualization hardware for themselves. VirtualBox still runs on top of them, but slowly. The sign is a small green turtle icon in the VM's status bar.
For full speed, open PowerShell as Administrator:
bcdedit /set hypervisorlaunchtype off
Then go to Windows Security → Device security → Core isolation and turn Memory integrity off. Reboot.
Trade-off: this pauses WSL2 and Docker Desktop, and Memory integrity is a real Windows protection. To undo it later, run
bcdedit /set hypervisorlaunchtype autoand switch Memory integrity back on. If you need WSL2 every day, skip this step and accept slower VMs.
Step 4: Install VirtualBox
On Windows
- Go to virtualbox.org → Downloads and get the Windows hosts installer.
- Run it and keep the default options.
- If it says a Microsoft Visual C++ Redistributable is missing, install the latest x64 version from Microsoft, then run the VirtualBox installer again.
- If it warns about Python Core / win32api, click Yes. You don't need them for this path.
- Your network will drop for a few seconds while it installs virtual network adapters. That's normal.
On Linux (Ubuntu, Debian, Kali as host)
Download the .deb for your distribution from the VirtualBox Linux_Downloads page, then:
sudo apt update
sudo apt install ./virtualbox-7.2_*.deb # use the exact file name you downloaded
sudo usermod -aG vboxusers $USER # lets your user access USB devices
Log out and back in. If a VM later fails with "Kernel driver not installed (rc=-1908)", run sudo /sbin/vboxconfig. On PCs with Secure Boot, follow its prompt to enrol a signing key at the next reboot.
On macOS
Download the package for your Mac (Intel or Apple Silicon). On first launch, allow Oracle's system extension in System Settings → Privacy & Security.
Step 5: Set it up before your first VM
- Default Machine Folder: File → Preferences → General. Point it to your fastest drive with the most free space, like
D:\VMs. Every VM you create lands here. - Learn the Host key: by default it's Right Ctrl. Inside a VM it releases your mouse and keyboard back to your PC. Host + F toggles full screen and Host + Del sends Ctrl+Alt+Del to Windows VMs.
- Extension Pack (optional): adds extras like webcam pass-through. It's free only for personal and educational use, and its version must match VirtualBox exactly. You won't need it in this path.
A quick tour of VirtualBox Manager
| Button | What it does |
|---|---|
| New | Create a VM from an ISO file |
| Add | Open a VM someone already built (a .vbox file) |
| Settings | CPU, RAM, disk, network, display |
| Start | Boot the VM (the arrow next to it has Headless start, with no window) |
| Snapshots | Save and restore points (in the machine's tools menu) |
Fixing common errors
| Error or symptom | Cause | Fix |
|---|---|---|
| VT-x is not available (VERR_VMX_NO_VMX) | Virtualization off, or taken by Hyper-V | Steps 2 and 3 |
| AMD-V is disabled in the BIOS (VERR_SVM_DISABLED) | SVM Mode off | Enable SVM in BIOS |
| Only 32-bit versions in the OS list | Virtualization not available | Steps 2 and 3 |
| Green turtle icon, very slow VM | Running on top of Hyper-V | Step 3 |
| Kernel driver not installed (rc=-1908) | Linux/macOS driver not loaded | sudo /sbin/vboxconfig, or allow the extension on macOS |