Questions tagged [vagrantfile]

Vagrantfiles are configuration files for vagrant. The Vagrantfile describes the type of virtual machine, and how to configure and provision the vm.

The primary function of the Vagrantfile is to describe the type of machine required for a project, and how to configure and provision these machines. Vagrantfile are called Vagrantfiles because the actual literal filename for the file is Vagrantfile (casing doesn't matter).

Vagrant is meant to run with one Vagrantfile per project, and the Vagrantfile is supposed to be committed to version control. This allows other developers involved in the project to check out the code, run vagrant up, and be on their way. Vagrantfiles are portable across every platform Vagrant supports.

The syntax of Vagrantfiles is , but knowledge of the programming language is not necessary to make modifications to the Vagrantfile, since it is mostly simple variable assignment. In fact, isn't even the most popular community Vagrant is used within, which should help show you that despite not having Ruby knowledge, people are very successful with Vagrant.

1000 questions
-1
votes
1 answer

provision multiple servers in a single VM using vagrant

Can we use vagrant to provision multiple services in a single virtual machine , say tomcat and mysql. but a service should get installed in VM as per user input something like "vagrant up mysql". I have already been looked in to Mutiple VM…
priyank
  • 857
  • 2
  • 18
  • 35
-2
votes
0 answers

Error while doing initial setup of vagrant

sriha@LAPTOP-65D9TRHP MINGW64 ~/elastic $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'C:/Users/sriha/elastic/' could not be found. Attempting to find and install... default: Box Provider: virtualbox …
-2
votes
0 answers

How can I fix this error in my Vagrantfile?

I followed the setup guide for Windows for NXBT, and followed it until vagrant up. Now when I do that I get the error message PS D:\Users\user\Desktop\nxbt> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking…
-2
votes
1 answer

What does Vagrant file structure look like?

Is this file structure correct for using Vagrant? I have 1 Vagrantfile in a work folder that contains all my projects. Is this how you use Vagrant? 1 Vagrant file and 1 virtual machine that runs all the projects in same work folder. Folder…
DoXx
  • 1
-2
votes
2 answers

Vagrant unused port collision - unable to run vagrant up

Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The forwarded port to 80 is already in use on the host machine. To fix this, modify your current…
Simon Staton
  • 4,345
  • 4
  • 27
  • 49
-2
votes
1 answer

Vagrant with homestead and Linux boxes

Why there is a yaml file generated with the homestead box while there isn't one generated in a simple linux box like the precise64 box.
-2
votes
1 answer

How to start vagrant/heroku

I found a article online that explains how to connect vagrant to heroku, so I would be able to deploy my applications online. I got to step 4 in the article, but I got an error when I tired to install foreman (gem install foreman). How can I get it…
Alex
  • 27
  • 1
  • 5
-2
votes
1 answer

Can we terminate openstack instance with Vagrant

Is there any method to terminate openstack instance using Vagrant-OpenStack-Plugin ? Then how can we do that ?
Malintha
  • 4,512
  • 9
  • 48
  • 82
-2
votes
2 answers

Running vagrant on two macs

I have Vagrant installed on my iMac but I would also like to install and run it on my MacBook. Is it possible to run the same Vagrant box across two Macs? I have done a Vagrant up command within a shared Dropbox folder - so i'm guessing that all…
V4n1ll4
  • 5,973
  • 14
  • 53
  • 92
-3
votes
1 answer

why the vagrant windows can ping but can't access in the browser

i spend a hold day to build the vagrant env on the windows ,and use the rbenv build the ruby env & install the rails ! evrythings ok,but when i start the rails s found i can't access on the chrome,then i use the ubuntu links to ping the…
1 2 3
66
67