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 ...

learn more… | top users | synonyms

1
vote
2answers
998 views

How to install APC on a vagrant box running Ubuntu 12.04 with PHP 5.4?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
21
votes
4answers
10k views

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 ...
6
votes
4answers
5k views

How to set up :datadir: when using Hiera with Puppet and Vagrant

I'd like to know how to set up :datadir: in hiera.yaml for optimal usage with Puppet and Vagrant. Currently I'm using vagrant 1.5.0 with virtualbox 4.2 on Ubuntu 13.10 with an Ubuntu 12.04 guest ...
4
votes
1answer
517 views

Cookbook not found with vagrant, berkshelf and chef-solo

I'm attempting to get a vagrant instance up and running, but when I do vagrant up --provision, it fails with the error: ERROR: Cookbook postgres not found. I'm using vagrant-berkshelf, which ...
0
votes
1answer
21 views

Ansible sudo error while building on Atlas

I've been trying to build my Vagrant configuration on Atlas. Also I'm using ansible for provisioning and i have some sudo issues. After setting up VM while trying to run ansible playbook on Atlas I ...
0
votes
0answers
11 views

Package libapache2-mod-fastcgi is not available when trying to install FPM on Debian 7.8

I'm using Vagrant with Debian 7.8 and wanted to clone our production server. Our production server has php-fpm installed, however, I'm not able to install it. When trying to install my packages for ...
3
votes
1answer
2k views

Remote automated provisioning to a XenServer Hypervisor

I'm currently working on a project where I use Vagrant with Ansible provisioning to create local environments in VirtualBox. I'm currently working with a University and we have a XenServer Hypervisor ...
3
votes
1answer
1k views

Enable FastCGI on Apache with Puppetlabs/Apache

I'm using Puppetlabs/Apache to configure Apache. In the main puppet file, I call and configure it: class { '::apache': } class { '::apache::mod::fastcgi': } apache::vhost { "${::fqdn} non-ssl": ...
0
votes
1answer
39 views

What benefit is there to using Vagrant for AWS resource management when using Ansible for provisioning?

I understand that Vagrant is a tool to create and manage virtual machines; and that Ansible is a tool to configure one's machines (virtual or otherwise). However, Ansible's AWS modules are capable of ...
1
vote
1answer
3k views

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 Hey Guys, 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 ...
-1
votes
0answers
4 views

How to force Vagrant to have a single, bridged, network interface [migrated]

Using vagrant 1.7.2 on OSX (MacBook Pro), Ubuntu 14.04 guests, VirtualBox 4.3.26. Mac is connected to the world via standard WiFi interface. I want the Vagrant boxes to use the bridged network on the ...
0
votes
2answers
28 views

Puppet - Automatic provisioning with Vagrant VMs

I have three virtual machine that I have created using Vagrant. This virtual machine have as box ubuntu/trusty64. I have created all VMs in the same Vagrantfile as single project. To provision it, I ...
0
votes
1answer
173 views

Vagrant and MariaDB (provision)

I'm trying to create a provision file that installs MariaDB but it keeps failing. The provision looks like this: sudo apt-get install -y software-properties-common sudo apt-key adv --recv-keys ...
0
votes
0answers
8 views

HAProxy inside docker container on a Virtualbox don't get header host [migrated]

I have a HAProxy running inside a docker container that listens traffic on port 80. I'm using acl to route certain requests like so: frontend www-http bind *:80 ... acl host_web_app ...
0
votes
0answers
25 views

Vagrant - Install simple apache2 server

I'm trying to do one example of Vagrant use, using shell as provisioning and installing apache2 to try: Port forwarding Apache2 server To make that, I'm trying to use the follow Vagrantfile and ...
1
vote
0answers
21 views

What am I “not getting” about Vagrant deployment, especially with respect to vSphere

I've recently set up VVV and VV among other things, and they've been great. So great in fact that I want to deploy them as boxes to production. So I have one box that hosts a WordPress site on it. ...
0
votes
1answer
231 views

View PHP error logs on VM - Vagrant CentOS via Puphpet

