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

Error: Installing vagrant gem in ruby 2.0.0

When I tried to install vagrant gem in ruby 2.0.0-p0, I am getting follwoing error: ~ ruby -v ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] ~ gem -v 2.0.0.rc.2 ~ gem list json *** LOCAL GEMS *** json (1.7.7) ~ gem install vagrant Building…
ranendra
  • 2,492
  • 2
  • 19
  • 29
4
votes
1 answer

Chef and postgres; how do I specify the password?

I'm new to chef, and I'm trying to interprete the documentation. I've added the opscode postgresql recipe to my chef-solo environment. postgresql seems to install and launch just fine, but unfortunately I can't log in to the server, rendering it…
Dave Taubler
  • 1,081
  • 3
  • 12
  • 25
4
votes
5 answers

Make chef cookbook recipe only run once

So I use the following recipe: include_recipe "build-essential" node_packages = value_for_platform( [ "debian", "ubuntu" ] => { "default" => [ "libssl-dev" ] }, [ "amazon", "centos", "fedora", "centos" ] => { "default" =>…
Jürgen Paul
  • 14,299
  • 26
  • 93
  • 133
4
votes
1 answer

vagrant: Share ssh folder between host and guest

In order to bundle and connect to Github as my normal self within my VM, I'd like to config.vm.share_folder "ssh", "/home/vagrant/.ssh", "~/.ssh". Except this breaks vagrant's public/private key authentication. Attempted Solution #1 I tried to copy…
chadoh
  • 4,343
  • 6
  • 39
  • 64
4
votes
1 answer

Error: Permission denied when trying to create database django

I'm trying to create a database for a django project and I'm getting the following error: (blog-venv)vagrant@precise64:/vagrant/django_projects/microblog$ createdb microblog createdb: database creation failed: ERROR: permission denied to…
dobleV
  • 307
  • 4
  • 17
4
votes
2 answers

How to override "not default" attribute by vagrant with chef-solo?

Question I'm using vagrant with chef-solo provision. How to override "not default" attribute? If I will create chef-recipe, When should I use "not default" attribute? Description I saw openldap['rootpw'] in attribute of openldap I would like to…
niku
  • 363
  • 1
  • 3
  • 14
4
votes
1 answer

Deleting a Knife client without a private key?

I've joined a new company and to get caught up to speed, I've been playing with Vagrant for my VM. I had my system nearly set up and then a weird error forced me to shut off my laptop without disconnecting via vagrant destroy. Now when trying to get…
4
votes
1 answer

Cannot access attributes of default Chef recipe in child recipe attributes file

I have several recipes in my cubrid cookbook which I use to install CUBRID Database on a Vagrant box. Each recipe has its own attributes file. Eg: # attributes/default.rb for recipe/default.rb default['cubrid']['home'] = "/opt/cubrid" Then: #…
esengineer
  • 9,514
  • 7
  • 45
  • 69
4
votes
3 answers

Issues with meteor app on vagrant share

I have a vagrant VM (virtualbox) setup with meteor. My host and guest are both Ubuntu. The VM contains a vboxfs share folder setup through the Vagrantfile. The behavior I am noticing is similar to a NFS mount. I am able to create a meteor project…
Nertim
  • 380
  • 6
  • 15
4
votes
1 answer

vagrant failed to connect VM

I am running vagrant up command to connect to a VM and while running this command I get below mentioned error. I tried several steps as to run it with gui mode ON, but GUI mode itself does not open anything. while running this command an…
lucky
  • 414
  • 1
  • 7
  • 19
4
votes
2 answers

Sending autotest / guard desktop notifications from Vagrant Ubuntu VM to host (W7 and OS X)

I have a question for all you Vagrants and TDD'ers out there, How can I make a Vagrant Ubuntu VM send autotest / guard notifications to a Windows 7 or OS X host? Details: I'm trying to build my ultimate road-warrior development environment, so that…
timmy
  • 61
  • 1
  • 3
4
votes
0 answers

Vagrant file access issues with NFS

I'm running vagrant with an Ubuntu server 10.04 LTS box. The local folder on my Mac is mounted with NFS and all works fine except for one thing. I'm developing a PHP project which uses Twig as template system but whenever I modify a template on my…
ChrisR
  • 14,370
  • 16
  • 70
  • 107
4
votes
2 answers

Vagrant box within git repository?

I'm planning to be using vagrant soon to easily manage the server configuration for a web application across multiple programmers. Though I am wondering what the best practices are on spreading the box to co-workers? I'm worried that if I include…
mauserrifle
  • 604
  • 1
  • 7
  • 17
4
votes
1 answer

Ruby can not find gem amongst even though it is in the list

I am having a strange issue where when I try and run vagrant up the system can suddenly not find the json gem. When I run vagrant up I get this message: /usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find json…
adrian.webb
  • 69
  • 2
  • 5
4
votes
3 answers

"Could not find RubyGem puppet" in Vagrant

I can manually run bundle install and get something sane back, but when I let Puppet provision a Vagrant box, this happens the second time (the first I get successful output). [default] Running provisioner: Vagrant::Provisioners::Puppet... [default]…
Phil Sturgeon
  • 30,637
  • 12
  • 78
  • 117
1 2 3
99
100