vagrant up reports "Couldn't open file /path/to/base error, installation of centos7 failed

Problem environment: Downloading the vagtant virtual machine image is too slow and the problem is solved

Encountered a problem: vagrant up reported "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.

solution:

1. Modify: Vagrantfile file config.vm.box parameter under C:\Users\xxx
![Insert picture description here](https://img-blog.csdnimg.cn/34c0f070e9574277a3b722b2aafc766e.png
2. Modify: Vagrantfile file config.vm.box parameter under the directory where the virtual machine file is locatedinsert image description here

insert image description here
insert image description here
Be consistent, otherwise the specified name cannot be found

Guess you like

Origin blog.csdn.net/Beyonod/article/details/121078209