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
10
votes
2 answers

Vagrant NFS share doesn't show updated file if size doesn't change

When mounting /vagrant over NFS, a changed file on the host is not refresh on the guest if the size doesn't changes. Quick update/typo are not immediately reflected unless I make enough modification for the size to be different. I've tried to set…
hlidotbe
  • 215
  • 3
  • 6
10
votes
2 answers

running setfacl on a vagrant shared directory

Trying to get a Symfony2 project up and running with a vagrant VM. I've seen a zillion articles on this, but getting the cache directory permissioned correctly is proving to be excruciatingly painful. In my Vagrantfile: config.vm.share_folder("src",…
Josh Nankin
  • 722
  • 12
  • 27
10
votes
2 answers

Unable to connect to Postgres on Vagrant Box - Connection refused?

First off, I'm new to Vagrant and Postgres. I created my Vagrant instance using http://files.vagrantup.com/lucid32.box without any trouble. I am able to run vagrant up and vagrant ssh without issue. I followed the instructions with one minor…
Ben Miller
9
votes
2 answers

Vagrant not ready for SSH error on VirtualBox and Laravel Homestead

Vagrant Version: 1.6.3 VirtualBox: 4.3.14 Ubuntu 14.04 LTS 64 Bit I have been on this for a pretty good while now and cannot figure this out. I have my public and private keys setup and they work. I know they are not the problem at they worked fine…
devcflynn
  • 91
  • 1
  • 1
  • 2
9
votes
1 answer

Can Vagrant point to a directory of Puppet manifests for execution?

I am using Vagrant to jump start some initial Puppet config and am confused on how to include/run multiple manifests (other than just site.pp) in the puppet execution workflow without making the extra manifests into modules and including them that…
SeligkeitIstInGott
  • 179
  • 2
  • 5
  • 19
9
votes
2 answers

Connection refused from outside Vagrant box with private network

I've set up CentOS 6 on a vagrant box with a private network IP. I can ssh into the box using the IP, so that is working. However, I get a Connection refused on port 80 when curl'ing it. There's a very basic nginx serving up its default welcome page…
Magnar
  • 1,047
  • 2
  • 11
  • 15
9
votes
1 answer

vagrant synced_folders and VBoxInternal2/SharedFoldersEnableSymlinksCreate

ok here's the deal I'm running vagrant(ubunttu 12.10) on top of windows 8 but everytime I try to create a virtualenv (python) from within my non nfs shared folder I get a 'Protocol error', turns out that virtualbox does not allow sym-linking by…
9
votes
5 answers

How can I move my deploy key into vagrant?

I'd like to move a an ssh key into vagrant and put them in ~/.ssh, what's the easiest way of doing that? I have the following in my Vagrant file: config.vm.synced_folder "conf.d", "/svr/conf.d" config.vm.provision :shell, :inline => "ls -l…
Kit Sunde
  • 946
  • 3
  • 12
  • 33
9
votes
4 answers

Nginx Loses Port on Redirect

I have a Wordpress site running in a Vagrant development environment. When I load up http://localhost:8080, the site comes up fine, but as soon as I try to access the admin by going to http://localhost:8080/wp-admin, I'm redirected to…
Rob Wilkerson
  • 1,465
  • 4
  • 17
  • 25
9
votes
1 answer

Vagrant (Virtualbox) host-only multiple node networking issue

I'm trying to use a multi-VM vagrant environment as a testbed for deploying OpenStack, and I've run into a networking problem with trying to communicate from one VM, to a VM-inside-of-a-VM. I have two Vagrant nodes, a cloud controller node and a…
Lorin Hochstein
  • 5,028
  • 15
  • 56
  • 72
8
votes
1 answer

What is dd if=/dev/zero of=/EMPTY bs=1M

Often times I see this command for use when creating a Vagrant box sudo dd if=/dev/zero of=/EMPTY bs=1M To me it seams that it is copying a lot of NULL characters into a file named EMPTY at the FS root 1MB at a time. My question is how does doing…
Heath N
  • 183
  • 1
  • 3
8
votes
2 answers

SSH tunnel (port forwarding) slow down a lot my mysql queries

I'm currently testing some configurations with vagrant (virtual box) to connect 2 servers (VM currently) together through an SSH tunnel. The goal being to securely connect my web app to the database. The issue is that when I query the database…
Nicolas BADIA
  • 366
  • 1
  • 6
  • 15
8
votes
2 answers

Installing package from PPA using Puppet

I'm trying to automatically provision VMs with docker pre-installed. My default init.pp looks like: class { 'apt': always_apt_update => true, } package { [ #'build-essential', #'vim', #'curl', #'zsh', #'git-core', …
digital
  • 345
  • 6
  • 13
8
votes
2 answers

Virtualbox: How to connect to the display when launched via vagrant?

I've used vagrant to set up ubuntu 12.10. How can I actually connect to the graphical desktop? There doesn't seem to be a way in the Virtualbox manager. It shows a preview but the 'show' icon is disabled. It's a bit of a fiddle but I can suspend the…
sarah
  • 561
  • 1
  • 4
  • 9
7
votes
2 answers

systemd Vagrant and VirtualBox: wait for synced folder to mount

I'm trying to setup a systemd service on a Vagrant box which requires the Vagrant synced folder to be mounted before starting. Vagrantfile Vagrant.configure(2) do |config| config.vm.box = "ubuntu/yakkety64" config.vm.synced_folder ".",…
rich remer
  • 489
  • 4
  • 11
1 2
3
30 31