Questions tagged [vagrant]

GENERAL VAGRANT SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Vagrant is a command line tool for provisioning virtualized environments on top of various providers, including VirtualBox, VMware and AWS.

Vagrant is a tool for building and distributing virtual systems on top of several kinds of virtual machines such as Oracle's or .

It is intended for managing "lightweight, reproducible, and portable development environments"; the configuration is managed in a file in the source repository called a .

Through plugins, Vagrant allows provisioning environments atop other providers, such as AWS, OpenStack or DigitalOcean.

Provisioning of a "box", by default can be done using shell scripts, Ansible, Chef, Puppet, Docker or Salt.

See also

Related Tags :

8556 questions
107
votes
13 answers

How do I add my own public key to Vagrant VM?

I got a problem with adding an ssh key to a Vagrant VM. Basically the setup that I have here works fine. Once the VMs are created, I can access them via vagrant ssh, the user "vagrant" exists and there's an ssh key for this user in the…
tehK
  • 2,265
  • 4
  • 17
  • 16
106
votes
6 answers

Symbolic links and synced folders in Vagrant

I want to use Vagrant to provide a common development environment to my team. The hosts are completely different: Some use OS X, some Linux, and some Windows. Some use VMware, some use VirtualBox. Inside of the VM we want to run Linux. So far,…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
103
votes
2 answers

Where is Vagrant saving changes to the VM?

I am just starting with Vagrant and I am having a little trouble understanding a few details. I have read through the docs but still am missing a basic concept. When I want to start a Vagrant box I run: vagrant up This will "build the VM based on…
Tree
  • 1,248
  • 2
  • 11
  • 9
100
votes
5 answers

How do I increase the RAM and set up host-only networking in Vagrant?

I would like to increase the RAM to at least 1 GB and I would like to configure “Host-Only” networking to use "199.188.44.20". This is my Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant::Config.run do |config| config.vm.customize…
Dc Redwing
  • 1,681
  • 11
  • 32
  • 42
99
votes
12 answers

How to use vagrant in a proxy environment?

My company's network is using proxy. So when I use vagrant up, it showed me a 401 permission error. How can I do some setting to use vagrant?
ithelloworld
  • 2,207
  • 4
  • 16
  • 16
97
votes
9 answers

Vagrant error: NFS is reporting that your exports file is invalid

I am trying to set up the Discourse development environment using these instructions. However when I run Vagrant I get the error: NFS is reporting that your exports file is invalid. Vagrant does this check before making any changes to the file.…
Hunter
  • 995
  • 1
  • 8
  • 7
96
votes
2 answers

Vagrant for a Java project: should you compile in the VM or on the host?

Here’s the question: When using Vagrant for a Java project (or any compiled language project for that matter), should you compile in the VM or on the host? Also, would you want your IDE and all your development tools to be run from inside the VM as…
Jason
  • 7,356
  • 4
  • 41
  • 48
96
votes
3 answers

What exactly do the Vagrant commands do?

There is surprisingly no documentation on what the Vagrant commands do, other than references throughout the "getting started" tutorial. What I've worked out so far: box - manage "boxes" destroy - shut down the VM then delete its stored…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
94
votes
7 answers

How to connect to Mysql Server inside VirtualBox Vagrant?

I mounted a new VirtualBox Machine with Vagrant, and inside that VM I installed Mysql Server. How can I connect to that server outside the vm? I already forward the port 3306 of the Vagrantfile , but when I try to connect to the mysql server, it`s…
rizidoro
  • 13,073
  • 18
  • 59
  • 86
91
votes
5 answers

How to pass parameter on 'vagrant up' and have it in the scope of Vagrantfile?

I'm looking for a way to pass parameter to Chef cookbook like: $ vagrant up some_parameter And then use some_parameter inside one of the Chef cookbooks.
Wojciech Bednarski
  • 6,033
  • 9
  • 49
  • 73
89
votes
12 answers

Nginx: Permission denied for nginx on Ubuntu

I am new to system administration. After installing nginx via puppet on Ubuntu I get the following output: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) [warn] 1898#0: the "user" directive…
krn
  • 6,715
  • 14
  • 59
  • 82
89
votes
8 answers

vagrant.d outside of the home folder

I've the problem that my home directory is actually located on a remote server and with ~/.vagrant.d sitting on that server, the performance of vagrant decreases heavily (and file-server backup size increases). So is there any way to move at least…
pagid
  • 13,559
  • 11
  • 78
  • 104
88
votes
5 answers

How do I remove a Vagrant box from global-status, after deleting that box from the filesystem?

I deleted a folder containing a running Vagrant box before realising it was still running. How can I delete it from Vagrant (global-status) now? I already removed the Virtualbox VM.
mettjus
  • 2,938
  • 4
  • 24
  • 32
88
votes
12 answers

Pass environment variables to vagrant shell provisioner

It looks like passing environment variables when calling vagrant up is simple if you're using a Ruby provisioner: VAR=123 vagrant up In the Vagrantfile: ENV['VAR'] How do I do this with the :shell provisioner? Simply doing this does not seem to…
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
87
votes
6 answers

Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

I just downloaded Vagrant and did the settings as well as install virtual box. I just can't start my project (vagrant up). I have a vagrant file and so on. What can I do? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==>…