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

Terminal 如何在尝试启动Virtual Box时修复这些错误?,terminal,vagrant,virtualbox,centos7,Terminal,Vagrant,Virtualbox,Centos7,我在我的终端上命令“vagrant up”,登录我的虚拟CentoOS7服务器,然后,我得到了这些错误 就在我尝试启动vagrant之前,我正在我的vagrant上定制CentOS7服务器上的vim编辑器。然后,我坐在一些重要的文件。 可能是它导致了这个错误。。。 我在网上发现了类似的问题,但我无法解决 There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox

我在我的终端上命令“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
这些是我虚拟盒子里的日志。 任何人都请帮助我

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))

我将尝试以管理员身份在CMD中运行以下命令:

sc start vboxdrv
根据本论坛帖子:

VirtualBox的完全重新安装修复了某些用户的问题

试试跑步

流浪者重新装载——规定

然后

vagrant up


这张备忘单能帮你更多的忙

它应该能解决这个问题

VBoxManage startvm "6f113832-832d-4fd6-ba87-af003b3dddce" --type headless

显示错误是因为vagrant找不到与项目的虚拟机关联的虚拟盒文件。可能是偶然删除的

要解决此问题,请打开虚拟盒GUI,然后右键单击与此问题关联的虚拟盒,然后单击
删除

这将从虚拟盒中删除关联

现在,您可以运行
vagrant up--provision
,它将为您重新制作盒子