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
86
votes
3 answers

How to combine Vagrant with Jenkins for the perfect Continuous Integration Environment?

You have a project which has got some SW requirements to run (e.g.: a specific version of Apache, a version of PHP, an instance of a MySQL database and a couple of other pieces of software). You have already discovered Vagrant, so your virtual…
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
86
votes
4 answers

execute commands as user after Vagrant provisioning

There are some commands that have to be run as a normal user after the initial provisioning. I thought I could do this using a separate shell script and the command su --login -c vagrant, but it's not getting the user's path or other…
Vince
  • 3,962
  • 3
  • 33
  • 58
85
votes
12 answers

Demand a Vagrant plugin within the Vagrantfile?

Supposed execution of a Vagrantfile requires a specific Vagrant plugin to be installed. So, basically what you need to do is $ vagrant plugin install foobar-plugin $ vagrant up If you skip the first step, vagrant up fails. Is there an option in…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
78
votes
8 answers

Vagrant with VirtualBox on Windows10: "Rsync" could not be found on your PATH

I've used Vagrant for a while on a windows 7 system. Now I've a new PC with windows 10. I installed Oracle Virtual Box and Vagrant and I try to start a machine with the command vagrant up. The Vagrantfile is the same file that I used on my windows 7…
Stefan H
  • 1,063
  • 1
  • 10
  • 18
75
votes
3 answers

How can I create a VM in Vagrant with VirtualBox with two CPUs?

On Windows 7 64 bit trying to start up a VM (Ubuntu 32 bit). I'm having trouble getting my VM to show two cores despite adding the modify vm command in my Vagrantfile. My Vagrant version is 1.2.2. # -*- mode: ruby -*- # vi: set ft=ruby…
nikhil
  • 2,471
  • 2
  • 15
  • 12
73
votes
6 answers

Vagrant insecure by default?

EDIT 2: TL;DR: the answer was yes in 2013, but this flaw has been fixed By following the Getting Started instructions on vagrantup.com, I seem to end up with a virtual machine that is accepting SSH connections on port 2222 so that anyone can get…
oseiskar
  • 3,282
  • 2
  • 22
  • 22
72
votes
12 answers

How do I delete a virtualbox machine in the GURU_MEDITATION error state?

How do I delete a VirtualBox machine in the GURU_MEDITATION error state? Is it enough just to delete the directory while VirtualBox is not running? EDIT: After posting, I deleted the entire directory that "Show in File Manager" navigates to. It…
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
71
votes
2 answers

How can I develop a LAMP web application using Docker, Puppet and Vagrant?

In the dark ages, my usual setup for development of LAMP web applications was to test locally on my machine. PHP (in my case), the database and the web server were all installed natively. The server was set up with standard installs of Apache and…
Robert
  • 5,735
  • 3
  • 40
  • 53
69
votes
8 answers

Unable to vagrant up - how to set "providers"

I am trying run vagrant but after vagrant up error appears: No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run…
Tomasz
  • 1,368
  • 3
  • 17
  • 31
69
votes
5 answers

How to upgrade to VirtualBox Guest Additions on VM box?

I've got the latest version of VirtualBox installed on my desktop (4.3.4). I'm using Vagrant to run a VM based on the example 64-bit Ubuntu 12.04 LTS box at: http://files.vagrantup.com/precise64.box Everytime I run vagrant up, I get the following…
odigity
  • 7,568
  • 4
  • 37
  • 51
69
votes
13 answers

How to find the Vagrant IP?

I have been developing an automated deployment using Capistrano and using Vagrant as my test virtual server. The thing is, I need the IP of Vagrant to "ssh into it". I tried ifconfig and got the IP but it looks like it is not the exact vagrant…
Linda
  • 1,203
  • 2
  • 15
  • 23
69
votes
6 answers

How to control the version of Chef that Vagrant uses to provision VMs?

A current Chef recipe isn't running because of a bug in version 0.10.10. How can I upgrade the version of Chef that Vagrant uses, to 0.10.12? I don't want to just update it for the current instance of the VM - I keep destroying and rebuilding those.…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
67
votes
2 answers

Vagrant shared and synced folders

I created a Vagrantfile with the following content: Vagrant::Config.run do |config| config.vm.define :foo do |cfg| cfg.vm.box = 'foo' cfg.vm.host_name = "foo.localdomain.local" cfg.vm.network :hostonly, "192.168.123.10" end …
astropanic
  • 10,800
  • 19
  • 72
  • 132
66
votes
6 answers

Vagrant/VirtualBox/Apache2 Strange Cache Behaviour

I'm using Vagrant to run an Ubuntu powered VirtualBox with Apache2. The webserver, among others, serves static files from my /vagrant directory. This works well most of the time. But when I change an image on my shared folder and reload the website,…
Philipp Spiess
  • 3,263
  • 4
  • 26
  • 34
66
votes
7 answers

Vagrant, how to specify the disk size?

I want to make sure that my development environment has enough free space to install tools and other stuff. I can't find any configuration option about telling to Vagrant the minimum disk size that I want. Is this possible or I need to create my own…
geckos
  • 5,687
  • 1
  • 41
  • 53