Windows / Vagrant:执行`VBoxManage`时出错,

时间:2018-04-17 03:25:43

标签: vagrant virtualbox

我在Macbook上打包的流浪盒文件。我将文件传输到Surface Book上的Windows并获得一些权限错误。

为了解决这个问题,其他人建议启用虚拟化并禁用Hyper-V,我已经这样做了。在我尝试这个之后,我仍然遇到同样的问题,我的VM无法上电。

另请参阅我附带的屏幕截图。 enter image description here

jacky@DESKTOP-F0E0NKI MINGW64 ~/vm
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> 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: 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", "47187f36-41f2-4941-9f1d-3930bc011f0f", "--type", "headless"]

Stderr: VBoxManage.exe: error: RawFile#0 failed to create the raw output file /Users/yuh8/vm/ubuntu-xenial-16.04-cloudimg-console.log (VERR_PATH_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

jacky@DESKTOP-F0E0NKI MINGW64 ~/vm
$

1 个答案:

答案 0 :(得分:1)

  1. 请勿删除.vagrant,请始终使用vagrant destroyvagrant destroy -f从头开始。
  2. 禁用HyperV。
  3. 重新安装Virtualbox(修复安装)。
  4. 重新安装Vagrant(修复安装)。
  5. 转到C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv→右键单击VBoxDrv.inf→选择安装
  6. 执行sc start vboxdrv
  7. 执行vagrant up