系统相关
首页 > 系统相关> > vagrant up报“Couldn‘t open file /path/to/base错误安装centos7失败

vagrant up报“Couldn‘t open file /path/to/base错误安装centos7失败

作者:互联网

问题环境:下载vagtant虚拟机镜像太慢问题解决

遇到问题:vagrant up报“Couldn‘t open file /path/to/base

C:\Vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
    default: Downloading: base
    default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

解决方案:

1、修改:C:\Users\xxx 下的Vagrantfile文件config.vm.box参数
![在这里插入图片描述](https://www.icode9.com/i/ll/?i=34c0f070e9574277a3b722b2aafc766e.png
2、修改:虚拟机文件所在目录下的Vagrantfile文件config.vm.box参数在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
保持一致,不然找不到指定的名称

标签:Box,Couldn,default,vagrant,up,base,file,virtualbox
来源: https://blog.csdn.net/Beyonod/article/details/121078209