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

问题描述 投票:2回答:1

我在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
$
vagrant virtualbox
1个回答
0
投票
  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
© www.soinside.com 2019 - 2024. All rights reserved.