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: I need a provisioning system with no dependecies

Getting off the ground with a vagrant config. Host is Windows. I have a really simple config, so I wanted to use Ansible, but got this: [default] Running provisioner: ansible... The executable 'ansible-playbook' Vagrant is trying to run was…
ezuk
  • 323
  • 2
  • 4
  • 11
3
votes
1 answer

Can I use Vagrant for Production Environments

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 development machines?
Pedro
  • 667
  • 2
  • 9
  • 20
3
votes
2 answers

"vagrant up" fails with "NS_ERROR_CALL_FAILED" error

I am following the basic "Getting Started" guide: http://docs.vagrantup.com/v2/getting-started/index.html I ran vagrant init followed by vagrant up, but it fails with "NS_ERROR_CALL_FAILED" error. Then by enabling debug logging with…
Peter
  • 141
  • 4
3
votes
1 answer

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 ca.pem, public, private, and cert key files for the…
Andy Shinn
  • 4,211
  • 8
  • 40
  • 55
3
votes
2 answers

Routing a host to Vagrant

Vagrant I currently have a set up on my development computer that uses apache and the hosts file to point to different folders. I's worked great but I've just discovered vagrant. The only problem with using vagrant is I seem to loose all the ability…
andy
  • 239
  • 1
  • 4
  • 10
3
votes
1 answer

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 the same node definition as the real production…
Sirex
  • 5,499
  • 2
  • 33
  • 54
3
votes
3 answers

Using a proxy with Vagrant & Puppet

I'm trying to run a puppet manifest which depends on the target machine having proxy settings to access the Internet. I haven't been able to pass http_proxy_host as Puppet suggests (I believe its a bug?). I've tried to update .bashrc on my Debian…
Drew
  • 31
  • 1
  • 2
3
votes
1 answer

Port forwarding doesn't work in VirtualBox (Vagrant)

I have got VirtualBox (Vagrant actually) with CentOs. I have got port forwarding there (NAT). For example, I have got some application in my box bound to port 8080. Port is forwarded. So I can connect to this port from my host and guest…
fl00r
  • 575
  • 2
  • 7
  • 20
3
votes
0 answers

What the best way to export a Vagrant box to OVF?

My goal was to create a Virtual Machine programmatically like you would do for a container with docker and be able to export it in an OVF. So I used Vagrant to create the VM. Combining Vagrant and Packer I found 3 ways to achieve this with…
noraj
  • 273
  • 3
  • 9
2
votes
1 answer

How to configure SSH for Vagrant environment?

I prepared a cluster of 4VM's with this Vagrantfile. hosts = { "n1" => "192.168.77.10", "n2" => "192.168.77.11", "n3" => "192.168.77.12", "n4" => "192.168.77.13" } Vagrant.configure("2") do |config| # always use Vagrants insecure key …
Richard Rublev
  • 145
  • 1
  • 2
  • 9
2
votes
0 answers

Local connect to vagrant VM while connected to VPN

I have several local vagrant machines running which work fine. My problem is that I have to use VPN (forticlient) a lot and when connected to the VPN all access to my local vagrant boxes get routed over the VPN which is really slow. How can I…
maxhb
  • 129
  • 5
2
votes
3 answers

How to expose services running on minikube installed in the vagrant box?

Infrastructure: +------------------------------------------------------+ | Host | | +-----------------------------------+ | | | Vagrant box | | | …
NarūnasK
  • 368
  • 4
  • 17
2
votes
1 answer

Cannot retrieve metalink for repository: epel

I've got two CentOS servers, one inside a Vagrant virtual machine with VirtualBox provider and one on rented VPS. They use the same playbook for provisioning. Everything is fine on VPS one but I'm having an errors around EPEL for the local one. I've…
Melcma
  • 121
  • 1
  • 3
2
votes
0 answers

How to run binary file using vagrant and keep it running in the background?

I have a binary file which I need to deploy or run on my linux server. Currently I'm using a vagrant, here is my Vagrantfile : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box =…
2
votes
1 answer

Ansible can't SSH into the Vagrant Box

Just playing around with Ansible and Vagrant. I created this small Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support…
Stinnux
  • 41
  • 1
  • 6