VirtualBoxは、仮想マシン セッションを開くことができない場合、「E_FAIL (0x80004005)」エラー コードを表示します。このエラーは、VirtualBoxアプリ、構成ファイル、またはハードウェア関連の問題が原因である可能性があります。
このチュートリアルでは、 Windows(Windows)デバイス
でのE_FAIL (0x80004005) VirtualBoxエラーの考えられる原因とトラブルシューティングの解決策について説明します。

1.VirtualBoxを更新する
一部の Windows ユーザーは、 (Some Windows users)VirtualBox 6の最新ビルドをインストールすることでこのエラーを解決しました。開発者の Web サイトにアクセスし、 (developer’s website)WindowsホストVirtualBoxセットアップ ファイル
をダウンロードします。(VirtualBox)

アプリ内でVirtualBox(VirtualBox)を直接更新することもできます。VirtualBox Managerアプリを開き、メニュー バーで[ファイル] を選択し、 [(File)更新の(Updates)確認(Check)] を選択します。

提供されたリンクを選択して、 VirtualBox(VirtualBox)の最新バージョンの実行可能 (.exe) ファイルをダウンロードします。

2. Windows ハイパーバイザー(Windows Hypervisor)( Hyper-V )
を再起動します。
Hyper-Vは、コンピューターで複数のオペレーティング システムを仮想マシンとして実行できるようにする Windows の機能です。Hyper-Vで不具合が発生している
場合、 VirtualBoxの仮想マシンにアクセスできない場合があります。
Windowsで(Windows)Hyper-Vを再起動すると(以下の手順を参照) 、 VirtualBoxが仮想マシン セッションを実行できない問題を修正できます。
- [スタート(Start)] メニューを開き、検索バーに「cmd」と入力して、コマンド プロンプト(Command Prompt)アプリ
の下にある [管理者として実行] を選択します。(Run)

- (Paste)コマンド プロンプト(Command Prompt)コンソールにbcdedit /set hypervisorlaunchtype off を貼り付けて、 Enterを押します。

このコマンドを実行すると、コンピューターの Hyper-V(Hyper-V)がオフになります。コンピューターに複数のオペレーティング システムがインストールされている場合は、次のコマンドを実行して、アクティブ/現在の OS の
Hyper-Vを無効にします。(Hyper-V)
(Paste)コマンド プロンプト(Command Prompt)コンソールにbcdedit /set {current} hypervisorlaunchtype off を貼り付け、 Enterを押します。

「この操作は正常に完了しました」というメッセージが表示されたら、コンピューターを再起動します。
- 管理者権限でコマンド プロンプト(Command Prompt)を開き、以下のコマンドを実行してHyper-Vを再度有効にします。
bcdedit /set hypervisorlaunchtype auto

コマンドプロンプト(Command Prompt)に「操作が正常に完了しました」というメッセージが表示されたら、コンピューターを再起動します。VirtualBoxを起動し、仮想マシンを開いてみます。
3.保存された状態を破棄する
(VirtualBox)仮想セッションの保存状態(virtual session’s saved state)に問題がある場合、 VirtualBoxはE_FAIL (0x80004005) エラーを表示することもあります。そのため、セッションを復元できない場合は、保存された状態を破棄して、仮想マシンを再度開きます。
マシンの保存された状態を破棄すると、マシンをシャットダウンするのと同じ効果があります。VirtualBoxを開き、仮想マシンを右クリックして [保存された状態を破棄] を選択し((VirtualBox)または(Discard Saved State)Ctrl Ctrl + Jを押します)、セッションを再起動します。

