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
3
votes
1 answer

Vagrant + VirtualBox + X11 on a headless server

I'm trying to run a VirtualBox Ubuntu VM via Vagrant on a headless server. The VM has ubuntu-desktop package installed, however when the machine boots up I can't open X applications. DISPLAY environment is empty and setting it to ":0" doesn't…
Tomek
  • 153
  • 1
  • 5
3
votes
2 answers

Apache 2.4 & Ubuntu 14.04 error on Vagrant: "You don't have permission to access / on this server."

I realize there are a lot of similar questions on here, but I've been struggling with this for hours and have been unable to find a solution. When I try visiting my Vagrant Ubuntu box via the host name shopwise.dev (set to the Vagrant box's IP in…
Nate
  • 449
  • 6
  • 11
  • 24
3
votes
1 answer

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 creating and managing AWS resources—combined with…
3
votes
2 answers

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 log file): Operation not permitted FATAL: could…
Thomasleveil
  • 441
  • 5
  • 14
3
votes
1 answer

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 Mac terminal. But the "vagrant ssh" command sticks…
Brady Lee
  • 41
  • 1
  • 6
3
votes
0 answers

vagrant ssh - asks for password after adding synced_folder

I can vagrant ssh into my box fine Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64) * Documentation: https://help.ubuntu.com/ Last login: Mon Apr 13 13:05:26 2015 from 10.0.2.2 vagrant@web01:~$ in my provisioning script, I…
Gravy
  • 127
  • 8
3
votes
1 answer

"More than one MPM loaded" when trying to start apache on Vagrant Ubuntu box

Whenever I try sudo apache2ctl start I receive the following message: AH00534: apache2: Configuration error: More than one MPM loaded. Action '-k restart' failed. The Apache error log may have more information. When I check…
JamieHoward
  • 131
  • 1
  • 1
  • 4
3
votes
4 answers

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 available... I had to ctrl-c the job which results in…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
3
votes
1 answer

Is it possible to use Docker or Vagrant to provision a physical machine

Currently at my work we use buildroot to provision physical machines with Debian linux. Buildroot compiles a rootfs.cpio.gz file which the machines to be provisioned pick up using PXE, runs a script which gives us some install time options, then…
hamstar
  • 745
  • 3
  • 9
  • 20
3
votes
1 answer

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 deployed VM (when applied locally in the guest…
SeligkeitIstInGott
  • 179
  • 2
  • 5
  • 19
3
votes
3 answers

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 fails to connect on vagrant up. This is not the…
Sam Halicke
  • 6,222
  • 1
  • 25
  • 35
3
votes
2 answers

How to upload configuration files using the shell provider?

Apart from installing applications like emacs on my guest machine, I would also like to upload some configuration files (e.g. to configure emacs for Clojure development). Sadly, Vagrant's documentation gives no clue about how to do this. I guess I'd…
Trollhorn
  • 203
  • 3
  • 10
3
votes
1 answer

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 class rvm for vagrant-ubuntu-saucy-64 on node…
user80919
3
votes
2 answers

How to restore Linode to Vagrant VM?

I'm trying to set up a Linux development environment so I can safely make changes to my website without breaking the live site. Linode hosts my live site. A simple solution would be to host my development server on Linode as well, but I want to…
Iain Samuel McLean Elder
  • 1,232
  • 4
  • 15
  • 27
3
votes
3 answers

Virtualbox / Vagrant "closed by remote host" during routine use

I am attempting to install OpenTreeMap in a Ubuntu environment. Hosted at DigitalOcean, one of their "Droplets". As part of the install process I have installed and configured Virtual Box and Vagrant to virtualize the environment. I have made it…
Patrick Moore
  • 141
  • 1
  • 9