vagrant up 报错


问题描述

$ 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
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn\'t open file /path/to/vagrant/base

发现 box 都是空的, 初始化的时候也没有选择任何box

$ vagrant box list                                                        1 ↵
There are no installed boxes! Use `vagrant box add` to add some.

解决方法

手动添加box add, 或者 初始化的时候选择 init xxxx,

$ vagrant init ubuntu/xenial64
$ vagrant up

参考文档


Author: Itaken
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Itaken !
  TOC目录