Reputation: 856
I am trying to set up virtual machine using virtual box. I have got virtual box and vagrant installed in my windows 7 64-bit machine. I have also built an environment using puphpet. But whenever I try to install the box ubuntu1404-x64 it throws the error
Bringing machine 'machine1' up with 'virtualbox' provider...
==>Machine1: Box 'puphpet/ubuntu1404-x64' could not be found. Attempting to find and install...
machine1: Box Provider: virtualbox
machine1: Box Version: >= 0
machine1: Box file was not detected as metadata. Adding it directly...
machine1: Adding box 'puphpet/ubuntu1404-x64' (v0) for provider: virtualbox
machine1: Downloading: puphpet/boxes/ubuntu1404-x64
machine1:
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.
I checked the URL https://atlas.hashicorp.com/puphpet/boxes/ubuntu1404-x64/ and the box puphpet/ubuntu1404-x64 does exist.
Also when it says The error message, if any, is reproduced below
it does not show any description at the terminal.
I googled the issue, tried some of the answers here at stackoverflow but no result. Please help.
Upvotes: 7
Views: 10306
Reputation: 1
It kept telling me :The revocation function was unable to check revocation for the certificate
I searched for it and found the same error in this repo chat :
https://github.com/hashicorp/vagrant/issues/13102
The solution (for me at least) was to add this line to the vagrant file: at the line where it begins : Vagrant.configure("2") do |config|
add this line below it : config.vm.box_download_options = {"ssl-no-revoke" => true}
so the final form should be :
Vagrant.configure("2") do |config|
// leave any already written lines as it is
config.vm.box_download_options = {"ssl-no-revoke" => true}
then save the file
It worked for me and completed the download
Note : this solution may have cause tiny security issues for your machine , because it effectively disables SSL certificate revocation checks during the download of the base box image for your virtual machine , but i am posting this as it was the only way I personally found to help me solve this problem.
Upvotes: 0
Reputation: 49
I ran into a similar problem and fixed it by installing the latest version of vagrant.
Upvotes: 3
Reputation: 96947
I've had a similar situation in the past, and it helped me to download the box using vagrant command line, instead of having it be downloaded automatically ( from the URL in Vagrantfile ):
$ vagrant box add USER/BOX
see more here. Could you try the same approach? It might work for you as well.
EDIT: on a windows box, Microsoft Visual C++ 2010 redist looks to be needed to perform the provisioning of the box. It can be downloaded here. More info on the puhpet issuet: here
Upvotes: 8