If you see the VirtualBox error “Result Code: E_FAIL (0x80004005)” when starting a VM on Windows, the fix is usually to correct a mismatch between the VM’s settings and your host hardware, or to reset the VM’s saved state. This article walks you through the most common causes and step-by-step solutions to get your virtual machine running again.
What Causes the E_FAIL 0x80004005 Error?
The E_FAIL (0x80004005) error is a generic COM error that VirtualBox uses when an operation fails without a more specific code. In practice, it appears most often when you try to start a virtual machine, and it is typically caused by one of these issues:
- Incompatible hardware settings – such as an incorrect CPU core count or an unsupported graphics controller.
- A corrupted or stale saved state – if the VM was not shut down cleanly.
- Hyper-V or other virtualization conflicts – Windows’ built-in hypervisor can conflict with VirtualBox.
- Outdated VirtualBox or Extension Pack – version mismatches can cause failures.
- Insufficient permissions or corrupted configuration files – the VM’s XML settings may be damaged.
Because the error is generic, you need to check each of these areas to find the exact cause.
Quick Fix: Reset the VM’s Saved State
The simplest and most common fix is to discard the saved state. If your VM was suspended or crashed, VirtualBox may try to resume from a corrupted state file.
- Open VirtualBox and select the VM that shows the error.
- Click Discard Saved State in the toolbar (or right-click the VM and choose it).
- Confirm the action. This will lose any unsaved work inside the VM, but it often resolves the E_FAIL error.
- Try starting the VM again.
If the error persists, move on to the next steps.
Adjust VM Settings for Hardware Compatibility
VirtualBox’s default settings are usually fine, but if you have changed them or are using a newer CPU, some settings may cause the E_FAIL error. Here are the most likely culprits:
- CPU core count – Set it to 1 or 2 cores. Some older VirtualBox versions have issues with more than 2 cores on certain CPUs.
- Graphics controller – Try switching from VBoxSVGA to VBoxVGA or VMSVGA. Go to Settings → Display and change the controller.
- Enable 3D acceleration – If it is on, turn it off, as it can cause failures on some hosts.
- Paravirtualization interface – In Settings → System → Acceleration, try setting it to “Default” or “Legacy”.
After changing any of these, restart VirtualBox (not just the VM) and try again.
Disable Hyper-V and Other Virtualization Conflicts
Windows’ Hyper-V, Device Guard, and Core Isolation (Memory Integrity) all use the same hardware virtualization features as VirtualBox. If they are enabled, VirtualBox may fail to start VMs with E_FAIL.
- Open Windows Security → Device Security → Core Isolation and turn off Memory Integrity if it is on.
- Open Control Panel → Programs → Turn Windows features on or off.
- Uncheck Hyper-V and Windows Hypervisor Platform.
- Click OK and restart your computer.
Note that disabling Hyper-V will stop Windows Sandbox and WSL2 from working. If you need those, you can instead use the VirtualBox command line to force software virtualization, but that is slower and not recommended for most users.
Update VirtualBox and the Extension Pack
Running an outdated version of VirtualBox can cause compatibility issues with newer Windows updates or hardware drivers. Always use the latest stable version from the official VirtualBox website, and ensure the Extension Pack matches your version exactly.
- Download the latest VirtualBox and the same version’s Extension Pack.
- Install VirtualBox, then install the Extension Pack by double-clicking the .vbox-extpack file.
- Restart VirtualBox and try starting the VM.
If you are on Windows 11, also make sure your BIOS/UEFI has virtualization (Intel VT-x or AMD-V) enabled, as VirtualBox requires it.
Check for Corrupted VM Configuration Files
Sometimes the VM’s settings file (the .vbox file) becomes corrupted or contains invalid XML. You can inspect it manually, but first try a simpler fix: rename the file to force VirtualBox to recreate it.
- Close VirtualBox completely.
- Navigate to the folder where your VM is stored (e.g.,
C:\Users\YourName\VirtualBox VMs\MyVM). - Find the
.vboxfile and rename it to.vbox.bak. - Open VirtualBox and select the VM – it should appear as “Inaccessible”. Right-click it and choose Remove (but keep the files).
- Then go to Machine → Add and select the renamed .vbox.bak file. VirtualBox will load it and create a fresh configuration.
If that does not work, you can also try copying the .vbox file to a new location and re-adding it.
Frequently Asked Questions
Why do I get E_FAIL only when I start a specific VM?
This usually points to a problem with that VM’s settings or its saved state, not with VirtualBox itself. Try the Discard Saved State option first, then check the VM’s display and CPU settings. If the VM was created on a different host, its hardware compatibility may be off.
Can the E_FAIL error be caused by a full hard drive?
Yes, if the host drive is full, VirtualBox may fail to allocate memory or write temporary files, causing a generic E_FAIL. Check that you have at least a few GB of free space on the drive where the VM is stored.
Does disabling Hyper-V affect other software?
Yes, disabling Hyper-V will disable Windows Sandbox, Windows Subsystem for Linux 2 (WSL2), and Windows Hypervisor Platform. If you use those, you may prefer to keep Hyper-V on and instead use the Hyper-V virtual machine feature, or run VirtualBox with the --paravirt=none command line option, though performance may suffer.
I have an AMD CPU – is the fix different?
No, the same fixes apply. However, on AMD systems, ensure that SVM (Secure Virtual Machine) is enabled in the BIOS, as it is often disabled by default on older motherboards.
Will reinstalling VirtualBox delete my VMs?
No, reinstalling VirtualBox does not delete your virtual machines. They are stored in separate folders (usually under C:\Users\YourName\VirtualBox VMs). You can safely uninstall and reinstall VirtualBox, then add your VMs back via Machine → Add.
What if none of these steps work?
If you still get E_FAIL, try creating a new VM and attaching your existing virtual hard disk to it. This often bypasses corrupted settings. Also, check the VirtualBox logs (in the VM’s folder, Logs\VBoxHardening.log) for more clues, or ask on the official VirtualBox forums with your log file.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Shockwave Flash Crashes in Firefox
- Fix Microsoft Account Apps Notification in Windows 10
- Printer Problems With macOS Catalina: Fixes
- CSS min(), max(), clamp(): How to Use Them
- How to Partition an External Hard Drive
- How to Transfer PicsArt Stickers from Android to PC