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

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 absolutely no sense with chef-solo. On the other…
Mike Conigliaro
  • 3,195
  • 2
  • 25
  • 24
6
votes
7 answers

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 /home/$user/rvm-install.sh stable creates=$home/.rvm It pretty…
Toby Hede
  • 309
  • 5
  • 11
6
votes
3 answers

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 find a .box? If not, how would I go about building a…
Mark L
  • 568
  • 2
  • 9
  • 19
5
votes
2 answers

Jenkins 2.x disable initial admin setup

we're using Jenkins as a cron server adding/starting crons via api. We created a vagrant box installing the jenkins. Since version 2.0 jenkins require to create an admin account (link) before disable the security in config.xml. If no admin is…
torsten
  • 61
  • 1
  • 1
  • 6
5
votes
2 answers

Remote automated provisioning to a XenServer Hypervisor

I'm currently working on a project where I use Vagrant with Ansible provisioning to create local environments in VirtualBox. I'm currently working with a University and we have a XenServer Hypervisor (free edition). I can't access the hypervisor…
djsumdog
  • 1,100
  • 2
  • 16
  • 29
5
votes
1 answer

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 allow them to do that. The idea is that when you…
user125756
  • 183
  • 6
5
votes
3 answers

Configure apt to use proxy in vagrant box

I'm using Vagrant to setup a virtual machine for testing. I would like apt inside the virtual machine to use a proxy on the host machine to allow caching of all the downloads to persist between instances of the virtual machine running, not only for…
Danack
  • 1,216
  • 1
  • 16
  • 27
5
votes
1 answer

Vagrant / chef - nginx cookbook extend

I am fairly new to using chef, particularly with vagrant so this will most likely be a silly question to the more experienced users out there. I am using this cookbook: https://github.com/opscode-cookbooks/application_nginx I simply want to add my…
4
votes
1 answer

Get list of forwarded ports

My system has several port forwarding settings active. Among others, I have some Vagrant machines with port-forwarding configured: Vagrant.configure("2") do |config| config.vm.network "forwarded_port", guest: 22, host: 33022 …
blueFast
  • 4,200
  • 13
  • 37
  • 54
4
votes
2 answers

Install vagrant plugin on archlinux

I am trying to install vagrant plugin in ArchLinux and get error Marshal.load reentered at marshal_load. Here is output with debug on: vagrant plugin install vagrant-hostmananger --debug INFO global: Vagrant version: 1.9.4 INFO global: Ruby…
4
votes
1 answer

Vagrant Windows timout config setting having no effect

I've been building and using Linux images in Vagrant for while now, but only recently extended coverage to Windows. I've worked images to cater for sysprep, but this has lead to very slow boot times, and subsequent WinRM timeouts have also been…
Jules Clements
  • 201
  • 2
  • 8
4
votes
1 answer

Why are Puppet effects disappearing after Packer post-process?

I decided to learn Packer by putting together a FreeBSD Vagrant box. The whole setup is on GitHub. Everything works well until the post-processing stage. Actually, that stage likewise claims to complete without error, but when I try to launch a…
kojiro
  • 559
  • 3
  • 8
  • 25
4
votes
1 answer

What is the "preparing" state of a vagrant machine?

When I run vagrant global-status, I see that some of my machines are in the state "preparing", which I have not seen from global-status before. What does this status mean? It seems to change to running after I check on the status of the server…
4
votes
1 answer

Ansible git clone from private repo in Stash

For the life of me I can not figure out why I can not clone a private repo from Stash. Think I have tried: 1) Create 'ansible.cfg' with [ssh_connection] ssh_args = -o ForwardAgent=yes On my project directory. Keys works fine on host as I can…
Mazzi
  • 141
  • 4
4
votes
3 answers

Copy files from guest to host the first time with rsync using Vagrant

When doing vagrant up a "shell" provision download some files into the synced folder. Those files should be also copied to the host machine synced folder, so that the project would be available from the host. When using the NFS to sync, this is done…
Manolo
  • 552
  • 2
  • 8
  • 23