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. 解决SWFUpload在Chrome、Firefox浏览器下session找不到的问题
  2. linux安装源码包出现apr错误,Linux源码安装Apchae时报错:error: APR not found.Please read the documentation....
  3. jzoj3794,P1383-高级打字机【欧拉序,离线O(n)】
  4. 企业数字化转型与中台建设全攻略:什么阶段进行?有哪些方法?
  5. C++新特性探究(一):nullptr
  6. 大数据(7) - zookeeper的安装与使用
  7. 【LeetCode】524-通过删除字母匹配到字典里最长单词
  8. Linux内存映射实现框架
  9. 将pdf转成图片时,文字没法显示
  10. 2020考研数学一考研大纲原文
  11. 拼多多618来了:500余家官旗齐聚“品牌专场”,发放30亿消费红包
  12. Excel中文本替换函数
  13. 曲线平滑-B样条曲线
  14. 前端html——图片插入
  15. 上不了网,代理服务器出现问题
  16. 价值创造链路及经营计划
  17. KB/S MBPS转换
  18. java窗口程序实例_Java Swing快速构建窗体应用程序
  19. 多点解读虎扑:获字节巨资加持的体育大咖,为何再次梦碎IPO?
  20. 一头猪不是一个存钱罐

热门文章

  1. 期货自动化反向算法数据统计
  2. 阿里云提示安全组与 VPC 不匹配问题解决方案
  3. R数据分析:潜在转化分析LTA的做法和解释(一)
  4. win11如何投屏到电视
  5. EasyClick 原生UI 高级课程
  6. 微波技术基础---史密斯圆图分析阻抗匹配
  7. 数据分析4_母婴商品销量分析_阿里云天池
  8. 计算机图形学实验四——投影变换
  9. 为什么很多人喜欢把软件装在D盘,而不是系统盘C盘?
  10. 解析token的网址