Tagged Questions

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

0
votes
1answer
28 views

Using vagrant to isolate my whole environment [closed]

I want to use Vagrant to isolate my whole development environment from my system (OS X 10.9.3), and not just for a specific software project. Is Vagrant a right tool for this task, or there are better ...
2
votes
1answer
674 views

Vagrant's puppet provisioner not reading hiera.yaml backend correctly?

I have a puppet problem that is specific to the way that Vagrant uses the manifests/modules/hiera-config with its puppet provisioner, since a "puppet apply site.pp" works fine in the resultant vagrant ...
0
votes
2answers
2k views

Booting Vagrant Box error/timeout after “aborted state”

One of my Vagrant boxes ended up with an "Aborted" state, apparently I ran out of memory or something, and yeah. Now the box is not booting... properly. Here is what I got: $ vagrant up cloud2 ...
1
vote
1answer
434 views

Vagrant synced_folder syntax for nfs options (trying to disable nfs_export)

I'm trying to disable the nfs_export option in my Vagrantfile, so that Vagrant will not touch my /etc/exports. The Vagrant documentation says: NFS synced folders have a set of options that can be ...
3
votes
1answer
237 views

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to ...
5
votes
1answer
819 views

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 ...
0
votes
2answers
70 views

Vagrant is creating files and folders in my project

Recently I updated Vagrant (v 1.6.3) and I noticed that in the folder of my project there are some new folders and files like: d20140610-11944-1j6n1cz/ d20140610-15421-1pkz3t8/ ...
2
votes
0answers
323 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 ...
1
vote
1answer
616 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
0answers
982 views

vagrant fails to bring up additional adapter for centos vm using virtual box provider

this is in continuation of the question asked here about host only adapter on dhcp I upgraded to vagrant 1.6.3 and the updated Vagrantfile to following setting for multiple adapters # add additional ...
-1
votes
1answer
422 views

Install PHP 5.3.X, PHP 5.4.x and PHP 5.5.x in the same environment using Puppet

Anyone already tried to install these three version using Puppet in Ubuntu? I have a VM that is managed by Vagrant and I want to have these three version so I can specify which PHP version I should ...
0
votes
1answer
1k views

adding additional network adapter to use host only network with dhcp in vagrant using virtualbox provider

here's what I am trying to achieve adapter 1 runs on usual NAT add an additional adapter using the vboxnet0 host only network I have created in virtual box, this one uses DHCP server the reason I ...
1
vote
0answers
133 views

UWSGI is not creating my socket

So, i'm getting an error because my .sock file is not being created by uwsgi. I'm also running a VB with vagrant. my uwsgi.ini [uwsgi] master = true pidfile = /tmp/uwsgi-%n.pid workers = 12 ...
1
vote
1answer
426 views

Package a VM built with Vagrant as an OVA appliance

I've created a virtual machine with Vagrant and some provisioning scripts. Now I want to hand out copies of the fully provisioned machine to participants at a workshop. This workshop will be mainly ...
0
votes
1answer
590 views

Timeout when connecting to Vagrant VM via hostname with port forwarding

I am trying to get a Vagrant VM setup that has been distributed to me (so I did not configure it myself). I have installed the VM using vagrant upsuccessfully, but when I try to use a browser to hit ...
3
votes
1answer
442 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": ...
2
votes
2answers
2k views

Repackaged Vagrant (vbox) box will not allow ssh after subsequent imports

I'm experiencing the following. If I download and run a base box (ubuntu/trusty64), make some modifications like installing packages, then shutdown and repackage the box, on subsequent imports it ...
0
votes
1answer
949 views

How to deliver private ssh keys for a virtualbox controlled by vagrant?

By default, Vagrant uses an insecure private key used when logging into the machine with vagrant ssh. Vagrant supports specifying a different private key via private_key_path however I am not clear ...
2
votes
1answer
306 views

Use Ansible to create vagrant box ?

I am new to Ansible and I bit confused if I can better use Vagrant to create VM instances (on EC2 and local virtual boxes) and use Ansible only for provisioning or if I can/should use Ansible to ...
4
votes
1answer
97 views

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so ...
1
vote
1answer
1k views

Puppet exec command with variable not executed