[Discard Saved State] がグレー表示されている場合、つまり、仮想マシンに保存された状態がない場合は、以下のトラブルシューティング ソリューションを試してください。
4.VirtualBox構成ファイルの名前を変更する(VirtualBox Configuration Files)
(Force-quitting VirtualBox)最初に仮想マシンを閉じずにVirtualBox を強制終了すると、 E_FAIL (0x80004005) エラーが発生する可能性があります。これがどのように、そしてなぜ起こるのかを説明します。
VirtualBoxに「Linux PC」仮想マシンがあるとします。仮想マシンを起動すると、VirtualBoxはマシンのファイルの名前を「Linux PC.vbox」から「Linux PC.vbox-prev 」に変更します。次に、 VirtualBox(VirtualBox)は、仮想マシン ファイルの新しい/一時的なコピー (「Linux PC.vbox-tmp」) をアクティブなセッション用に作成して使用します。
仮想マシン セッションを終了すると、VirtualBoxは一時ファイル (つまり、Linux PC.vbox-tmp ) の名前をLinux PC.vboxに変更します。「Linux PC.vbox -prev」ファイルはバックアップとして機能します。VirtualBox は、(VirtualBox)新しいセッションを開始するたびにファイルを上書きします。

仮想マシンを閉じずにVirtualBox(VirtualBox)を終了すると、ファイル変換プロセスが中断される可能性があります。これにより、次に仮想マシンを起動しようとしたとき
に「結果コード(Result Code): E_FAIL (0x80004005)」エラーが表示されます。(E_FAIL)
PC のVirtualBoxフォルダーを開き、仮想マシン用の .vbox ファイルがあるかどうかを確認します。フォルダー内に一時 (.vbox-tmp) ファイルとバックアップ (.vbox-prev) ファイルしか見つからない場合は、仮想マシンの実行中に
VirtualBoxを強制終了した可能性があります。(VirtualBox)
バックアップ ファイルの名前を変更すると、問題が修正され、仮想マシンが再び実行されるようになります。VirtualBox Managerアプリケーションを閉じ、以下の手順に従って完了させます。
- File Explorerで VirtualBox のファイル マネージャーを開きます。ローカル ディスク (C:) フォルダーを開き、Usersフォルダーをダブルクリックして、コンピューターまたはアカウント名を選択します。

- VirtualBox VMsフォルダーを開き、Machinesを選択して、仮想マシンのフォルダーをダブルクリックします。

- 両方のファイル (.vbox-tmp と .vbox-prev) をコンピューターのどこかにコピーまたはバックアップします。一時ファイルのファイル拡張子を .vbox-prev から .vbox に変更します。

- (Select OK)警告プロンプトで[OK] を選択し、 VirtualBoxで仮想マシンを開きます。

- エラーが続く場合は、 VirtualBox(Close VirtualBox)を閉じて、.vbox ファイルを .vbox-prev に戻します。その後(Afterward)、.vbox-temp ファイルの名前を .vbox に変更し、VirtualBoxが仮想マシンを実行するようになったかどうかを確認します。

注: VirtualBoxの古いバージョン (v3.2 以前) は、仮想マシンの構成ファイルを.vbox ではなく(.vbox).xml形式で保存します。仮想マシン フォルダにこの拡張子のファイルが見つかった場合は、上記の手順に従って名前を変更します。つまり、.xml -prev または.xml -tmp 形式のファイルを.xmlに変更します。
5. BIOS 設定で仮想化を有効にする(BIOS Settings)
仮想マシンを実行するには、コンピューターでハードウェアまたはCPUの仮想化を有効にする必要があります。VirtualBoxのエラーの詳細に「AMD-v」または「VT-x」キーワードが
含まれている場合、PC のハードウェア仮想化が無効になっている可能性があります。
次の手順に従って、コンピューターのハードウェア仮想化の状態を確認します。
- Settings > System [Recovery > Advancedスタートアップ]に移動し、 [今すぐ再起動](Restart)を選択します。

Windows 10では、Settings > UpdatesとSecurity > Recovery] に進み、[高度なスタートアップ] セクションで [今すぐ
再起動(Restart)する]を選択します。

- トラブルシューティングに進みます。 > 詳細オプション。> UEFI Firmware Settingsを選択し、再起動(Restart)を選択して、PC のUEFIまたはBIOS設定で起動します。

