Questions tagged [vagrant]

GENERAL VAGRANT SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Vagrant is a command line tool for provisioning virtualized environments on top of various providers, including VirtualBox, VMware and AWS.

Vagrant is a tool for building and distributing virtual systems on top of several kinds of virtual machines such as Oracle's or .

It is intended for managing "lightweight, reproducible, and portable development environments"; the configuration is managed in a file in the source repository called a .

Through plugins, Vagrant allows provisioning environments atop other providers, such as AWS, OpenStack or DigitalOcean.

Provisioning of a "box", by default can be done using shell scripts, Ansible, Chef, Puppet, Docker or Salt.

See also

Related Tags :

8556 questions
4
votes
2 answers

Vagrant port forwarding not working. Cups not accesible from host

So I'm working with vagrant and I'm trying to use it as a printing server. I installed cups. Internally everything works just fine. I can even make a quick curl to my localhost:631 (cups port inside my vagrant) and there's everything. The thing is…
AAlvz
  • 1,059
  • 2
  • 9
  • 15
4
votes
2 answers

How to organize a Bento - Veewee - Vagrant project

I'm trying to use Bento, Veewee and Vagrant to automate the process of provisioning VMs. This approach has a lot of promise for simplifying development, dev-testing and QA processes. (For those who haven't encountered these -- Vagrant makes it easy…
Chris Johnson
  • 20,650
  • 6
  • 81
  • 80
4
votes
1 answer

Provisioning PostgreSQL with Puppet on Vagrant

I've got a puppet manifest that resists my attempts to get it working right, given I'm no expert on the puppet DSL, and I'm fairly new to Puppet, I haven't managed to figure this out. I'm trying to install Postgres using puppetlabs posgres module,…
user404021
4
votes
1 answer

How to run Vagrant provisioning on the first run?

I have a very simple Vagrant file like this: config.vm.box = "precise32" config.vm.synced_folder "./src", "/vagrant/src/" config.vm.network "forwarded_port", guest: 8080, host: 8080 config.vm.provision :shell, :path => "install.sh" When I…
RParadox
  • 6,393
  • 4
  • 23
  • 33
4
votes
2 answers

Why is sending mail from PHP from my Vagrant box so slow?

I setup a Vagrant Box (precice64) with PHP5.3 and try to send a mail with it, but it's real slow. I have a simple script like: $ok = mail('me@domain.com', 'test', 'test'); var_dump($ok); And execute it on the command line (or browser, makes no…
Giel Berkers
  • 2,852
  • 3
  • 39
  • 58
4
votes
1 answer

Syntax for Vagrant provisioner cleanup tasks?

How can I define a cleanup task in my Vagrantfile? Vagrant's release notes for 1.3.0 mentioned a provisioner cleanup option was added but there doesn't seem to be any documentation yet and I've had no luck trying to figure out the syntax. The most…
joemaller
  • 19,579
  • 7
  • 67
  • 84
4
votes
3 answers

Chef ENV settings not working

I am attempting to set up postgresql on a Vagrant box using Chef solo and am running into some problems. I need the default postgres encoding/locale to be UTF8. By default, the locale of the precise64 Ubuntu box is set to "C" so postgres is using…
Jake
  • 715
  • 7
  • 15
4
votes
1 answer

Vagrant with XDebug and Sublime Text: don´t stop at breakpoints

I have problems with debugging with Sublime Text 2, Vagrant and XDebug. The debug don't stop at breakpoints I use this vagrant box https://github.com/bryannielsen/Laravel4-Vagrant I´ve read a lot of questions in StackOverflow and none has the answer…
Sangar82
  • 5,070
  • 1
  • 35
  • 52
4
votes
1 answer

Vagrant: how to disable NFS sync folders for Windows host?

We need to share VMs with Linux, MacOS and Windows hosts. However, for Linux and MacOS, NFS sharing is recommended, but for Windows, NFS sharing is not supported. Is there are way to detect the that host OS is Windows and disable NFS shares?
Andrew
  • 1,226
  • 2
  • 13
  • 20
4
votes
2 answers

NFS hang from Vagrant guest to OSX

I have a Vagrant guest I'm using to run a Symfony 2 application locally for development. In general this is working fine, however, I am regularly finding the processes lock in the 'D+' state (waiting for I/O). eg. I try to run my unit…
Andre Lackmann
  • 686
  • 6
  • 14
4
votes
2 answers

Cant install Vagrant Plugin - Gem Failing

Trying to install the vagrant-digitalocean plugin for vagrant, but its having an issue install the gems required for it. Installing the 'vagrant-digitalocean' plugin. This can take a few…
Ascherer
  • 8,223
  • 3
  • 42
  • 60
4
votes
3 answers

chef-solo nginx recipe not picking up on my attributes

the gist of my problem is located here: https://gist.github.com/tsabat/a8f27ae6ac7d1fd3b6f7 The high-level problem is that chef-solo does not seem to pick up on attributes I set in my attriutes/default.rb file for a recipe. I recently switched to…
timsabat
  • 2,208
  • 3
  • 25
  • 34
4
votes
3 answers

puppet looking for hiera.yaml in the wrong place

I want puppet to look for hiera.yaml in /etc but it's looking for it in /etc/puppet. I put a line into puppet.conf: hiera_config = /etc/hiera.yaml But still gives me the hiera.yaml update warning when I run the script. I'm running the script from…
creftos
  • 2,090
  • 1
  • 18
  • 22
4
votes
3 answers

phpunit with composer not working

Background: i am on a windows host and sshing into a vagrant LAMP setup (ubuntu 13.04). I have installed phpunit with composer using the following line in my composer.json: "require-dev": { "phpunit/phpunit": "3.7.*" } I have then run…
SwiftD
  • 5,769
  • 6
  • 43
  • 67
4
votes
1 answer

Vagrant host port ignored

In my Vagrantfile I have the definition of my development machine with a private network ip of 192.168.33.10 and a forwarded port of "guest=80, host=8888", but when a run my vagrant enviroment and I try to run curl -i 192.168.33.10:8888 I get an…
ramdemon
  • 97
  • 1
  • 8