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
2187
votes
10 answers

Should I use Vagrant or Docker for creating an isolated environment?

I use Ubuntu for development and deployment and have a need for creating an isolated environment. I am considering either Vagrant or Docker for this purpose. What are the pros and cons, or how do these solutions compare?
murtaza52
  • 46,887
  • 28
  • 84
  • 120
427
votes
49 answers

Vagrant stuck connection timeout retrying

My vagrant was working perfectly fine last night. I've just turned the PC on, hit vagrant up, and this is what I get: ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... …
Kiee
  • 10,661
  • 8
  • 31
  • 56
304
votes
20 answers

Easiest way to copy a single file from host to Vagrant guest?

I have a use case where I occasionally want to copy a single file from my host machine to the Vagrant guest. I don't want to do so via traditional provisioners (Puppet / Chef) because this is often a one-off -- I just want something quick to add to…
LeeXGreen
  • 3,575
  • 2
  • 18
  • 14
290
votes
8 answers

Where does Vagrant download its .box files to?

What happens to the .box file after the following command is executed? vagrant box add lucid32 http://files.vagrantup.com/lucid32.box I can't find the lucid32.box file on the file system after download has completed.
Calvin Cheng
  • 35,640
  • 39
  • 116
  • 167
284
votes
22 answers

Vagrant error : Failed to mount folders in Linux guest

I have some issues with Vagrant shared folders, my base system is Ubuntu 13.10 desktop. I do not understand why I have this error is something that is not right configured ? Is a NFS issue or Virtualbox Guest Additions ? I have tried with different…
radu c
  • 4,138
  • 7
  • 30
  • 45
264
votes
7 answers

How to change Vagrant 'default' machine name?

Where does the name 'default' come from when launching a vagrant box? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... Is there a way to set this?
Kyle Kelley
  • 13,804
  • 8
  • 49
  • 78
254
votes
26 answers

Error when trying vagrant up

I'm using Vagrant for my environment and I've got a little issue: $vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'base' could not be found. Attempting to find and install... default: Box Provider:…
user3677022
  • 2,551
  • 2
  • 12
  • 4
213
votes
24 answers

Failed to open/create the internal network Vagrant on Windows10

I upgraded my Windows 10 to the last update yesterday and now, when I launch vagrant up command, I get this error : ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... The guest machine entered an…
callmemath
  • 8,185
  • 4
  • 37
  • 50
206
votes
32 answers

Psql could not connect to server: No such file or directory, 5432 error?

I'm trying to run psql on my Vagrant machine, but I get this error: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket…
Saša Kalaba
  • 4,241
  • 6
  • 29
  • 52
185
votes
16 answers

How to ssh to vagrant without actually running "vagrant ssh"?

I would like to reproduce the way Vagrant logs in to my VM within a shell script using an ssh command, so I create an alias to my Vagrant instance. What is the command syntax to use the regular ssh command to access it?
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
184
votes
15 answers

How to disable "Cannot Render Console from..." on Rails

I'm using Ubuntu/vagrant as my development environment. I'm getting these messages on rails console: Started GET "/assets/home-fcec5b5a277ac7c20cc9f45a209a3bcd.js?body=1" for 10.0.2.2 at 2015-04-02 15:48:31 +0000 Cannot render console from 10.0.2.2!…
Leandro França
  • 1,884
  • 2
  • 11
  • 11
174
votes
37 answers

VBoxManage: error: Failed to create the host-only adapter

I am running vagrant 1.4 and virtual box 4.3 on fedora 17 machine. When I do "vagrant up", I get this error: Bringing machine 'default' up with 'virtualbox' provider... …
Adi
  • 4,149
  • 4
  • 25
  • 41
173
votes
23 answers

SSH to Vagrant box in Windows?

I'm using Vagrant to start a VirtualBox VM in windows. In other platforms, I can just $ vagrant ssh to connect to the VM. How do i connect to this Vagrant box in windows? The way suggested in Vagrant documentation to use PuTTy also did not…
Sathish
  • 20,660
  • 24
  • 63
  • 71
173
votes
11 answers

Using vagrant to run virtual machines with desktop environment

My company's development environment is based on virtual machines, running on VirtualBox. We would like to move one step further, and use the capabilities of Vagrant to have the description of the machine in a text file and then be able to "raise"…
PRiera
  • 1,731
  • 3
  • 11
  • 3
172
votes
32 answers

Vagrant ssh authentication failure

The problem with ssh authentication: ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter…
ic3b3rg
  • 14,629
  • 4
  • 30
  • 53
1
2 3
99 100