- BIOS設定で仮想化を有効にする方法は、PC の製造元またはモデルによって異なります。Lenovoデバイスの場合は、[構成](Configuration)セクションに移動し、 Intel Virtual Technologyを[有効](Enabled)に設定します。

HP コンピューターの [構成]セクションに移動し、(Configuration)仮想化テクノロジ(Virtualization Technology)を有効にしたままにします。このMicrosoft サポート ドキュメント(Microsoft Support document)には、すべての PC メーカーおよびデバイスで仮想化を有効にするための手順が記載されています。
- 「Exit」セクションに進み、Exit Saving Changesを選択し、Yesを選択して(Yes)Windowsを起動します。

(VirtualBox)BIOS/UEFIVirtualBoxは仮想マシンを実行するようになります。
6.VirtualBox を再インストールする
トラブルシューティングを行っても問題が解決しない場合は、VirtualBoxをアンインストールします。その後(Afterward)、コンピューターを再起動し、最新のVirtualBoxバージョンをインストールします。VirtualBoxを再インストールすると、このマイクロソフト コミュニティ スレッドで一部の(Microsoft Community thread)Windowsユーザーの問題が修正されました。
[スタート(Start)] メニューの検索で「virtualbox 」と入力し、 Oracle VM VirtualBoxアプリ
の下にある [アンインストール] を選択して、アンインストール プロンプトに従います。(Uninstall)

(Contact Oracle Support)VirtualBoxを再インストールしても「Result Code: E_FAIL (0x80004005)」エラーが続く場合は、 Oracle サポートまたは PC の製造元にお問い合わせください。
6 Ways to Fix VirtualBox Result Code: E_FAIL (0x80004005) Error in Windows
VirtualBox displays the “E_FAIL (0x80004005)” error code when it can’t open a virtual machine session. The error could be due to problems with the VirtualBox app, configuration files, or hardware-related issues.
This tutorial highlights probable causes and troubleshooting solutions for the E_FAIL (0x80004005) VirtualBox error on Windows devices.

1. Update VirtualBox
Some Windows users resolved this error by installing the latest build of VirtualBox 6. Head to the developer’s website and download the Windows hosts VirtualBox setup file.

You can also update VirtualBox directly within the app. Open the VirtualBox Manager app, select File on the menu bar, and select Check for Updates.

Select the provided link to download the executable (.exe) file of the latest version of VirtualBox.

2. Restart the Windows Hypervisor (Hyper-V)
Hyper-V is a Windows feature that lets your computer run multiple operating systems as virtual machines. You may be unable to access virtual machines in VirtualBox if Hyper-V is experiencing a glitch.
Restarting Hyper-V in Windows (see steps below) can fix issues preventing VirtualBox from running virtual machine sessions.
- Open the Start menu, type cmd in the search bar, and select Run as administrator below the Command Prompt app.

- Paste bcdedit /set hypervisorlaunchtype off in the Command Prompt console and press Enter.

Running this command turns off Hyper-V on your computer. If you have multiple operating systems installed on your computer, run the command below to disable Hyper-V for the active/current OS.
Paste bcdedit /set {current} hypervisorlaunchtype off in the Command Prompt console and press Enter.

Restart your computer when you get a “This operation completed successfully” message.
- Open Command Prompt with administrative privileges and run the command below to re-enable Hyper-V.
bcdedit /set hypervisorlaunchtype auto

Restart your computer again when Command Prompt displays a “The operation completed successfully” message. Launch VirtualBox and try opening the virtual machine.
3. Discard Saved State
VirtualBox may also display the E_FAIL (0x80004005) error if there’s a problem with the virtual session’s saved state. So, if you cannot restore a session, discard the saved state and reopen the virtual machine.
Discarding a machine’s saved state has the same effect as shutting it down. Open VirtualBox, right-click the virtual machine, select Discard Saved State (or press Ctrl + J), and restart the session.

