我知道http://www.vagrantbox.es/为我们提供了很多stream浪箱供我们使用,但是我发现他们很多的url下载地址已经过时了。 vagrantcloud.com或https://atlas.hashicorp.com/boxes/search是替代我。 但是当我运行vagrant up ubuntu/trusty64 --provider virtualbox我得到这个:
sean@apptest:~$ vagrant up ubuntu/trusty64 --provider virtualbox A Vagrant environment or target machine is required to run this command. Run `vagrant init` to create a new Vagrant environment. Or, get an ID of a target machine from `vagrant global-status` to run this command on. A final option is to change to a directory with a Vagrantfile and to try again. sean@apptest:~$ vagrant global-status id name provider state directory -------------------------------------------------------------------- There are no active Vagrant environments on this computer! Or, you haven't destroyed and recreated Vagrant environments that were started with an older version of Vagrant. sean@apptest:~$ vagrant init 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. sean@apptest:~$ vagrant up ubuntu/trusty64 --provider virtualbox The machine with the name 'ubuntu/trusty64' was not found configured for this Vagrant environment.
看来我不能从网上下载一个盒子。 但是我也没有从https://atlas.hashicorp.com/ubuntu/boxes/trusty64find下载地址。 有没有更好的方法来获得这些盒子?
而如果我想下载https://atlas.hashicorp.com/laravel/boxes/homestead v0.2.3?
谢谢〜
感谢@jordanm,问题解决了。 在一个干净的目录(没有Vagrantfile): vagrant init ubuntu/trusty64
然后运行vagrant up --provider virtualbox 。 这将导致从https://atlas.hashicorp.com/search/boxessearch框。
或者运行vagrant box add ubuntu/trusty64 。
如果你想下载盒子文件,你可以看到完整的URL地址框中find