box add from vagrantcloud using vagrant 1.4.3 - vagrant

I am trying to add vagrant box using vagrant 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 invoked properly. The help for this command is
available below.
Obviously the format of command is wrong but how can I get box:
https://vagrantcloud.com/ffuenf/debian-6.0.9-amd64
from vagrant cloud?

vagrant box add "ffuenf/debian-6.0.9-amd64"
is your answer.
edit:
My previous answer was based on the latest Vagrant version.
In 1.4.3 you cannot add boxes in this way because it's not working with Vagrantcloud.
Instead you need to manually specify the box 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'!

You need to manually look up the URL of the box you want to add, and use that instead.
So, for example, say you want to add the box puppetlabs/ubuntu-14.04-32-puppet from Vagrantcloud, you need to:
Go to https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet
Click on a version from the versions dropdown on the right hand side (eg, 1.0.0) to get to: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-32-puppet/versions/1
Copy and paste the URL of the box 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 the URL to add the box like this:
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

I struggled with this for a while. The key was getting the most recent version of vagrant -- 1.7.4 at the time that I am writing this. The download link that 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 the site https://atlas.hashicorp.com/boxes/search?utm_source=vagrantcloud.com&vagrantcloud=1 which listed the currently available boxes. You can search for a box by description. For example, entering 'debian' as a search term returns a list.
I selected a box and followed the instructions on its 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)

This is not exactly answer to your question, but I used:
vagrant box add precise32 http://files.vagrantup.com/precise32.box
and then just change ffuenf/debian-6.0.9-amd64 name to precise32 in config file (Vagrantfile). And it looks like it is running properly. Probably there is somewhere a box file for ffuenf, but I don't know that.

Related

Vagrant box doesn't support provider parallels (need to use parallels not virtualbox with m1 chip)

How can i replace this vagrant box with one that supports parallels as a provider? I require parallels as virtualbox does not work on m1 macs.
I already followed these instructions for installing parallels plugin for vagrant
https://kb.parallels.com/en/122843
Bringing machine 'forge_offers_core' up with 'parallels' provider...
==> forge_offers_core: Box 'damianlewis/lamp-php7.1' could not be found. Attempting to find and install...
forge_offers_core: Box Provider: parallels
forge_offers_core: Box Version: >= 0
==> forge_offers_core: Loading metadata for box 'damianlewis/lamp-php7.1'
forge_offers_core: URL: https://vagrantcloud.com/damianlewis/lamp-php7.1
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.
If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.
Name: damianlewis/lamp-php7.1
Address: https://vagrantcloud.com/damianlewis/lamp-php7.1
Requested provider: [:parallels]
the code in Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "damianlewis/lamp-php7.1"
You need to search a VM for the provider you'll use (in your case Parallels)
https://app.vagrantup.com/boxes/search?order=desc&page=0&provider=parallels&sort=created
If you don't find one that matchs what you need, you'd need to go the path to build one yourself (using packer for example)

Laravel Homestead/Vagrant box error : The specified checksum type is not supported by Vagrant: sha512

