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
15
votes
14 answers

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 "vagrant up" I get this message: Bringing machine…
PoLIVoX
  • 195
  • 1
  • 1
  • 6
15
votes
3 answers

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: config.vm.share_folder("v-root", "/vagrant", ".", :nfs =>…
user71736
14
votes
4 answers

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 my.cnf and hope that the second entry overwrites the…
nonsenz
  • 371
  • 1
  • 2
  • 8
13
votes
8 answers

Can't SSH into a Vagrant Virtual Machine

Local Vagrant machine installed at IP address 10.0.0.23 with hostname lamp-vm. Using vagrant ssh command, I can connect just fine and do everything I need. This creates an error $ ssh vagrant@lamp-vm -v -v debug1: connect to address 10.0.0.23…
csi
  • 1,555
  • 7
  • 23
  • 42
12
votes
2 answers

Expose virtual machine (vagrant) to local Wifi

I've setup a local virtual machine (ubuntu 12.4) using Vagrant (www.vagrantup.com) and need to share its resources on my local wifi network. It is basically running a webserver which should be accessible by other machines on the local network. My…
Philipp
  • 161
  • 1
  • 1
  • 4
12
votes
1 answer

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?
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
12
votes
3 answers

`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 cwd "/home/vagrant" …
neezer
  • 810
  • 3
  • 12
  • 29
11
votes
3 answers

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 directories with VirtualBox: instead, the Virtualbox…
Cera
  • 553
  • 4
  • 6
  • 13
11
votes
2 answers

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

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 install it first. However I've discovered two ways…
Hyperfocus
  • 1,177
  • 4
  • 14
  • 23
11
votes
3 answers

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 www?!?!). The host that the VM is running in can…
Meltemi
  • 579
  • 2
  • 11
  • 24
10
votes
1 answer

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 about the software running in the VM and not so…
chiborg
  • 1,083
  • 2
  • 13
  • 27
10
votes
4 answers

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 running puppet 3.1.1 I am trying to set up an…
greg_1_anderson
  • 291
  • 1
  • 2
  • 6
10
votes
1 answer

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 vars: home: '/home/vagrant' curl_version:…
Duncan Lock
  • 1,812
  • 1
  • 17
  • 18
10
votes
2 answers

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 devs to use their favorite IDEs on their host…
Scott Coldwell
  • 468
  • 5
  • 9
10
votes
2 answers

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 08:00:27:12:96:98 inet addr:10.0.2.15 Bcast:10.0.2.255 …
localhost
  • 203
  • 1
  • 3
  • 6
1
2
3
30 31