I have a Vagrant VM running CentOS, which was built from a puphpet file (config.yaml), and I'm trying to get the PHP error logs setup and accessible. config.yaml - PHP section: php: install: '1' ...
0
votes
0answers
8 views

How to convert Dynamically Sized VirtualBox Hard Drive to a Fixed size? [migrated]

I have been trying to convert the Dynamically sized hard drive to a fixed size to increase the VM box performance. I tried to follow the instruction on Convert Dynamically Sized VirtualBox VDI Hard ...
0
votes
2answers
177 views

Chef freezes on vagrant centos box

I have a centos-6.5 box. Strangely it freezes when I try to request its provision by chef. Here's a sample of what goes when I try to vagrant provision --debug it [2014-10-10T20:33:33+00:00] INFO: ...
1
vote
2answers
42 views

Can't connect to a Vagrant/VirtualBox virtual machine

My ultimate goal is to install Puppet on a Vagrant CentOS box. The installer is tells me to connect to https://localhost:3000. My host is Windows. To troubleshoot why I can't connect I started ...
2
votes
2answers
28 views

Setting a MAC address from file for a VM

I'm not sure if this is entirely possible so thought it was worth asking. I would like to use Vagrant to allow users to spin up a VM when needed. However, on our network devices must be registered via ...
0
votes
0answers
32 views

Puppet : Invalid resource type anchor

Im trying to install our 'flume_ng` to mimic our prod environment. After organizing the directory structure, I use the puppet apply command sudo puppet apply -e 'include flume_ng' ...
4
votes
3answers
3k views

How to get decent NFS performance for workloads like git?

I manage a vagrant setup for our developers running OSX to manage VirtualBox systems for development. In order to support inotify inside the linux machine, we eschew the usual method of sharing ...
0
votes
1answer
42 views

Debian server is showing PHP code instead of interpreting it

I was told on stackoverflow to post this question here: Scroll down to see result of things I've done based on suggestions I am setting up my first project using Vagrant. I chose the following ...
0
votes
1answer
1k views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
5
votes
12answers
24k views

Vagrant Error: Connection timeout. Retrying

I have a server with Ubuntu 12.04, Virtualbox 4.3 and Vagrant 1.5.1. I'm trying to use this box http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box however unsucessfully. When I run ...
1
vote
0answers
26 views

Why does Vagrant occasionally 'forget' that there is already a VM running when I try to SSH into Vagrant machine? [closed]

I keep running into an issue where when I try to SSH into my vagrant environment, it gives me the following error to the console: $ vagrant ssh VM must be created before running this command. Run ...
0
votes
0answers
18 views

Provisioning Vagrant Environments Capable of Cloning Repos Immediately

For some reason, I am having an incredibly hard time getting a working solution for this. We are ATTEMPTING to use Vagrant to provision our development environments. In regards to this post, our ...
0
votes
0answers
98 views

Vagrant FastCGI comm with server timeout

I'm trying to set up a vagrant box provisioned with puppet that installs a LAMP stack with php-fpm (apache 2.2 / php 5.5 / mysql5.5). It also adds a magento project in /var/www/src with the following ...
0
votes
1answer
22 views

multi machine vagrant file as a active-passive cluster

I have configured a multi-machine Vagrant file with two VMs acting as a mini failover active-passive cluster. As the running services are the same and running on the same port, Vagrant doesn't allow ...
1
vote
3answers
1k views

Unable to ssh to a vagrant started ec2 ubuntu instance

After I ran vagrant up --provider=aws, I could see an ec2 instance being created and became up and running. However it will invariably stuck at this point ==> default: Waiting for SSH to become ...
0
votes
1answer
281 views

SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent

Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in ...
0
votes
0answers
39 views

Create and synchronize development, staging and production servers?

I'm building a PHP application, and I'm running all the development environment (Netbeans IDE, Apache, PHP and PostgreSQL) inside the same virtual machine. I would like to prepare three diferents ...
0
votes
0answers
41 views

How can I use host only networking from Vagrant with a static IP?

I have a device on my host operating system with the following configuration: vboxnet2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:02 inet ...
4
votes
4answers
10k views

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" ...
1
vote
1answer
838 views

Unable to install nginx from source in provisioning script

