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
66
votes
5 answers

Can I bring up the GUI for a Vagrant managed Virtual box while the box is running?

I know that I can configure my Vagrantfile to boot my machine with a GUI according to http://docs.vagrantup.com/v2/virtualbox/configuration.html with: config.vm.provider "virtualbox" do |v| v.gui = true end But if I've started a box headless, is…
mattwise
  • 1,464
  • 1
  • 10
  • 20
65
votes
8 answers

RuntimeException vendor does not exist and could not be created

I've tried other posts I found online but none seemed to work correctly. I'm working with this. And I make my way to the root of it, which is /var/www/. So then I do composer install and I have a composer.json file in there. I get…
user3413366
  • 653
  • 1
  • 5
  • 7
63
votes
4 answers

How do I destroy a VM when I deleted the .vagrant file?

I deleted the directory that contained the .vagrant file. When I up a new VM it's complaining about ports being in use. So how do I destroy a VM without having it's .vagrant file?
Pickels
  • 33,902
  • 26
  • 118
  • 178
61
votes
2 answers

CentOS through a VM - no URLs in mirrorlist

I am trying to run a CentOS 8 server through VirtualBox (6.1.30) (Vagrant), which worked just fine yesterday for me, but today I tried running a sudo yum update. I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum…
Eylon
  • 628
  • 1
  • 3
  • 7
61
votes
8 answers

Download vagrant box file locally from atlas and configuring it

I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it?
Muhammad Raihan Muhaimin
  • 5,559
  • 7
  • 47
  • 68
59
votes
17 answers

Timed out while waiting for the machine to boot when vagrant up

I have an Ubuntu 13.10 and I installed Vagrant 1.5.4 and VirtualBox 4.3.10r93012. My problem occurs when I write the command vagrant up at the first time the script up the virtual machine correctly. But after doing vagrant halt and write the command…
xserrat
  • 1,429
  • 1
  • 13
  • 12
59
votes
4 answers

How can Vagrant forward multiple ports on the same machine?

I'm wondering how to setup a Vagrant file that will put up a machine with two ports forwarded. This is my current Vagrantfile, which is forwarding the 8080 page: Vagrant.configure("2") do |config| config.vm.box = "precise32" config.vm.box_url =…
fegemo
  • 2,475
  • 6
  • 20
  • 40
59
votes
7 answers

Cannot change permissions of folders within vagrant home folder

When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have…
kayaker243
  • 2,580
  • 3
  • 22
  • 30
58
votes
8 answers

Override Vagrant configuration settings locally (per-dev)

I'd like the question to be answered in general, but to illustrate it, here's a use case: I'm using Vagrant for a simple LMAP project. I use standalone Puppet for provisioning. Now, there might be some developers who sit behind a proxy and they…
netmikey
  • 2,422
  • 2
  • 28
  • 35
57
votes
3 answers

Vagrant corrupted index file C:\Users\USERNAME\.vagrant.d/data/machine-index/index

My Windows 8.1 just crashed. Now I have some files on my dist that are corrupted. This includes my vagrant machine index (Not shure if the naming is right but I know that it is this file -> C:\Users\USERNAME.vagrant.d/data/machine-index/index). So…
Thomas Venturini
  • 3,500
  • 4
  • 34
  • 43
57
votes
6 answers

How to sync time on host wake-up within VirtualBox?

I am running an Ubuntu 12.04-based box inside of Vagrant using VirtualBox. So far, everything is fine - except for one thing: Let's assume that the VM is running. Then, the host goes to standby-mode. After waking it up again, the VM is still…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
55
votes
4 answers

Create a Superuser in postgres

i'm looking for setup a Rails Environment with Vagrant, for that purpose the box it's been provisioned through bash shell method and includes among others this line: sudo -u postgres createuser -s with password…
Joseph Palmezano
  • 1,245
  • 2
  • 11
  • 16
55
votes
22 answers

Error "could not delete" with Composer on Vagrant

I have a Vagrant running Linux and I'm trying to install Symfony. After the command composer create-project symfony/framework-standard-edition ./ "2.5.*" I have the error : [RuntimeException] Could not delete…
Clément Andraud
  • 9,103
  • 25
  • 80
  • 158
55
votes
7 answers

How to run several boxes with Vagrant?

I need to run several boxes with Vagrant. Is there a way to do that? These don't relate one to another in any way, they can be thought as different environments using for test so it seems that multi-machine setup has nothing to do with this.
timurb
  • 5,405
  • 2
  • 22
  • 17
53
votes
8 answers

Ansible provisioning ERROR! Using a SSH password instead of a key is not possible

I would like to provision with my three nodes from the last one by using Ansible. My host machine is Windows 10. My Vagrantfile looks like: Vagrant.configure("2") do |config| (1..3).each do |index| config.vm.define "node#{index}" do |node| …
Mark
  • 5,994
  • 5
  • 42
  • 55