gpt4 book ai didi

terminal - 尝试启动 Virtual Box 时如何修复这些错误?

转载 作者:行者123 更新时间:2023-12-05 07:19:05 28 4
gpt4 key购买 nike

我在我的终端上命令“vagrant up”,然后登录我的虚拟 CentoOS7 服务器,我得到了这些错误。

就在我尝试启动 vagrant 之前,我正在我的 vagrant 上自定义 CentOS7 服务器上的 vim 编辑器。然后,我坐了一些重要的文件。也许它导致了这个错误......我在网上发现了类似的问题,但无法解决。

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "6f113832-832d-4fd6-ba87-af003b3dddce", "--type", "headless"]

Stderr: VBoxManage: error: Could not open the medium '/Users/yamadaasuma/VirtualBox VMs/MyCentOS_default_1551371079969_97354/centos-6.8-x86_64-disk001.vmdk'.
VBoxManage: error: VD: error VERR_FILE_NOT_FOUND opening image file '/Users/yamadaasuma/VirtualBox VMs/MyCentOS_default_1551371079969_97354/centos-6.8-x86_64-disk001.vmdk' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium

这些是来 self 的 Virtual Box 的日志。请任何人帮助我。

00:00:00.040456 VirtualBox VM 6.0.12 r133076 darwin.amd64 (Sep  3 2019 12:00:40) release log
00:00:00.040456 Log opened 2019-09-20T13:35:04.466754000Z
00:00:00.040456 Build Type: release
00:00:00.040456 OS Product: Darwin
00:00:00.040456 OS Release: 18.6.0
00:00:00.040456 OS Version: Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
00:00:00.040456 DMI Product Name: MacBookAir7,2
00:00:00.040456 DMI Product Version: 1.0
00:00:00.040456 Host RAM: 8192MB (8.0GB) total, 3483MB (3.4GB) available
00:00:00.040456 Executable: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless
00:00:00.040456 Process ID: 64193
00:00:00.040456 Package type: DARWIN_64BITS_GENERIC
00:00:00.043166 Installed Extension Packs:
00:00:00.043208 None installed!
00:00:00.045230 Console: Machine state changed to 'Starting'
00:00:00.050801 Console: Machine state changed to 'PoweredOff'
00:00:00.061957 Power up failed (vrc=VINF_SUCCESS, rc=NS_ERROR_FAILURE (0X80004005))

最佳答案

显示错误是因为 vagrant 找不到与项目虚拟机关联的虚拟框文件。可能是不小心删了。

为了解决该问题,请打开 Virtual Box GUI,然后右键单击与该问题关联的虚拟框,然后单击删除

这将从 Virtual Box 中删除关联。

现在你可以运行 vagrant up --provision 它会为你重新制作盒子。

关于terminal - 尝试启动 Virtual Box 时如何修复这些错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58030300/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com