gpt4 book ai didi

linux - 关于如何在Windows上使用VirtualBox和Vagrant搭建Ubuntu虚拟环境

转载 作者:太空宇宙 更新时间:2023-11-04 04:53:48 25 4
gpt4 key购买 nike

我正在使用 VirtualBox 和 Vagrant 在 Windows 10 上构建 Ubuntu 虚拟环境。

当我使用 Windows PowerShell 执行“vagrant up”时,出现以下错误。

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

Command: ["startvm", "063b8a06-75ba-46cd-a729-703faf0d4de2", "--type", "headless"]

Stderr: VBoxManage.exe: error: The virtual machine 'ubuntu64_default_1491745500976_24277' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\(username)\VirtualBox VMs\ubuntu64_default_1491745500976_24277\Logs\VBoxHardening.log' VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

直到几个月前,我才能毫无问题地使用 VirtualBox 和 Vagrant。

然而,这一次,却出现了上述错误。

不知道是不是Windows系统更新的原因,或者是什么原因。

卸载 VirtualBox 和 Vagrant 并尝试其他版本并没有解决问题。

有谁知道怎么解决吗?

这是错误语句中显示的详细日志。

https://github.com/pekochun/git-study/blob/master/VBoxHardening.log

最佳答案

查看日志,致命一击看起来是:

1518.1be0: Error -104 in supR3HardenedWinReSpawn! (enmWhat=5)
1518.1be0: Error relaunching VirtualBox VM process: 5

现在 google fu 带我去 https://forums.virtualbox.org/viewtopic.php?f=6&t=82277以及相关帖子表明首次重新启动后可能会发生此问题。

由于错误 -104 看起来意味着 VERR_INVALID_NAME,我建议遵循这些说明。除此之外,最好还是使用 virtualbox 论坛。

关于linux - 关于如何在Windows上使用VirtualBox和Vagrant搭建Ubuntu虚拟环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52269258/

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