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
12
votes
6 answers

Vagrant Installing Anaconda Python?

Anaconda python is installed (in linux) via a bash script. I am trying to use Vagrant provisioning to get Anacaonda Python installed. In the bash script (following the documentation bootstrap.sh example) I have a bootstrap.sh script that: wget the…
Jzl5325
  • 3,898
  • 8
  • 42
  • 62
11
votes
1 answer

Vagrant: config.vm.provision does not allow me to copy a file to etc/nginx/conf.d?

I am working with a Nginx server. I want to copy a configuration file to /etc/nginx/conf.d with the Vagrantfile. The command I use is: config.vm.provision "file", source: "./bolt.local.conf", destination: "/etc/nginx/conf.d/bolt.local.conf" The…
Hendrik D
  • 139
  • 1
  • 11
11
votes
3 answers

vagrant won't start virtual machine - (Errno::EADDRNOTAVAIL)

I really hit a wall with this problem. I am on windows machine (with admin privileges) and I want to start setup my working environment with vagrant. Problem is that I am getting error (down bellow) and I can't find any solution... I am using latest…
jureispro
  • 1,342
  • 5
  • 22
  • 43
11
votes
1 answer

Invalid configured shell error when running the official FreeBSD vagrant box

I tried to run the official FreeBSD vagrant box by using: vagrant init freebsd/FreeBSD-10.2-STABLE And afterwards, modified my Vagrantfile accordingly based on the instructions at https://forums.freebsd.org/threads/52717/ by adding the following…
Osh Mansor
  • 1,232
  • 2
  • 20
  • 42
11
votes
3 answers

Could not retrieve information from environment production source

I'm using puppet as my provisioner in one of my vagrant project. I'm trying to add a module for a custom bash_profile. The module_path for puppet is set to: puppet.module_path = "puppet/modules" The class for my bash_profile module looks like…
Chris Schmitz
  • 20,160
  • 30
  • 81
  • 137
11
votes
2 answers

Forward Ports from boot2docker using the Vagrant Docker provider

I'm trying to utilize Vagrant 1.6's Docker provider and I seem to have run into a snag. I can successfully bring up the Docker container and guest OS, but then I can't access the service I've brought up within the container from the host OS. Here's…
Todd
  • 922
  • 7
  • 19
11
votes
2 answers

Vagrant up - The Following settings shouldn't exist: vm (rethinkdb-vagrant)

Trying to setup rethinkdb using https://github.com/RyanAmos/rethinkdb-vagrant C:\rethinkdb-vagrant>vagrant up Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following…
Jason More
  • 6,983
  • 6
  • 43
  • 52
10
votes
0 answers

Permission issue with Vagrant : 501 dialout

when trying to use NFS with Vagrant to sync folders, on my vagrant I see the permissions as user 501 group dialout. I fixed the issue disabling NFS and specifying a user and group manually in Vagrant file. I would like to use NFS though. Here is my…
vicdup
  • 151
  • 5
10
votes
4 answers

vagrant synced folders not working real-time on virtualbox

my synced folders are not working properly, they are synced one-time at start but when I make changes on the host machine, vagrant is not syncing it real-time. First some details on my system: OS: Linux Mint 18 Sarah Virtualbox version:…
Jan Richter
  • 1,976
  • 4
  • 29
  • 49
10
votes
2 answers

"rsync" was not detected as installed in your guest machine

I'm trying to setup Vagrant with docker as a provider but when running vagrant up --provider=docker --debug I get this error: "rsync" was not detected as installed in your guest machine. This is required for rsync synced folders to work. In…
Wissem
  • 1,705
  • 4
  • 16
  • 22
10
votes
1 answer

Store Vagrant VM in custom folder

I want to specify folder where Vagrant will store my VM. I need it only for one VM, so I don't want to modify VirtualBox.xml defaultMachineFolder or change VBOX_USER_HOME environment variable. What is the right way to do it in Vagrantfile? I've…
Kateryna Khotkevych
  • 1,248
  • 1
  • 12
  • 22
10
votes
2 answers

Vagrant synced folder using NFS wrong permissions

Trying to use the NFS plugin with a synced folder in Vagrant, and it is working, except that in the guest (VM) the permissions are wrong: -rw-r--r-- 1 501 dialout 0 Jan 20 00:51 a -rw-r--r-- 1 501 dialout 0 Jan 20 00:51 foo I tried setting…
Justin
  • 42,716
  • 77
  • 201
  • 296
10
votes
0 answers

Setting up master/slave replication databases within my Vagrant box

Currently, I am using Vagrant 1.4.3 in-conjunction with VirtualBox running Unix (Centos) for my development server (using MariaDB). I didn't setup the box myself (so my knowledge of setting this up is limited) I would basically like to do the…
Zabs
  • 13,852
  • 45
  • 173
  • 297
10
votes
1 answer

How to map docker ports using vagrant 1.6 and the docker provider

I'm currently trying to map my docker container ports from the container to the host (boot2docker). The end goal is to map those ports to my physical machine, but one step at a time. My Vagrantfile currently looks like: Vagrant.configure("2") do…
Dipesh
  • 1,263
  • 1
  • 11
  • 12
10
votes
1 answer

Cannot make outbound HTTP Requests from vagrant VM

I am unable to connect to the internet from within a Vagrant virtual machine I have set up. For example, at the root, when I type: curl http://google.com It fails with the message: curl: (6) Couldn't resolve host 'google.com' I'm not sure if it's…
Katie
  • 101
  • 1
  • 4