我正试图尝试Vagrant,但是......
$ vagrant init hashicorp/precise32
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'hashicorp/precise32'
default: URL: https://atlas.hashicorp.com/hashicorp/precise32
==> default: Adding box 'hashicorp/precise32' (v1.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
default: Progress: 3% (Rate: 62598/s, Estimated time remaining: 0:52:14)
62K / s是我尝试过的多个盒子中最快的,包括hashicorp/precise32
,hashicorp/precise64
,bento/debian-8.2
和其他一些盒子。
是否有一个Vagrant盒子镜像,我可以配置vagrant使用或其他一些机制,以允许更快的盒子下载?
答案 0 :(得分:1)
您可以在网址上尝试wget
wget https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
在没有明确修复的情况下,已开启issue与此相关。 vagrant在内部使用curl,但是使用wget可能会更好。
一旦你有了盒子文件,你仍然需要添加到vagrant(vagrant box add ...
)