Try the troubleshooting solutions below if “Discard Saved State” is greyed out—i.e., the virtual machine has no saved state.
4. Rename VirtualBox Configuration Files
Force-quitting VirtualBox without first closing a virtual machine can trigger the E_FAIL (0x80004005) error. We’ll explain how and why this happens.
Let’s assume you have a “Linux PC” virtual machine in VirtualBox. When you launch the virtual machine, VirtualBox renames the machine’s file from “Linux PC.vbox” to “Linux PC.vbox-prev.” VirtualBox then creates and uses a new/temporary copy of the virtual machine file—”Linux PC.vbox-tmp”—for the active session.
When you end the virtual machine session, VirtualBox renames the temporary file (i.e., Linux PC.vbox-tmp) to Linux PC.vbox. The “Linux PC.vbox-prev” file serves as a backup—VirtualBox overwrites the file every time you start a new session.

Terminating VirtualBox without closing your virtual machine can disrupt the file conversion process. That’ll prompt the “Result Code: E_FAIL (0x80004005)” error the next time you try to launch the virtual machine.
Open your PC’s VirtualBox folder and check if there’s a .vbox file for your virtual machine. If you only find temporary (.vbox-tmp) and backup (.vbox-prev) files in the folder, you probably force-closed VirtualBox while running a virtual machine.
Renaming the backup file can fix the problem and get your virtual machine running again. Close the VirtualBox Manager application and follow the steps below to get it done.
- Open the VirtualBox’s file manager in File Explorer. Open your local disk (C:) folder, double-click the Users folder, and select your computer or account name.

- Open the VirtualBox VMs folder, select Machines, and double-click the virtual machine’s folder.

- Copy or backup both files (.vbox-tmp and .vbox-prev) somewhere on your computer. Change the file extension of the temporary file from .vbox-prev to .vbox.

- Select OK on the warning prompt and open the virtual machine in VirtualBox.

- Close VirtualBox and change the .vbox file back to .vbox-prev if the error persists. Afterward, rename the .vbox-temp file to .vbox and check if VirtualBox now runs the virtual machine.

Note: Older VirtualBox versions (v3.2 and older) store virtual machines configuration files in .xml format—not .vbox. If you find files with this extension in your virtual machine folder, rename them following the steps above. That means you’ll change files in .xml-prev or .xml-tmp format to .xml.
5. Enable Virtualization in BIOS Settings
You must have hardware or CPU virtualization enabled on your computer to run virtual machines. If VirtualBox includes the “AMD-v” or “VT-x” keywords in the error details, your PC’s hardware virtualization is likely disabled.
Follow the step below to verify your computer’s hardware virtualization status.
- Go to Settings > System > Recovery > Advanced startup and select Restart now.

In Windows 10, head to Settings > Updates & Security > Recovery and select Restart now in the “Advanced startup” section.

- Head to Troubleshoot.> Advanced options.> UEFI Firmware Settings and select Restart to boot into your PC’s UEFI or BIOS settings.

- How you enable virtualization in the BIOS settings will depend on your PC manufacturer or model. For Lenovo devices, head to the Configuration section and set Intel Virtual Technology to Enabled.

Head to the Configuration section on HP computers and keep Virtualization Technology enabled. This Microsoft Support document has instructions for enabling virtualization for all PC manufacturers and devices.
- Head to the “Exit” section, select Exit Saving Changes, and select Yes to boot into Windows.

VirtualBox should now run the virtual machine after enabling virtualization in your PC’s BIOS/UEFI settings.
6. Reinstall VirtualBox
Uninstall VirtualBox if none of the troubleshooting tricks resolve the problem. Afterward, reboot your computer and install the latest VirtualBox version. Reinstalling VirtualBox fixed the problem for some Windows users in this Microsoft Community thread.
Type virtualbox in the Start menu search, select Uninstall below the Oracle VM VirtualBox app and follow the uninstallation prompt.

Contact Oracle Support or your PC manufacturer if the “Result Code: E_FAIL (0x80004005)” error persists despite reinstalling VirtualBox.