I'm using Vagrant to build a reproducible virtual machine for one of my projects. This virtual machine needs a basic LEMP stack, and I'm using a shell script to provision it after it's created. The ...
0
votes
1answer
42 views

vagrant virtual machine making macbook run extremely hot [closed]

Everytime I run vagrant up to start my Vagrant box for development work my Macbook Pro fan kicks on and churns endlessly. The vagrant box is a Linux virtual server (CentOS) running Railo, Tomcat, ...
2
votes
1answer
1k views

How to configure network on EC2 instance launched by Vagrant?

This is my AWS setup: 1 VPC with: default public subnet, 10.0.0.0/24 1 EC2 micro instance, private 10.0.0.172 and public Elastic IP 1 RDS instance, running MySQL The EC2 instance has network ...
0
votes
1answer
85 views

fail to start postgresql when used with vagrant

Trying to start postgresql on a Virtualbox VM managed by Vagrant I have the following error: LOG: could not link file "pg_xlog/xlogtemp.29" to "pg_xlog/000000010000000000000001" (initialization of ...
1
vote
2answers
230 views

Copy files from guest to host the first time with rsync using Vagrant

When doing vagrant up a "shell" provision download some files into the synced folder. Those files should be also copied to the host machine synced folder, so that the project would be available from ...
0
votes
0answers
65 views

What port do I need to use to see the Rabbitmq management plugin via vagrant and docker on Mac OS X

I am on Mac OS X. I run the latest version (as of June 2015) of Vagrant, Docker, Virtualbox, and rabbitmq. I have the following Vagrantfile, and it all starts up well and rabbitmq also starts up well ...
0
votes
0answers
35 views

Vagrant: Mounting Home Directory via NFS

I'm running multiple VMs with the same operating system and I'd like to share my dotfiles between them. In setting up my vagrant file I originally tried: config.vm.synced_folder ...
1
vote
0answers
145 views

How to setup automatic SSH-tunnel to remote machine in vagrant

I've created a provisioner script which helps me to create an SSH tunnel to a remote machine from within my vagrant box (Ubuntu 14.04 LTS) every time the box is started. Interesting part of my ...
0
votes
1answer
323 views

Gem installation on vanilla ubuntu fails - EACCESS

I'm trying to install the Middleman gem on a completely generic installation of Ubuntu Trusty (i386). Here's my console input/output: vagrant@vagrant-ubuntu-trusty-32:~/rj$ which ruby /usr/bin/ruby ...
0
votes
0answers
44 views

Vagrant machine not install npm dependencys

I'm trying to build a virtual environment with Vagrant for there to make deploy a project in Node, the machine runs properly and after created and up to run a shell script to install: git, nodejs and ...
0
votes
0answers
119 views

500 error only in Chrome/Chrome Canary for Vagrant hosted site

I'm running a Drupal multi-site in a Vagrant box and when I hit one of the sites in Chrome or Chrome Canary I get a 500 Internal server error (http://site.localhost). When I hit the site in Firefox ...
0
votes
0answers
552 views

How to change the ssh auth method in vagrant, from password to private key?

I run vagrant(1.7.2) on Mac OS(10.10.3) with Snappy Ubuntu Core(15.04 stable), for docker, using VirtualBox 4.3.28 as a provider. I can manually ssh in the Ubuntu guest OS by a private key method in ...
1
vote
2answers
188 views

how to configure jenkins via chefzero vagrant provisioner

using the jenkins cookbook 2.2.2 ==> https://supermarket.chef.io/cookbooks/jenkins i can bring up jenkins in vagrant vm using chef_zero provisioner with chef.run_list = [ ...
0
votes
0answers
85 views

Chef / Vagrant - Kitchen cant connect to Update Jenkins

Iam getting crazy with Chef, Vagrant and Test-Kitchen. We have an customized Jenkins Cookbook, it works on "normal" Clients without Cooperate Network Proxys, but fails behind with the following ...
0
votes
0answers
79 views

Case-sensitive Mac image becomes case-insensitive in Vagrant

I used Disk Utility to create a case-insensitive disk-image which I then shared with my Ubuntu/Vagrant instance. It's odd. Even though that filesystem acts case-sensitively in Yosemite it becomes ...