本文共 893 字,大约阅读时间需要 2 分钟。
在使用Vagrant搭建虚拟机时,遇到 macOS 10.15.6 更新后启动虚拟机报错的问题。以下是详细的解决步骤:
启动虚拟机时,出现以下错误:
VBoxManage: error: Failed to create the VirtualBox object!VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
检查Vagrant和VirtualBox版本
卸载旧版本
vagrant destroy -p
清理旧的Vagrant环境
~/.vagrant
文件夹:rm -rf ~/.vagrant
安装最新版本
vagrant init
根据指引下载并安装最新支持的VirtualBox版本。
重新安装VirtualBox
验证安装
vagrant up
sudo
提升权限。通过以上步骤,通常可以解决版本不兼容的问题。遇到类似问题时,及时检查和更新软件版本是关键。
转载地址:http://oqufk.baihongyu.com/