かべぎわブログ

ブログです

error: Call to WHvSetupPartition failed: ERROR_SUCCESSというエラーでVirtualBoxが起動しなくなったときの対処法

概要

Vagrantが以下のようなエラーで起動しなくなってしまった
(以下のログはvagrant reloadしたときのものだけれど)

PS C:\Users\takak\vagrant\centos7> vagrant reload
==> default: Checking if box 'centos/7' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "6358bb91-a512-4407-b3ff-a891b2a55645", "--type", "headless"]

Stderr: VBoxManage.exe: error: Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

対処法

管理者権限でPowershellまたはコマンドプロンプトを起動し、以下のコマンドを実行してあげる。

bcdedit /set hypervisorlaunchtype off

そしてホストOSを再起動してあげる。 これで起動するはず。


Vagrant入門ガイド

Vagrant入門ガイド