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.

learn more… | top users | synonyms

14
votes
1answer
7k 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 ...
12
votes
2answers
4k 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 ...
10
votes
4answers
3k 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 ...
8
votes
2answers
1k 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
2answers
881 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
4k 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

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 ...
6
votes
1answer
135 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 ...
5
votes
2answers
1k 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 ...
5
votes
2answers
2k 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 with out any trouble. I am able to run vagrant up and vagrant ssh with out ...
5
votes
1answer
369 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 ...
5
votes
1answer
593 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 ...
4
votes
3answers
3k 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
1answer
2k 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) ...
4
votes
1answer
1k 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. ...
4
votes
1answer
1k 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?
4
votes
1answer
84 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
2answers
1k 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
3answers
5k 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). ...
4
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: ...
4
votes
1answer
72 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
528 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
1answer
560 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', ...
3
votes
2answers
337 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
1answer
229 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 ...
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
1answer
86 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
541 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.
3
votes
4answers
811 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
3k 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 ...
3
votes
1answer
324 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] ...
3
votes
1answer
285 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 ...
3
votes
1answer
417 views

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections ...
3
votes
1answer
511 views

vagrant and puppet security for ssl certificates

I'm pretty new to vagrant, would someone who knows more about it (and puppet) be able to explain how vagrant deals with the ssl certs needed when making vagrant testing machines that are processing ...
3
votes
1answer
296 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 ...
3
votes
2answers
1k 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 ...
2
votes
3answers
3k 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" ...
2
votes
3answers
1k 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 ...
2
votes
2answers
569 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 ...
2
votes
1answer
116 views

Can't find installed module on modulepath

I'm attempting to use the maestrodev/rvm module when provisioning a virtual machine with Vagrant, but am running into a problem when attempting to include rvm. I keep getting Error: Could not find ...
2
votes
1answer
259 views

Vagrant-aws not provisioning

I'm trying to spin up and provision an EC2 instance with Vagrant, it successfully creates the instance up and I can then use vagrant ssh to SSH into the it but Puppet doesn't seem to carry out any ...
2
votes
1answer
95 views

Running puppet on a single machine using a vagrant produced cluster

I am building a four cluster machine with Vagrant and provisioning those machines using puppet. I want to find a way to get my puppet scripts to only run on an individual machine. As it stands right ...
2
votes
2answers
387 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 ...
2
votes
1answer
295 views

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

I'm investigating Ansible for server and application provisioning. My application is currently provisioned with shell scripts in Vagrant. Rather than rewrite my scripts I've taken a sample and ...
2
votes
1answer
982 views

Vagrant with VMware ESXi Provider

I am attempting to work with Vagrant and the vagrant-vsphere plugin to deploy machines to my VMware ESXi server. Has anyone had any luck in getting this to work? I realize that vagrant-vsphere is ...
2
votes
1answer
104 views

Vagrant: Reload the vagrant from a chef recipe?

In my ubuntu vagrant I've got a recipe that does apt-get update then apt-get upgrade -y. I've got a final recipe that reboots the machine if a restart is required. Since I'm using NFS to share my ...
2
votes
0answers
340 views

virtualbox to qemu but results in no bootable device qemu

I use vagrant to create my development vm. I exported the vmdk to vdi, and then convert the vdi to img. cd virtualbox_dir/test_vm VBoxManage clonehd test_vm.vmdk raw.vdi 0% ..... 100% qemu-img ...
2
votes
0answers
52 views

Trying chef cookbooks before uploading

We're using Vagrant & Chef to provision the staging VM for our app. Once I have a working cookbook, I upload it to chef-server and Jenkins hook ensures the staging env gets updated. However, ...
2
votes
1answer
61 views

Display GUI on single machine in Vagrant Cluster

I am launching a cluster of VM's using Vagrant. I want to have only a single machine display it's GUI. The only means I've found to turn on the GUI is with config.vm.provider "virtualbox" do |v| ...
1
vote
2answers
136 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' ...