Questions tagged [vagrant]

Vagrant is a tool to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle's VirtualBox for these virtual environments, but support for other virtualization systems is available. Most questions about Vagrant should be asked on Super User or Stack Overflow.

Vagrant is a platform independent tool written in Ruby, to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle’s VirtualBox for these virtual environments, but support for other virtualization systems is available. Lots of information and very good in-depth documentation can be found on the homepage: Vagrant - Virtualized development for the masses.


Footnote:
Please refer to Meta.SF for some background on the recommendation why questions regarding vagrant are likely to get a better reception and possibly more answers on StackOverflow than on ServerFault.

454 questions
94
votes
4 answers

dpkg-reconfigure: unable to re-open stdin: No file or directory

I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages: sudo apt-get -y install php5-xsl graphviz php-pear unison I get the warning: dpkg-reconfigure: unable to re-open…
Daithí
  • 1,333
  • 1
  • 11
  • 14
86
votes
4 answers

Vagrant / VirtualBox DNS 10.0.2.3 not working

I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant Getting Started but have gotten stuck on the Provisioning. It seems the Vagrant box cannot connect outside and so I can't install anything using either…
Rudolf Vavruch
  • 1,215
  • 2
  • 11
  • 16
57
votes
4 answers

Relationship between Vagrant, Docker, Chef and OpenStack (or similar products)?

I am a web developer, but I am also interested in a few administrative tasks. Hence, the new move from pure administration to dev-ops comes handy for me. Anyway, I have some problems to put a few things into a relationship. Maybe there isn't any, so…
Golo Roden
  • 781
  • 1
  • 8
  • 10
44
votes
2 answers

How do I enable additional debugging output from Ansible and Vagrant?

I am investigating Ansible for server and application provisioning. My application is currently provisioned with shell scripts in Vagrant. Rather than rewriting my scripts, I took a sample and attempted to deploy it. It appears to deploy fine, but I…
Brian Lyttle
  • 1,747
  • 1
  • 17
  • 17
37
votes
6 answers

Vagrant box most similar to Amazon EC2 instances

Are there any 'boxes' available to download for Vagrant that closely mirror the Linux version and packages available for Amazon EC2 instances? I am testing locally using Vagrant, currently using the Precise32 box. I am deploying my code to Amazon…
Danack
  • 1,186
  • 1
  • 14
  • 27
32
votes
1 answer

Vagrant set default share permissions

When running a vagrant instance the project folder is mounted on /vagrant automatically. However is mounted with the following permissions # ll -d /vagrant drwx------ 1 vagrant vagrant 612 Jun 13 14:41 /vagrant/ I need it to be mounted with (at…
Fabio
  • 1,287
  • 2
  • 12
  • 18
29
votes
2 answers

How can I get Vagrant to start the server on startup?

I want Vagrant to start the Play server in the /vagrant/ folder every time I do vagrant up. Putting @reboot on the crontab doesn't work because the script runs before the /vagrant/ folder is connected.
wrongusername
  • 447
  • 2
  • 5
  • 7
27
votes
11 answers

SSH aborts with Too many authentication failures

I'm attempting to run this simple provisioning script but I'm encountering errors when running vagrant up and then vagrant provision commands. I read that I needed to create a /etc/ansible/hosts file which I've done, populating it…
Ashley
  • 528
  • 1
  • 6
  • 14
23
votes
3 answers

Vagrant: Slow internet connection in guest

I'm trying to set up a vagrant. Host is Ubuntu 12.10. Here's my vagrant file: Vagrant::Config.run do |config| config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true) config.vm.network :bridged, :bridge => "eth0" …
sarah
  • 551
  • 1
  • 4
  • 9
22
votes
1 answer

How do you reset vagrant back to it's original state?

Ran "vagrant up" and did some changes. Want to go back to a clean installation. How do you reset vagrant back to it's original state? Do you run "vagrant destroy" and then "vagrant up" or do you "vagrant box remove" and then "vagrant up"
Albert T. Wong
  • 369
  • 1
  • 3
  • 8
21
votes
2 answers

Vagrant forward a range of ports

Is there a way to forward a range of ports using vagrant 1.2.1 or higher? I know that you can forward any number of ports individually by using config.vm.forward_port 80, 4567 Or, is the answer simply don't use vagrant to do such a thing?
Acorn
  • 313
  • 1
  • 2
  • 6
16
votes
2 answers

Prevent Apache from starting after apt-get install

When I apt-get install apache2 the server starts automatically when install completes, and the default Apache configuration makes everything in /var/www/ accessible to the client side. Thus if I have any closed source server side scripts or other…
David Winiecki
  • 273
  • 2
  • 7
16
votes
3 answers

Nginx http prefixes in upstream server

I'm trying to use nginx to proxy pass to two docker containers. Here is my upstream conf file: upstream api_servers { server http://192.168.49.4:49155; server http://192.168.49.4:49156; } This is what I get trying to load it: nginx: [emerg]…
user2108258
  • 303
  • 1
  • 3
  • 10
16
votes
4 answers

Vagrant shared folder and file change events

I have ubuntu virtual machine that I'm accessing through Vagrant. On my host (Mac OSX), there is a folder with couple of files, that I share to virtual machine. In that virtual machine, I want to use guard to watch for files changes and perform some…
15
votes
3 answers

NFS with encrypted ubuntu home directory

I am having trouble getting NFS setup on with vagrant: On my local machine I have installed NFS: apt-get install nfs-common nfs-kernel-server And in my Vagrantfile set it to be used: config.vm.share_folder("v-root", "/vagrant", ".", :nfs =>…
user71736
1
2 3
30 31