How to Fix Error 0x80004005

Many users encounter E_FAIL 0x80004005 error from MachineWrap, MediumWrap and other components when starting and in some cases before starting a virtual machine in VirtualBox, regardless of the operating system installed on it (Windows 10 and earlier, Linux and others).

This tutorial details the most common causes of error 0x80004005 in VirtualBox virtual machines and ways to fix the problem. Some of the readers may find the article VirtualBox virtual machines for beginners useful.

 

There are several reasons for the E_FAIL 0x80004005 error in VirtualBox, let’s start with some of the simplest ones that are very easy to fix:

Changing the path to the location with the virtual machine files due to changing the drive letter, renaming the folder containing the virtual machine files, renaming the user folder (if the virtual machine folders were inside it, as it usually is by default). In this case, when you start VirtualBox (assuming the VB manager was not started before renaming) you will see the “Inaccessible” mark next to the virtual machine name and, if selected, information about this error as shown in the image below. Possible solutions: return the original location of the virtual machine (the path will appear at the top along with the File not found message), or delete this virtual machine in the manager and import it from the new location (via the Machine – Add menu).
Deleting virtual disk files previously used in a virtual machine. Solution – go to the virtual machine configuration and remove the deleted virtual disk from the “Storage” section.
If you have connected a physical disk, flash drive or other drive to VirtualBox virtual machine (as in this case: How to connect a physical USB flash drive to VirtualBox virtual machine), you may get the same 0x error code if that physical drive is missing, or if you run VirtualBox administrator not as administrator, Solutions: reconnect the drive; remove the drive in virtual machine settings under “Media”; run VirtualBox as administrator.

Simple cases of occurrence of the error in question have been diagnosed above, but another variant is possible: a virtual machine is running as usual, with no recent changes made, and yet the error E_FAIL 0x80004005 appears. This is usually caused by problems with the .vbox, .vbox-tmp and .vbox-prev configuration files found in the folder with each VirtualBox virtual machine.

Let’s say our virtual machine is called Win10. So, the essence would be as follows: when we start a virtual machine session, VirtualBox renames the Win10.vbox file to Win10.vbox-prev and, at the same time, creates a Win10.vbox-tmp file in the same folder. The latter file will be used as the actual configuration file for this session, while .vbox-prev is saved as a backup. When the session ends, Win10.vbox-tmp is renamed to Win10.vbox. On the next boot, everything is repeated.

However, if for some reason the process is interrupted at one of the steps, the necessary .vbox file may not be created, causing an error the next time the virtual machine is started.

Fix the E_FAIL 0x80004005 error in such a case, perform the following steps:

Close VirtualBox manager completely, check the processes just in case VirtualBox.exe и VBoxSVC.exe in Task Manager (close them if they are running).
Go to the folder with your virtual machine. Standard path: C:|Virtualbox VMsVirtual_machine_name.
In case there is no file in the specified folder virtual_machine_name.vboxbut there are .vbox-tmp or .vbox-prev filesSave these files somewhere on your computer just in case.
Change .vbox-prev file extension to .vbox
Run the VirtualBox manager and check if the virtual machine starts now.
If that did not work, you can also try instead of .vbox-prev in a similar way, rename the file .vbox-tmp.
If the .vbox file was already present in the folder, you can try moving it to another location and then try steps 4-6.
Earlier versions of VirtualBox used .xml files instead of .vbox, but the essence of the solution remains the same for those as well.

As a last resort, if none of the above files are in the location, you can set up a new VirtualBox virtual machine and connect an existing virtual disk to it.
Other possible causes of the error

In case the above options did not help, below are other possible causes that can cause the same problem when running a virtual machine:

Sometimes it also works to fix the 0x80004005 error to start the virtual machine not from the VirtualBox manager, but, after closing it, by simply running the .vbox file from the virtual machine folder.

You may also like:

managementclass

List Services Using C# Managementclass: WMI Example

Are you ready to delve into the world of Windows Management Instrumentation (WMI) using C#? WMI opens up a plethora of possibilities for accessing system resources and retrieving vital information about your Windows environment. In this comprehensive guide, we’ll walk through the process of retrieving all the services running on your system using the powerful…
Fix Your Windows License Will Expire Soon Error

How to Fix Your Windows License Will Expire Soon Error

Is your Windows 10 PC or Notebook showing ‘Your Windows license will expire soon; you need to activate Windows in PC setting‘ error message? Then this report is for you, here learn the complete details regarding the mistake Your Windows license will expire shortly mistake in Windows 10 and how to repair it.  Windows 10…

IPX7 vs IP67: Which Is Better?

We all know that, for the most part, all devices have an IP rating. Do you have any idea what this IP rating means? If this is something new to you, you’ve come to the correct place since we’ll talk about it here. What exactly is an IP rating? An IP rating, also known as…
convert swf to mp4

How to Convert SWF to MP4 Using the VLC Media Player

SWF is a file extension for a Shockwave Flash file format. SWF files can contain video and vector based animations and sound and are designed for efficient delivery over the web.  SWF files can be viewed in a web browser using the Flash plugin or in the computer using VLC player or any other flash…
GameRanger

No Response From Gameranger Server Error Fix

GameRanger is a free great tool that can help you to play games on your Windows computer. GameRanger can offer you to play more than 700 games online with your friends/colleagues all other the world. This great tool can offer you huge advantages like gamer profile, friends list, instant talk chats in-game, voice communications between…

How To Download JW Player Videos?

JW Player is a popular video player used by many websites to stream video content. It is not directly possible to download videos that are played using JW Player, as the player does not have a built-in download option. However, there are some workarounds that you can try to download JW Player videos. A good…

Connection failed: Too many connections

This means that the maximum number of clients that may be connected to the server has been reached. Either the client will have to wait for another client to log off, or the administrator will have to increase the maximum number of connections allowed. How do I fix too many connections error? The MySQL “Too…

Is a multi line comment in C ?

Multi-line comment Represented as /* any_text */ start with forward slash and asterisk (/*) and end with asterisk and forward slash (*/). It is used to denote multi-line comment. It can apply comment to more than a single line. It is referred to as C-Style comment as it was introduced in C programming. What is…

What does like %% mean in SQL?

The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards often used in conjunction with the LIKE operator: The percent sign (%) represents zero, one, or multiple characters. The underscore sign (_) represents one, single character. What does %s do in SQL? %s…

Is Excel and SQL enough for data analyst?

Most data analysts learn both Excel and SQL. They use SQL to work in businesses and communicate with large databases and bust out Excel to solve quicker data analysis problems. To become a strong data analyst, it’s recommended you learn both. Is SQL enough to get data analyst job? Since almost all data analysts will…