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

23
votes
2answers
8k views

Vagrant / virtualbox DNS 10.0.2.3 not working

This is a follow on to my previous question Vagrant Getting Started gives getaddrinfo: Temporary failure in name resolution. I am running a fresh install of Linux Mint Nadia (14). I am following the ...
20
votes
2answers
4k views

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 ...
19
votes
1answer
11k views

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

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 ...
15
votes
2answers
6k 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 ...
8
votes
2answers
4k views

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) ...
8
votes
3answers
10k views

Public static ip for vagrant box

I have server (Debian Squeeze) with 1 ethernet card and 2 public static IPs (188.120.245.4 and 188.120.244.5). What I want: Setup virtual box (Ubuntu) with access via static IP (188.120.244.5). ...
8
votes
3answers
2k views

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: ...
8
votes
3answers
2k views

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

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

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 ...
7
votes
2answers
1k views

Virtualbox VM (spawned by Vagrant) running, but inaccessible. What now?

I have a Virtualbox VM running Ubuntu that was started by Vagrant, on an OSX host. At some point, my ssh session to the guest stopped responding. I tried vagrant halt from a terminal window on the ...
6
votes
3answers
6k views

`execute` as vagrant user, not root, with chef-solo?

I'm trying to run the following chef command: # install zombiejs, q (promises), should, coffee-script & mocha execute "install q and zombiejs" do ...
6
votes
2answers
1k views

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 ...
6
votes
1answer
3k views

Puppet error: returned 1 instead of one of [0]

When using Puppet, I get error messages like returned 1 instead of one of [0] Is there a way to output/get the actual error message?
6
votes
1answer
182 views

How to make a Cent OS install as similar to an EC2 rhel based instance as possible?

I'm trying to setup vagrant to deploy locally, while we also want to deploy to elasticbeanstalk. So how can I make my local cent OS Vagrant VM as close to the Amazon EMI as possible? My co-worker ...
6
votes
1answer
439 views

Should I use this simple hack for working around chef-solo's lack of environment support?

Chef-solo’s lack of environment support seems to be pretty controversial. On one hand, one of the features of environments is the ability to pin cookbooks to specific environments, and this makes ...
6
votes
1answer
803 views

Vagrant synced folders aren't case sensitive

For our web stack, we are moving from a Windows Server to CentOS. To facilitate development, we're utilizing Vagrant to run CentOS VMs locally. We're using Vagrant's Synced Folders feature to allow ...
6
votes
2answers
2k views

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

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', ...
5
votes
1answer
2k views

Veewee, Vagrant, Puppet, Erlang and RabbitMQ

I am kinda stuck with a problem I am trying to wrap my head around for days now. Here is what I am doing: By using Veewee, I am creating a VirtualBox image and then I create a Vagrant box from it. ...
5
votes
2answers
3k views

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 ...
5
votes
1answer
851 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 ...
5
votes
3answers
1k views

How do you automatically install puppet modules on `puppet apply`

Is it possible to automatically install or include puppet modules in your puppet config? I'm having to manually run puppet module install before running puppet apply.
5
votes
2answers
1k views

vagrant public ip not accessible

I have this config: config.vm.network "public_network", ip: "192.168.56.101", :mac => "0022334455DA" And after vagrant up ifconfig prints: eth0 Link encap:Ethernet HWaddr ...
4
votes
3answers
5k views

Using vagrant and chef to setup a Windows VM in Ubuntu

I'm running Ubuntu and I want to setup a VM in Virtualbox via Vagrant and Chef. I think what I'm missing is a .box for the Windows Server 2008 R2 x64 trial I have. Does anyone know where I could ...
4
votes
3answers
749 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 ...
4
votes
1answer
1k views

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 ...
4
votes
1answer
98 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 ...
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 ...
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 ...
4
votes
1answer
4k views

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 ...
4
votes
3answers
2k views

