博客
关于我
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 Datastore Session bound to thread, and configuration does not allow creation of non-transactional
    查看>>
    No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
    查看>>
    No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
    查看>>
    No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
    查看>>
    No module named cv2
    查看>>
    No module named tensorboard.main在安装tensorboardX的时候遇到的问题
    查看>>
    No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
    查看>>
    No new migrations found. Your system is up-to-date.
    查看>>
    No qualifying bean of type XXX found for dependency XXX.
    查看>>
    No resource identifier found for attribute 'srcCompat' in package的解决办法
    查看>>
    No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
    查看>>
    NO.23 ZenTaoPHP目录结构
    查看>>
    NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
    查看>>
    Node JS: < 一> 初识Node JS
    查看>>
    Node-RED中使用JSON数据建立web网站
    查看>>
    Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
    查看>>
    Node-RED中使用Notification元件显示警告讯息框(温度过高提示)
    查看>>
    Node-RED中实现HTML表单提交和获取提交的内容
    查看>>
    Node.js 实现类似于.php,.jsp的服务器页面技术,自动路由
    查看>>
    node.js 怎么新建一个站点端口
    查看>>