博客
关于我
mac更新后 homestead 无法使用
阅读量:797 次
发布时间:2023-02-06

本文共 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:确认当前版本是否为支持版本。访问 Vagrant官网 查看最新版本,并确保与VirtualBox兼容。
    • VirtualBox:检查安装的版本是否为最新版本。访问 VirtualBox官网 下载最新版本。
  • 卸载旧版本

    • 卸载Vagrant
      vagrant destroy -p
    • 卸载VirtualBox:通过官网卸载脚本确保彻底卸载所有相关文件。
  • 清理旧的Vagrant环境

    • 移除 ~/.vagrant 文件夹:
      rm -rf ~/.vagrant
  • 安装最新版本

    • Vagrant
      vagrant init

      根据指引下载并安装最新支持的VirtualBox版本。

  • 重新安装VirtualBox

    • 下载并安装最新版本的VirtualBox。
    • 在系统偏好设置中添加VirtualBox应用程序。
  • 验证安装

    • 启动Vagrant,并尝试启动虚拟机:
      vagrant up
  • 注意事项

    • 系统更新:在系统更新前,备份虚拟机状态,确保不会丢失数据。
    • 权限问题:确保在启动虚拟机前,用户拥有足够的权限。必要时,使用 sudo 提升权限。

    通过以上步骤,通常可以解决版本不兼容的问题。遇到类似问题时,及时检查和更新软件版本是关键。

    转载地址:http://oqufk.baihongyu.com/

    你可能感兴趣的文章
    No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
    查看>>
    Node JS: < 一> 初识Node JS
    查看>>
    Node-RED中实现HTML表单提交和获取提交的内容
    查看>>
    node.js 怎么新建一个站点端口
    查看>>
    Node.js 文件系统的各种用法和常见场景
    查看>>
    node.js 配置首页打开页面
    查看>>
    node.js+react写的一个登录注册 demo测试
    查看>>
    Node.js中环境变量process.env详解
    查看>>
    Node.js安装与配置指南:轻松启航您的JavaScript服务器之旅
    查看>>
    Node.js的循环与异步问题
    查看>>
    nodejs libararies
    查看>>
    nodejs 运行CMD命令
    查看>>
    nodejs-mime类型
    查看>>
    nodejs中Express 路由统一设置缓存的小技巧
    查看>>
    NodeJs学习笔记001--npm换源
    查看>>
    Node入门之创建第一个HelloNode
    查看>>
    NOIp2005 过河
    查看>>
    NOPI读取Excel
    查看>>
    NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
    查看>>
    npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
    查看>>