I'm new to Vagrant, I'm using Windows 10. I installed the latest version of Vagrant (1.8.5) and whenever I run command "vagrant add box" in my project root directory, it generates error:
"There was an error loading a vagrantFile. THe file being loaded and error Message are shown below:
Path: D:/Projects/My_Project_name/VagrantFile
Line Number: 12
Message: LoadError: Cannot load such file -- D:/Projects//My_project_name/vendor/laravel/homestead/scripts/homestead.rb"
Command vagrant add box doesn't exist. Correct command is vagrant box add [options] < name, url, or path >. Use vagrant box add -h for more information about this command.
Related
After installing my project files on my homestead box I ran vagrant reload and got:
The executable 'modinfo' Vagrant is trying to run was not
found in the PATH variable.
This is an error.
Please verify this software is installed and on the path.
Now I can't run Vagrant anymore due to this error.
I have vagrant (Vagrant 2.0.4) and Oracle VM Virtual Box (Version 5.2.10 r122406 (Qt5.6.2)) installed on my machine.
As soon as I enter vagrant box add laravel/homestead or vagrant box add laravel/homestead http://atlas.hashicorp.com/laravel/boxes/homestead on Git Bash, I get the following error:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again. OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
Problem Statement:
I am wondering, what command I need to enter on my Git Bash so that I am successfully able to laravel/homestead for virtualbox.
I followed this answer, but it didn't solve my problem.
try emptying the temp first by running this command:
rm -rf ~/.vagrant.d/tmp/
then running the following command:
vagrant box add --insecure laravel/homestead
if this doesn't work ,then empty your temp by :
pressing win +r
typing %temp% then hitting enter
then delete everything in there and if asked to continue or skip, choose skip
then connect to a VPN and try running the following command :
vagrant box add laravel/homestead
hope this helps.
About to start tinkering with vagrant, looking at the second page of the tutorial
vagrant box add hashicorp/precise64
When I run this command however, I get
This command was not invoked properly. The help for this command is
available below.
Usage: vagrant box add [--provider provider] [-h]
I can see it takes a name before the URL, so I tried
vagrant box add ubuntu/trusty64 https://atlas.hashicorp.com/ubuntu/boxes/trusty64
but I get another error
bsdtar: Error opening archive: Unrecognized archive format
I want to download ubuntu/trusty64 specifically. What am I doing wrong?
You are using old version of Vagrant with newest documentation. You either need to update your Vagrant or read old docs.
Boxes system was revamped in 1.5 so your Vagrant is older than 1.5
I used a different site to get the boxes. The url needs to have a .box file
https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box
I've installed Vagrant and VirtualBox to simulate Hadoop management (Apache Ambari). According to its installing documentation, i've done everything to create a vm (with 'vagrant up' command). I've installed manually lucid32 box file and placed it to the directory but it still says:
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The box 'lucid32' could not be found.
What am i doing wrong?
I was able to get a box up using the latest install following this process.
# From your home directory, install the template box
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
# From your project directory
vagrant init lucid32
vagrant up
Using Apache Ambari:
# clone from GitHub
git clone https://github.com/u39kun/ambari-vagrant.git
# Append these entries to ambari-vagrant/append-to-etc-hosts.txt
# ubuntu 12.4 hosts
192.168.12.101 u1201.ambari.apache.org u1201
192.168.12.102 u1202.ambari.apache.org u1202
192.168.12.103 u1203.ambari.apache.org u1203
192.168.12.104 u1204.ambari.apache.org u1204
192.168.12.105 u1205.ambari.apache.org u1205
192.168.12.106 u1206.ambari.apache.org u1206
192.168.12.107 u1207.ambari.apache.org u1207
192.168.12.108 u1208.ambari.apache.org u1208
192.168.12.109 u1209.ambari.apache.org u1209
192.168.12.110 u1210.ambari.apache.org u1210
# Modify your hosts file
sudo cat ambari-vagrant/append-to-etc-hosts.txt >> /etc/hosts
# Get up and running
cd ambari-vagrant/ubuntu12.4
vagrant up
There was a problem with the configuration of Vagrant. The error message(s)
are printed below:
vm:
* The box 'hashicorp/precise64' could not be found.
For me, this was a simple matter of using too old a version of vagrant (version 1.0.1).
Download the latest from: https://www.vagrantup.com/downloads.html
And then:
$ sudo dpkg -i vagrant_1.8.5_x86_64.deb
vagrantup.com says input vagrant box add hashicorp/precise32, But when I input it, the terminal outputs error message:
This command was not invoked properly. The help for this command is
available below.
Usage: vagrant box add <name> <url> [--provider provider] [-h]
Then, I input vagrant box add hashicorp/precise32 \ http://files.vagrantup.com/hashicorp/precise32.box,
But the download fail, with following error message.
Download failed. Will try another box URL if there is one.
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/XXXX/ http:/files.vagrantup.com/precise32.box
How do I do to install vagrant box?
The syntax for the vagrant box add subcommand is changed with the version 1.5, due to the Vagrant Cloud introduction.
From the output messages it seems that you're using an older version, so current documentation is not reliable for your case.
Here you can find a snapshot of the old documentation, in any case the syntax you need to use is like the following:
vagrant box add precise32 http://files.vagrantup.com/precise32.box