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
53
votes
7 answers

How to remove extra host only network interfaces created by vagrant on windows 10?

I have recently upgraded to Win 10 and hence to vagrant 1.7.4 and virtual box 5.0.2 r102096. While bringing one of the VM up using vagrant up, vagrant kept failing, but created new Host only adapters in the system on every attempt. Now I have 6…
Manish Sapariya
  • 3,575
  • 3
  • 25
  • 34
53
votes
5 answers

SSH onto Vagrant Box With Different Username

Rather than ssh-ing onto my Vagrant virtual machine with a "vagrant" user-name and password, I'd like to use kevin/kevin. I modified my Vagrantfile to include: config.ssh.username = "kevin" Then, I ran vagrant reload. The following output showed…
Kevin Meredith
  • 41,036
  • 63
  • 209
  • 384
53
votes
2 answers

How to connect with host PostgreSQL from vagrant virtualbox machine

I have a VirtualBox machine running Ubuntu 12.04 in a Mac OS X host machine. In my host machine (Mac OS X), I have PostgreSQL installed. I would like to connect to this PostgreSQL server from my Ubuntu virtual machine (I know normally it's the…
Jorge Arévalo
  • 2,858
  • 5
  • 36
  • 44
52
votes
13 answers

VM has become 'inaccessible' - Vagrant no longer working

For some reason this morning when I run 'vagrant up' I get the following error (this has worked absolutely fine for over a year) Your VM has become "inaccessible". Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly…
Zabs
  • 13,852
  • 45
  • 173
  • 297
52
votes
9 answers

Docker for GUI-based environments?

Problem I have a set of client machines that are a part of an enterprise web application. Each machine runs identical software, which is a PyQT-based web client that connects to a server. This client software is updated regularly and I would like to…
skanatek
  • 5,133
  • 3
  • 47
  • 75
51
votes
9 answers

Automatically chdir to vagrant directory upon "vagrant ssh"

So, I've got a bunch of vagrant VMs running some flavor of Linux (centos, ubuntu, whatever). I would like to automatically ensure that a "vagrant ssh" will also "cd /vagrant" so that no-one has to remember to do that whenever they log in. I've…
Rob Kinyon
  • 1,770
  • 2
  • 19
  • 28
50
votes
2 answers

Vagrant " VM not created." when trying to create box from existing VM

I imported the precise32 box, then installed some packages and other data on the VM. My plan is to then repackage it into a box, to save on complicated provisioning when sharing. However. vagrant package --base dev-vm --output /box/vm.box Always…
Kiksy
  • 1,272
  • 5
  • 20
  • 43
50
votes
15 answers

How to debug "Vagrant cannot forward the specified ports on this VM" message

I'm trying to start a Vagrant instance and getting the following message: Vagrant cannot forward the specified ports on this VM, since they would collide with another VirtualBox virtual machine's forwarded ports! The forwarded port to 4567 is…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
49
votes
2 answers

Is there any way to clone a vagrant box that is already installed

I must have the same VM in other computers but I don't want to download the whole box, php mysql, etc... I have a box already configured the way it should be and I want to run this VM in others computers. When the user run "vagrant up" the machine…
Mateusgf
  • 889
  • 1
  • 8
  • 14
48
votes
4 answers

Vagrant - how to have host platform specific provisioning steps

We've got a diverse dev team, one on Windows, another on Ubuntu and another on OSX. Being windows boy, I setup the first version of the vagrant setup script which works fabulously ;) However, when running it on the Ubuntu host, the first time it…
Steve Childs
  • 1,832
  • 2
  • 20
  • 26
47
votes
4 answers

Running Vagrant Inside VMWare VM

I realize this is essentially OSCeption (Operating System Inception), but I think it might make the most sense for me (please tell me if there's a better option, this seems really awful). Here's the situation: I have a windows 8 machine. I like it -…
Josh
  • 481
  • 1
  • 4
  • 6
46
votes
12 answers

How can I get Chef to run apt-get update before running other recipes

Right now I have the following in my Vagrantfile: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe "chef-redis::source" …
ashchristopher
  • 25,143
  • 18
  • 48
  • 49
46
votes
8 answers

Laravel Dusk error: Failed to connect to localhost port 9515: Connection refused

As the title says, I've go a clean install of Laravel 5.4 and the latest Homestead (1.0.1). However, when I run a simple Dusk test case I get the following error: Failed to connect to localhost port 9515: Connection refused Anyone know how to…
Nick
  • 2,862
  • 5
  • 34
  • 68
46
votes
5 answers

Rails 4.2 Server port forwarding on Vagrant does not work

I have a Vagrant VM with Rails installed with a sample app. The VM is configured to forward the port 3000 (of Rails Webrick server) to my host 3000 port. config.vm.network "forwarded_port", guest: 3000, host: 3000 Everything is configured as seen…
Victor Leal
  • 1,055
  • 2
  • 12
  • 28
46
votes
2 answers

Update a Vagrant Box?

I have updated a box vagrant box update and now when I run vagrant up it boots into the old box. How can I update my box to use the newer version?
Steven
  • 13,250
  • 33
  • 95
  • 147