Box add from vagrantcloud using vagrant 1.4.3
I am trying to add roaming box using roaming 1.4.3 on Ubuntu 14.04.1 LTS:
Vagrant 1.4.3 user @machine: ~ $ vagrant box add ffuenf / Debian-6.0.9-amd64
and I get:
This command was not called properly. Help for this command is available below.
Obviously the command format is wrong, but how can I get the window:
https://vagrantcloud.com/ffuenf/debian-6.0.9-amd64
from a wandering cloud?
source to share
vagrant box add "ffuenf/debian-6.0.9-amd64"
this is your answer.
edit My previous answer was based on the latest version of vagrants. In 1.4.3, you cannot add boxes this way because it does not work with Vagrantcloud. Instead, you need to manually specify the window url like this:
$ vagrant box add "ffuenf/debian-6.0.9-amd64" https://vagrantcloud.com/ffuenf/debian-6.0.9-amd64/version/7/provider/virtualbox.box --provider virtualbox
You should get the following:
Downloading box from URL: https://vagrantcloud.com/ffuenf/debian-6.0.9-amd64/version/7/provider/virtualbox.box
Extracting box...te: 1591k/s, Estimated time remaining: 0:00:02)
Successfully added box 'ffuenf/debian-6.0.9-amd64' with provider 'virtualbox'!
source to share
You need to manually find the url of the field you want to add and use that instead.
So, let's say you want to add a box puppetlabs/ubuntu-14.04-32-puppet
from Vagrantcloud, you need:
- Go to https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet
- Click on a version from the version dropdown on the right (e.g. 1.0.0) to navigate to: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet/versions/1
- Copy and paste the field url for the provider you want to use. For Virtualbox in this case it is: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet/versions/1/providers/virtualbox.box
-
Use url to add this field:
vagrant box add "puppetlabs/ubuntu-14.04-32-puppet" https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet/versions/1/providers/virtualbox.box --provider virtualbox
source to share
I have been struggling with this for a while. The key point was getting the latest version of Vagrants - 1.7.4 at the time I write this. The download link I used was: https://www.vagrantup.com/downloads.html
I am running Mac OS X 10.7.5 on a MacBook Pro. To download ubuntu / trusty64 I went to https://atlas.hashicorp.com/boxes/search?utm_source=vagrantcloud.com&vagrantcloud=1 which lists the currently available fields. You can find the window by description. For example, entering "debian" as a search term returns a list. I selected a field and followed the instructions on my page (in my case, the page was https://atlas.hashicorp.com/ubuntu/boxes/trusty64 ). Here is a log of what I did next:
$ vagrant init ubuntu/trusty64
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 --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
default: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v20150923.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20150923.0.0/providers/virtualbox.box
default: Progress: 56% (Rate: 111k/s, Estimated time remaining: 0:28:59)
source to share
This is not really an answer to your question, but I used:
vagrant box add exact32 http://files.vagrantup.com/precise32.box
and then just change the ffuenf / debian-6.0.9-amd64 name to exact32 in the config file (Vagrantfile ). And it looks like it is working correctly. There is probably a window file somewhere for ffuenf, but I don't know that.
source to share