I am trying to install laravel homestead and can't get past adding the homestead box.
The instruction is: vagrant box add laravel/homestead
After completing the download process following error appears.
C:\Users\HARSHA - PC PRO>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v9.0.1) for provider: virtualbox
box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/9.0.1/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
box: Progress: 100% (Rate: 188k/s, Estimated time remaining: --:--:--)
box: Calculating and comparing box checksum...
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:
md5, sha1, sha256
I'm on Windows 10 64 bit PC and have tried these instructions with the virtualbox(Version 6.0.0 r127566 (Qt5.6.2)) and vagrant_2.2.2_x86_64 version.
I'm trying to install Laravel homestead and am not aware of resolving this since I am new to the Laravel vagrant. I searched the web for the particular problem and I could not find any solution pertaining to the above, so any help is appreciated.
As mentioned in Vagrant's CHANGELOG.md file, new checksum types are now supported. Simply updating Vagrant to its latest version (2.2.6) should do the trick.
You can then do vagrant box update to upgrade the Homestead box.
In my case I saw in the logs that the version trying to get installed was v9.2.2-alpha1
box: Adding box 'laravel/homestead' (v9.2.2-alpha1) for provider:
virtualbox
What worked for me is defining the version by using the following parameter
--box-version=9.1.1
i.e.
vagrant box add laravel/homestead --checksum-type=sha256 --box-version=9.1.1
Also, try to download and install the latest version of vagrant.
You are using the unsupported checksum type.try installing with --checksum-type parameter. Given below,
vagrant box add laravel/homestead --checksum-type sha256
Here is the Docs to refer to while using command-line.
Try 2.2.7 version.
vagrant -v
Vagrant 2.2.7
==> box: Successfully added box 'laravel/homestead' (v9.3.0) for 'virtualbox'!
I had the same problem and it took multiple attempts.
Problems
Couldn't update the vagrant box.
Once I downloaded it wouldn't switch to the new box.
Once I switched Laravel threw a Facade error.
Solution
(with many thank you's to the answers in this thread):
Navigate to the Homestead/Vagrant folder.
Then run "vagrant -v" to check your Vagrant version (ex. "Vagrant 2.1.5").
In a web browser go to https://www.vagrantup.com/downloads.html .
Download the latest Vagrant version.
On your computer, run and install the new version.
Go to: https://www.virtualbox.org/
Download the lastest Virtual Machine.
On your computer, run and install the new version.
Back in the terminal, check the vagrant version again "vagrant -v" (ex. "Vagrant 2.2.10").
Make sure your Vagrant is stopped by running "vagrant halt".
Purge and reinstall your vagrant plugins to be safe with "vagrant plugin expunge --reinstall" (and confirm "Y").
Now run "vagrant box update" to update your box.
Now load your box with "vagrant up".
With your box loaded run "vagrant destroy".
Now run "vagrant up" again to rebuild your box from scratch.
This worked for me. Let me know if this works for you.

vagrant can't run, when i typed 「vagrant up」,there is no response (no error message)!

My os is windows 7;
vagrant box add firstBox ./virtualbox.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'firstBox' (v0) for provider:
box: Unpacking necessary files from: file://C:/Users/liumeng/vagrant_get
ting_started/virtualbox.box
box: Progress: 100% (Rate: 687M/s, Estimated time remaining: --:--:--)
==> box: Successfully added box 'firstBox' (v0) for 'virtualbox'!
vagrant init fistBox
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 box list
$ vagrant box list
firstBox (virtualbox, 0)
vagrant up
// There is no response,no error message
I download check virtual cpu tools in windows; ande It's OK;「havdetectiontool」
This computer is configured with hardware-assisted virtualization
The virtualBox can run normally, Could you give me some idea?
I had the same problem the other day.
I tried vagrant_1.9.7_x86_64.msi on my Windows 7 box(CPU=AMD PhenomII).
'vagrant up' went totally silent with no sign of progress and without error messages of any kind.
So I tried older version vagrant_1.9.5.msi and this one just worked fine.
# I don't know whether vagrant_1.9.7_i686.msi works okey or not.

Is it possible to configure vagrant to use a box mirror?

I'm trying to try out Vagrant, but ...
$ 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 is pretty much the fastest its been for multiple boxes I've tried including hashicorp/precise32, hashicorp/precise64, bento/debian-8.2 and some others.
Is there a Vagrant box mirror that I can configure vagrant to use or some other mechanism to allow for faster box downloads?
You can try wget on the URL as
wget https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
There has been issue opened related to this without clear fix. vagrant uses curl internally but it might work better using wget instead.
once you have the box file you still need to add to vagrant (vagrant box add ...)

vagrant can't find existing box

i was add box with local file from https://dl.dropboxusercontent.com/s/x1085661891dhkz/lxc-centos6.5-2013-12-02.box
vagrant box add centos centos.box
vagrant init centos
my shell:
cheneytekimbp:vagrant-centos zicjin$ vagrant box list
centos (lxc, 0)
lucid32 (virtualbox, 0)
cheneytekimbp:vagrant-centos zicjin$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'centos' (v0) for provider: virtualbox
default: Downloading: centos
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 /Users/zicjin/Work/vagrant-centos/centos
Add the local box file using the full path with the file protocol URI. For instance:
vagrant box add centos file:///Users/zicjin/Work/vagrant-centos/centos.box
(the exact location of course depends on where you've put the file)
$ vagrant box add CentOSMinimal https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box
$ vagrant init CentOSMinimal
$ vagrant up
If you're on windows, you can define the path as:
vagrant box add box_name "C:\Users\JohnDoe\blahblah\box_name.box"
Notice the .box at the end of the path.
Then you can cd into the directory if you're not already there and do vagrant up.
I've solved a similar issue upgrading Vagrant to the latest version and magically it works... :/

Resources