Vagrant:vagrant up卡死

1. 环境

  • OS:macOS 10.15.7
  • Vagrant:Vagrant 2.2.14
  • VirtualBox:6.1.18 r142142
    • box:

      • CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box

2. 错误日志

vagrant up日志:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos8'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: demo_default_1612023130938_87148
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...default: Adapter 1: nat
==> default: Forwarding ports...default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...default: SSH address: 127.0.0.1:2222default: SSH username: vagrantdefault: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

VirtualBox日志:

# VirtualBox打开虚拟机查看虚拟机情况显示
virtual box vagrant random: crng init done

3. 原因

查找了一些资料也没有确定到底是什么问题导致的。

4. 解决办法

下面两种是独立的解决方案,没有上下关系

4.1. 从VirtualBox UI启动

  1. 从VirtualBox UI启动
  2. 使用vagrant halt停止虚拟机
  3. 接下来就可以使用vagrant up正常启动了

4.2. 更新box

试了下将CentOS7替换为CentOS8最新版本不存在这个问题,测试通过的CentOS-8-Vagrant-8.3.2011-20201204.2.x86_64.vagrant-virtualbox.box。

Vagrant:vagrant up卡死相关推荐

  1. vagrant --- vagrant部署环境

    vagrant --- vagrant部署环境 你是否也想在自己的笔记本上搭个集群做一系列的练习,你是不是经常为开发环境没问题的代码在测试环境下都出现一堆问题而苦恼,你是不是还因为虚拟机太占用笔记本资 ...

  2. [vagrant]vagrant centos静态ip设置

    vagrant 中使用的是public_network,而工作网络中,由于桥接了很多路由器,导致ip段位和本机的ip段位不在同一个局域网中 ifconfig之后的结果 [root@localhost ...

  3. 使用 Vagrant 在不同的操作系统上测试你的脚本

    Vagrant 可以帮助你在你的电脑上运行其他操作系统,这意味着你可以构建.测试.疯狂折腾而不毁坏你的系统. 我使用 Vagrant 已经很长时间了.我使用几种 DevOps 工具,把它们全安装在一个 ...

  4. vagrant mac的一些坑

    环境介绍: centtos6.5 vagrant:2.0.1 VirtualBox:5.1.30 1.添加box之后,设置了共享的目录之后,vagrant up 会出现以下的问题 Vagrant wa ...

  5. 使用 VirtualBox + Vagrant + 宝塔 Linux 面板搭建本地虚拟开发环境

    最近在win系统下使用phpstudy 或者宝塔win版搭建php开发环境,运行起来都有些坑,了解到laravel这个框架之后,终于知道有个统一理想环境,那就是VirtualBox + Vagrant ...

  6. vagrant 安装使用 win7

    第一步.安装VirtualBox和vagrant 下载地址: https://www.virtualbox.org/wiki/Downloads http://downloads.vagrantup. ...

  7. vagrant 基本命令讲解

    https://www.vagrantup.com/,  下载对应系统的软件 安装完毕vagrant 打开命令行, 输入vagrant --help  或者 vagrant -h 查看帮助文档 $ v ...

  8. ‘vagrant up’ fails to mount linked directory /vagrant

    偶然出现错误: Failed to mount folders in Linux guest. This is usually because the "vboxsf" file ...

  9. Vagrant搭建可移动的PHP开发环境

    准备 开发所需工具: Vagrant Oneinstack Virtualbox Vagrant box 系统环境:macOS Sierra 10.12.5 搭建系统:CentOS 7 搭建环境:On ...

  10. windows下搭建Vagrant+Virtualbox环境

    对于开发人员来说,Vagrant就是一个提供标准化开发环境的工具.通过Vagrant: 使每个开发人员电脑上的代码运行环境一致,再也不会出现"在我电脑上运行起来明明没有问题的"这样 ...

最新文章

  1. android 自定义banner,Android项目 引入Banner开源库(轮播图)
  2. 微信小程序使用阿里图标
  3. Unable to find the ncurses libraries的解决办法
  4. 权限验证框架Shiro
  5. centos连接xrdp桌面黑屏_小鹅通|视频直播桌面共享模式|视频直播OBS使用教程
  6. cobbler api接口开发测试实例
  7. 调用shell jenkins不能自动结束
  8. 浅谈Unity中的优化
  9. 朱敏:美国往事---硅谷第一代中国大陆创业家的20年
  10. 【小技巧】2345——劫持IE浏览器主页
  11. 省市县三级联动的实现方案
  12. 网页微博连接不上服务器,新浪微博网络出错加载不了怎么办
  13. Self-Attention with Relative Position Representations(2018)
  14. PSM倾向匹配详细步骤和程序
  15. 华为端口聚合命令_华为交换机端口汇聚不同版本配置命令汇总
  16. 最新WiFi标准—WiFi 7
  17. 502 (Bad Gateway)
  18. deepin20安装calibre4.17.0(kindle最佳伴侣)
  19. 【手把手教你】获取股票数据并进行量化回测——基于ADX和MACD趋势策略
  20. 计算机相关知识培训新闻稿,不忘初心 磨砺自我 ——计算机学院团委培训顺利进行...

热门文章

  1. mmc、emmc、emcp
  2. 【BCT】 关于BCT的SUBSEQUENT CONFLICTS后续冲突报错解决
  3. 基于nxp LPC1768开发板的U盘MP3播放
  4. 卓尔智联研究院低代码解决方案入选《2021年湖北省区块链十大优秀应用案例》
  5. 联通物联网卡比其他物联卡有什么优势
  6. pycharm 数据库工具
  7. ghost使用经验分享:限制ghost32的功能的方法
  8. 多快好省的视频播放工具 MPlayerX
  9. 导电滑环技术标准是什么
  10. 扒一扒龙虎榜,交易公开信息探索