I have a very simple Puppet (sub)module that should use Git to clone a repository from a remote location: class wppuppet::git( $location = '/var/www/wp' ) { file { $location: ensure => ...
1
vote
1answer
325 views

vagrant halt hanging while trying to detect guest OS

I'm trying to halt a vagrant vm using 'vagrant halt' and it seems to be hanging up on detecting the guest OS. (vagrant 1.5.1, centos 6.5 vm). Is this a bug in vagrant or something wrong with our base ...
2
votes
2answers
160 views

veewee: build gets stuck during installation of libssl on debian 7.4

I'm new to vagrant and veewee. I'm trying to build a debian 7.4 image but after running the build veewee vbox build 'debian-7.4' the process gets stuck on the installation of libssl because it ...
1
vote
1answer
868 views

httpd service will not start on boot under CentOS 6

I am having trouble configuring a CentOS 6 Vagrant setup to start the Apache service on boot. I have tried using chkconfig and the OS seems to just ignore it. When I run sudo chkconfig --list httpd, ...
1
vote
2answers
2k views

npm install on vagrant virtualbox

Seem to be having A LOT of trouble figuring this one out, but I'm attempting to use vagrant and provision a server that uses node / npm to install dependencies. My setup is: ubuntu 12.04 host (old ...
0
votes
0answers
107 views

Preferred “Chef/Berkshelf/Vagrant” Way to Change Java Versions

On a Linux box, what's the preferred, best-practice way of switching Java versions? For example - let's say that I want to build & test out my app on Java 7, and then Java 6. Here's a few ...
0
votes
0answers
88 views

Rysnc error using Vagrant + Rackspace plugin

Most of the time when I use the do a vagrant up --provider=rackspace I get the following error: ==> default: Waiting for SSH to become available... ==> default: The server is ready! ==> ...
1
vote
0answers
370 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 ...
3
votes
7answers
10k 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 ...
0
votes
1answer
166 views

Vagrant muulti-vm mode configure network

Does any one know how to configure multi-vm mode to be able to communicate each VM with others. I want to deploy client-server application and my VMs can't communicate by dns without adding hosts ...
2
votes
2answers
2k views

Ansible not executing host specific playbook in Vagrant multi-machine provisioning

When provisioning with ansible in Vagrant, I am unable to get server/role specific playbooks to run. There is a common playbook run for all hosts, and that is working, but when trying to target a ...
4
votes
3answers
708 views

Changing the mysql bind-address within a script

What would be the best way to change the mysql bind-address in the my.cnf from a shell script? Is there a way using a tool like mysqladmin or should I use sed or should I simply append it to the ...
0
votes
0answers
104 views

Vagrant use host public ip addresses

I want to encapsulate an OpenVPN server with Vagrant. My host machine has 1k public ip addresses and I currently allocate each ip address to a user connecting to it. For example if user xxx connects ...
0
votes
2answers
1k views

“/usr/bin/env: bash: No such file or directory” during puppet exec command

I am setting my first steps into puppet. I am trying to setup ambari. This is my puppet config: exec { "ambari-repo": command => "curl ...
0
votes
0answers
121 views

Identical Vagrant VM's install pip packages differently?

I have a vagrant VM being provisioned via Puppet. I'm testing this on two different Ubuntus, 12.04 and 13.10, both using the "standard" precise32 box. The application I'm testing is a Django ...
0
votes
1answer
114 views

Use a LAN IP for dnsmasq

We have a single iMac in our office running a Vagrant box exposing the public IP of 192.168.1.70. Everyone in the office used to all be able to access sites on this box (which all use ".dev" such as ...
0
votes
1answer
834 views

Vagrant w/VirtualBox and Multiple Network Interfaces [closed]

What's the right way to configure multiple network interfaces with Vagrant? Here's the simple Vagrant file I'm testing with: . Vagrant.configure("2") do |config| config.vm.provider :virtualbox do ...
0
votes
1answer
209 views

Unable to build_image when using Docker provisioner on vagrant

When I try to use the Docker provisioning in Vagrant config.vm.provision "docker" do |d| d.build_image "/vagrant/app" end I get the error There are errors in the configuration of this machine. ...
4
votes
1answer
3k 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 ...
3
votes
1answer
1k 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 ...
1
vote
5answers
3k views

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 ...
0
votes
1answer
47 views

creating development environment with a button click

We create development and testing environments manually and its taking lot of manual effort and time now. We want to completely automate that like "click a button to create a development/testing ...
0
votes
1answer
146 views

Tunnel interface inside Virtualbox IP forwarding

I am working on a solution to expose a development stack that resides inside a Virtualbox guest up to the Internet through OpenVPN tunnels. OpenVPN client fires up inside the guest VM and connects ...
3
votes
0answers
194 views

Interactive commands with vagrant ssh. Backspace does not erase character

I have up and running Ubuntu precise32 vagrant machine. Now I have some scripts on this guest machine. Those scripts are interactive and are not part of the provisioning. What I want is to execute ...
1
vote
0answers
194 views

Vagrant bridge to openvpn interface?

Setup: A box running OpenVPN server and few Vagrant virtual machines Problem: I would like to access Vagrant boxes directly from VPN clients as regular machines, and not on only few forwarded ...
4
votes
1answer
1k views

Ansible playbook not working trying to run make & configure with complex switches

This is a follow-on to this question. I'm trying to use Ansible to provision a Vagrant VM. The VM is running CentOS 6.4. I'm using the following (abbreviated) ansible playbook: - hosts: default ...
1
vote
2answers
1k views

Ansible playbook not working trying to run patch

I'm trying to use Ansible to provision a Vagrant VM. The VM is running CentOS 6.4. I'm using the following (abbreviated) ansible playbook: - hosts: default vars: home: '/home/vagrant' ...
1
vote
1answer
216 views

Problems with Exec in Puppet

i want to to run the following command with puppet: sb2-init rasp /home/ubuntu/raspberry_pi_development/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc In ...
4
votes
1answer
228 views

Print hiera config to multiple lines in config file managed by puppet

In my yaml file I have multiple values that need to be printed out into an ini file managed by another php module. I can grab the values through heira and output them to the ini file but it's in the ...
0
votes
1answer
245 views

Recreating CentOS environment with Vagrant

I have a Vagrant and CentOS related question. I'm trying to replicate a CentOS server which uses WHM/cPanel for hosting. Each site on the server is hosted in /home/$user/. This means with Vagrant I ...