Vagrant/VirtualBox can't resolve some domains from w/in VM

Just trying out VirtualBox & Vagrant and my initial lucid64 VM can't resolve us.archive.ubuntu.com but can resolve security.ubuntu.com, google.com and www.apple.com (but not apple.com w/out the ...
4
votes
1answer
231 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 ...
4
votes
1answer
574 views

RedirectLimitExceeded while running chef client

I'm using for the first time chef solo for provisioning a Windows box created with Vagrant. While trying to apply the sql_server cookbook I get the following error: [2013-11-14T09:41:24+01:00] ...
4
votes
3answers
2k views

Vagrant OS X host nfs share permissions error - Failed to set owner to '1000'

I am a Vagrant and Puppet newbie, I have created a Base Box with Debian Squeeze plus standalone Puppet, using the instructions here to install Puppet with the Puppetlabs packages. The box itself ...
4
votes
1answer
1k views

Weird network problems with Vagrant, VirtualBox, Ansible and Ubuntu Server box

We are using Vagrant and Ansible to provision VirtualBox machine. It was working great, but recently we've started to encounter some weird network problems with tasks that require access to the ...
4
votes
1answer
123 views

Why would Puppet exclude a file resource without error?

The oddest thing is happening during this Puppet run (using Puppet Apply) and it has me perplexed. I've tried my usual channels to find solutions but I cannot find anything on the topic. I apologize ...
3
votes
3answers
562 views

Vagrant / puppet workflow

I'm new to puppet and vagrant, but I'm developing my own Puppet manifests intended to set up a vagrant box. That is, the puppet manifest is in my Vagrant directory on the host machine, and vagrant is ...
3
votes
2answers
395 views

why do Vagrant docs suggest using public IP address 33.33.33.10 for local VMs?

I'm following a tutorial to set up vagrant (a tool to build and configure portable virtual machine images), and it seems that vagrant documentation suggests using IPv4 address 33.33.33.10 to configure ...
3
votes
3answers
2k views

Running `apt-get upgrade` with Chef Solo

I'm using Chef Solo to provision a Vagrant VM based on Opscode's "Bento" box for Ubuntu 12.04. When it's done provisioning and I SSH in for the first time, the MOTD tells me there are packages and ...
3
votes
1answer
2k views

Can I use Vagrant for Production Environments [closed]

This week I start playing with Vagrant and Docker. And I'm really excited with all the concept. There is anyone using Vagrant in Production Environments or is just used to maintain images of ...
3
votes
5answers
2k views

Install RVM with ansible

I am attempting to install rvm with ansible on a centos-based vagrant box. The command I am running is: vars: user: "foo" - name: install rvm action: command sudo -u $user bash ...
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 ...
3
votes
2answers
1k views

“vagrant up” fails with “NS_ERROR_CALL_FAILED” error [closed]

I am following the basic "Getting Started" guide: http://docs.vagrantup.com/v2/getting-started/index.html I ran vagrant init <etc> followed by vagrant up, but it fails with ...
3
votes
2answers
2k views

Should I install Ansible with python pip or homebrew on Mac OSX Mavericks? [closed]

I recently moved to using OSX to administrate my linux box, so I'm very new to using linux programs on OSX. I want to use Vagrant with Ansible to bootstrap my development environment, so I need to ...
3
votes
2answers
942 views

How to have Chef use a different ip?

I'm using a bridged network on a vagrant VM with chef-client. knife node show test1-vagrant shows an ip address of 10.0.2.15, which is eth0. eth1 is 192.168.1.5, which is what DHCP gave it. How can ...
3
votes
1answer
243 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 ...
3
votes
1answer
456 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": ...
3
votes
1answer
379 views

Good way to import Puppet pre-generated SSL key pair in Vagrant VM?

I'd like to setup Vagrant to use my current Puppet master as a provisioner. But I don't like the idea of embedding the SSL key pair in the .box file. What I am currently doing is distributing the ...