To uninstall VirtualBox on a Mac, you need to remove the application, its kernel extensions, and associated preference files. This guide provides the complete, safe removal steps and answers common questions about leftover files and system impact.
Why a Simple Drag-to-Trash Isn’t Enough
VirtualBox installs more than just the app in your Applications folder. It loads kernel extensions (system-level drivers) that let virtual machines access your hardware directly. These extensions are stored in /Library/Application Support/VirtualBox and loaded at boot. Dragging the app to Trash leaves these extensions and other support files behind, which can cause errors if you reinstall VirtualBox or install a different virtualization tool later. A complete removal clears all these components.
What You Need Before You Start
- Close VirtualBox completely (press Cmd+Q, not just the window close button).
- Shut down any running virtual machines.
- Quit the VirtualBox menu bar icon if it’s running.
- Back up any virtual machine files you want to keep (they are usually in
~/VirtualBox VMs).
Step-by-Step Uninstall Process
- Quit VirtualBox – Ensure no VirtualBox processes are running. You can check in Activity Monitor (search for “VirtualBox”).
- Drag the app to Trash – Move
VirtualBox.appfrom your Applications folder to the Trash. - Remove kernel extensions – Open Finder, press Cmd+Shift+G, and go to
/Library/Application Support/VirtualBox. Delete this entire folder. You may need to enter your admin password. - Remove preference files – In Finder, press Cmd+Shift+G and go to
~/Library/Preferences. Deleteorg.virtualbox.app.VirtualBox.plistandorg.virtualbox.app.VirtualBoxVM.plistif they exist. - Remove saved state and logs – In
~/Library/Saved Application State, deleteorg.virtualbox.app.VirtualBox.savedStateif present. Also check~/Library/Logsfor VirtualBox logs. - Empty the Trash – Right-click the Trash and select “Empty Trash” to permanently delete everything.
How to Remove VirtualBox Using the Terminal (Advanced)
If you prefer command-line removal or the manual steps don’t catch everything, you can use Terminal commands. Open Terminal and run the following commands one by one. You’ll be prompted for your password.
sudo rm -rf /Applications/VirtualBox.appsudo rm -rf /Library/Application\ Support/VirtualBoxsudo rm -rf /Library/LaunchDaemons/org.virtualbox.startup.plistsudo rm -rf ~/Library/Preferences/org.virtualbox.app.VirtualBox.plistsudo rm -rf ~/Library/Saved\ Application\ State/org.virtualbox.app.VirtualBox.savedState
Be careful with the sudo rm -rf command – it permanently deletes files without moving them to Trash. Double-check each path before running.
Common Problems After Uninstalling
Many users find that after a partial uninstall, they can’t reinstall VirtualBox or another hypervisor like VMware Fusion. The error usually mentions a kernel extension conflict. This happens because the old VirtualBox kernel extensions are still loaded. To fix it, restart your Mac after removing the files – this forces the extensions to unload. If the problem persists, you may need to reset the NVRAM (restart and hold Option+Cmd+P+R until you hear the startup chime twice).
What About Virtual Machines and Hard Drives?
Uninstalling VirtualBox does not delete your virtual machine files. They are stored in ~/VirtualBox VMs by default. If you plan to reinstall VirtualBox later, keep this folder. If you want to free up disk space, delete this folder manually after backing up anything important. Note that virtual machine files can be several gigabytes each, so removing them can free significant space.
Alternative Virtualization Tools for Mac
If you’re removing VirtualBox because you need a different tool, consider these alternatives (each has its own uninstall process):
- UTM – Free, open-source, based on QEMU. It runs on Apple Silicon and Intel Macs.
- Parallels Desktop – Commercial, known for seamless Windows integration, but paid.
- VMware Fusion – Commercial, now free for personal use (as of recent versions).
- Apple’s Built-in Tools – For macOS guests, you can use the built-in Virtualization framework via third-party apps like Docker Desktop.
Each of these installs its own kernel extensions or uses Apple’s Virtualization framework, so they don’t conflict with VirtualBox once it’s fully removed.
Frequently Asked Questions
Do I need to restart my Mac after uninstalling VirtualBox?
Yes, a restart is strongly recommended. It ensures all kernel extensions are unloaded and any cached system state is cleared. Without a restart, you might see errors when trying to install other virtualization software.
Will uninstalling VirtualBox delete my virtual machines?
No. The uninstall steps above do not touch ~/VirtualBox VMs. Your virtual hard drives and snapshots remain intact. You can delete them manually if you want to free up space.
How do I know if VirtualBox is completely uninstalled?
After following the steps, check that /Applications/VirtualBox.app no longer exists, and that /Library/Application Support/VirtualBox is gone. You can also run kextstat | grep virtualbox in Terminal – it should return nothing.
Can I reinstall VirtualBox after uninstalling?
Yes, you can reinstall the latest version from the official website. Make sure you’ve completed the removal steps and restarted to avoid conflicts with old extensions.
Why does VirtualBox leave files behind?
VirtualBox uses kernel extensions and system-level daemons to provide high-performance virtualization. These are installed outside the app bundle, which is why they aren’t removed by simply deleting the app. This is common for software that needs deep system access.
Is there an official uninstaller?
VirtualBox does not ship with a dedicated uninstaller for macOS. The manual steps above are the standard method recommended by the community and are sufficient for complete removal.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Data Center Security: Encryption, Backups, Access
- Best Mini PCs for Gaming: Top Picks
- Phone Buttons: Clever Ways to Use Them
- Resonance Solstice Codes: What They Are
- Blue Protocol Star Resonance: Best Graphics Settings for Smooth FPS
- Jack Daniel’s Ransomware: Data Stolen?