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

nginx 403 forbidden error in Rails 4 (with no index.html file)

I'm following along with a Railscast http://railscasts.com/episodes/293-nginx-unicorn?view=asciicast about setting up Nginx and Unicorn on Vagrant, with one important difference. Ryan's making his application with Rails 3 (that has the default…
BrainLikeADullPencil
  • 11,313
  • 24
  • 78
  • 134
4
votes
1 answer

Chef does not read attributes and definitions

I have a an old project I've built with chef (https://github.com/noha/virtual-gemstone). It uses chef together with vagrant to achieve its goal. The project was stale for the last couple of months and now I want to reactivate it. But I don't have…
Norbert Hartl
  • 10,481
  • 5
  • 36
  • 46
4
votes
1 answer

Vagrant Rsync Error before provisioning

So I'm having some adventures with the vagrant-aws plugin, and I'm now stuck on the issue of syncing folders. This is necessary to provision the machines, which is the ultimate goal. However, running vagrant provision on my machine…
4
votes
2 answers

Vagrant shell provisioner hangs instead of exiting

My shell provisioner is a small bash script that apt-gets a few things, installs a few Perl modules through cpan, sets up Apache and MySQL, echos some text, and exists. Except that after printing its final message, it seems not to exit, but hangs…
Lee Goddard
  • 10,680
  • 4
  • 46
  • 63
4
votes
2 answers

Vagrant Port Forwarding on Mac OS X Lion

I've been struggling trying to connect to a centos 6.4 vm using Vagrant. I'm using salt as a provisioning agent and I have installed apache,php,mysql packages successfully. When i ssh into the box apache is running fine. I added an index.html file…
user2108258
  • 803
  • 3
  • 13
  • 20
4
votes
3 answers

Easy way to update all Vagrant plugins

Is there a command that allows one to update all currently installed Vagrant plugins? I am using the original install command to update each individually at the moment, but this is not ideal.
Michael Robinson
  • 29,278
  • 12
  • 104
  • 130
4
votes
2 answers

Vagrant has detected that you have a version of VirtualBox installed that is not supported

I am working my way through http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ I am working on win7 and using git-bash for my terminal. I have gotten to : Shared Folders After the ./postinstall.sh step, exit SSH Run vagrant…
user1592380
  • 34,265
  • 92
  • 284
  • 515
4
votes
1 answer

Enabling .htaccess files via puppet

I'm trying to enable .htaccess files in Apache using Vagrant and Puppet. When I add the "override" parameter to my vhost config and run "vagrant up", I get an error: Invalid parameter override in [...] When I remove that line, the vm boots…
CocaLeaf
  • 321
  • 2
  • 9
4
votes
3 answers

How can I override the Chef node name in vagrant?

I'm developing a Chef cookbook that I'm testing with Vagrant and chef-solo. The recipes look at node.name to make certain decisions. In order to test various variants of that I would like to override that attribute for test runs from Vagrant. So…
Peter Eisentraut
  • 35,221
  • 12
  • 85
  • 90
4
votes
2 answers

How to create a virtual host with vagrant and chef

I've setup my first vagrant machine, with some cookbooks downloaded through knife. I am stuck with the setup of a virtual host. Here's my Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "precise32" config.vm.box_url =…
apelliciari
  • 8,241
  • 9
  • 57
  • 92
4
votes
1 answer

Searching for a project skeleton for Chef + Django on Linux

Is there a pre-existing, best practices project skeleton for Chef + Django web applications on Linux (Ubuntu preferably)? For production Django systems our preferred setup is Supervisor, Nginx, Ubuntu and Uwsgi. Additionally we use Chef to do…
Chris W.
  • 37,583
  • 36
  • 99
  • 136
4
votes
1 answer

How to access to postgresql on vagranted virtual machine?

I make via Vagrant virtual machine with postgresql and want to use it as my rails app database. I use similar Vagrantfile: Vagrant.configure("2") do |config| config.vm.network :private_network, ip: "192.168.33.18" config.vm.provision :chef_solo…
mikdiet
  • 9,859
  • 8
  • 59
  • 68
4
votes
1 answer

Restart VM during Vagrant provisioning

I am trying to setup vagrant + chef configuration. One of provisioning actions requires me to change locales on the server. When I change locales I must restart VM or relogin to that take effect. Any idea if it is possible in Vagrant?
firen
  • 1,384
  • 2
  • 14
  • 32
4
votes
3 answers

Vagrant, VirtualBox - Adapter not Found?

Getting the following log dump when typing in 'vagrant up'. Have tried both without any messing on VirtualBox, and also with manually adding a port forwarding rule (host IP 127.0.0.1, host port 2222, guest port 22). "Bringing machine 'polecat' up…
Chris B
  • 2,751
  • 2
  • 13
  • 7
4
votes
1 answer

How can I get chef to reboot the node, and pick up the recipe from where it left off?

I'm trying to set up an asterisk server with chef using Berkshelf and Vagrant, and I'd first like to upgrade the kernel by running apt-get upgrade , and rebooting my machine. How can I trigger a reboot in the recipe, and have it pick up after the…
noli
  • 15,927
  • 8
  • 46
  • 62
1 2 3
99
100