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

macOS - vagrant up failed, /dev/vboxnetctl: no such file or directory

Can be useful, I found this error. The common solution is reinstall virtualbox but there are a better way. Solution sudo /Library/StartupItems/VirtualBox/VirtualBox restart or sudo /Library/StartupItems/VirtualBox/VirtualBox start VirtualBox…
Lucas Serafim
  • 3,702
  • 6
  • 30
  • 36
140
votes
11 answers

How do I associate a Vagrant project directory with an existing VirtualBox VM?

Somehow my Vagrant project has disassociated itself from its VirtualBox VM, so that when I vagrant up Vagrant will import the base-box and create a new virtual machine. Is there a way to re-associate the Vagrant project with the existing VM? How…
jrdmcgr
  • 1,681
  • 3
  • 13
  • 13
136
votes
30 answers

Using Laravel Homestead: 'no input file specified'

I am new to using Laravel, and Homestead, and would appreciate any help or a point in the right direction. I have successfully been able to get to the "You have arrived" screen when I run "php artisan serve" but when I try to do the same thing via…
bryant
  • 2,041
  • 3
  • 18
  • 26
135
votes
8 answers

How to add a downloaded .box file to Vagrant?

How do I add a downloaded .box file to Vagrant's list of available boxes? The .box file is located on an external drive. I tried running vagrant box add my-box d:/path/to/box, but Vagrant interprets the path as a URL.
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
133
votes
17 answers

Vagrant Not Starting Up. User that created VM doesn't match current user

I was trying to start up my vagrant machine, so I navigated to the folder where my vagrantfile is, and used: vagrant up && vagrant ssh but I got the following error message: The VirtualBox VM was created with a user that doesn't match the …
Luke
  • 1,736
  • 2
  • 16
  • 34
130
votes
5 answers

Vagrant reverse port forwarding?

I'm working on a web services architecture. I've got some software that I need to run on the native host machine, not in Vagrant. But I'd like to run some client services on the guest. Vagrant's config.vm.forwarded_port parameter will open a port on…
Dan Fabulich
  • 37,506
  • 41
  • 139
  • 175
127
votes
32 answers

A VirtualBox machine with the name 'homestead' already exists

Since homestead 2.0 homestead laravel has not been working I don't know why 'homestead init' creates a Homestead.yaml file in mydirectory/.homestead and not in the project directory. Homestead up OR Vagrant up create the following message A…
Matt Doran
  • 2,050
  • 2
  • 16
  • 18
125
votes
15 answers

How can I kill whatever process is using port 8080 so that I can vagrant up?

On MacOSX, I'm using Packer to build a Vagrant box so I need to continually bring it up and tear it down. I'm attempting to 'vagrant up', and receive the standard error because the port is in use: "Vagrant cannot forward the specified ports on this…
Jason Curran
  • 1,385
  • 2
  • 10
  • 7
117
votes
9 answers

How to export a Vagrant virtual machine to transfer it

I have a vagrant box up and running (configured with a LAMP stack). I need to transfer it to another PC. How can I export it? I guess that I can get a file (or files) that can be copied to another PC, so there I can run some command to import the…
Eugene
  • 1,680
  • 3
  • 14
  • 23
116
votes
6 answers

Removing list of vms in vagrant cache

I'm not looking for this answer, because my question is different. When I type vagrant global-status I get a list of vms, but some of those directories and VMs have been deleted along with the Vagrantfiles. But when i type vagrant destroy…
user710587
  • 1,263
  • 2
  • 9
  • 4
113
votes
6 answers

Is there a default password to connect to vagrant when using `homestead ssh` for the first time?

I'm trying to connect to vagrant via homestead ssh: vagrant@127.0.0.1's password: But my public key password doesn't work. My Homestead.yaml looks like this: authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa I'm using "Laravel Homestead…
stefan
  • 4,958
  • 4
  • 20
  • 37
112
votes
5 answers

Vagrant's port forwarding not working

I'm running into a small problem at the end of the Getting Started guide for vagrant. I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in…
Hank Gay
  • 70,339
  • 36
  • 160
  • 222
112
votes
12 answers

Vagrant was unable to mount VirtualBox shared folders

Current setup: Virtualbox 5.1.20 with Vagrant 1.9.3 Previous working setup: Virtualbox 5.1.18 with Vagrant 1.9.3 I installed the latest version of Virtualbox and tried to start my VM. The folder mounting has stopped working. The same folder mounting…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
110
votes
9 answers

How to use ssh agent forwarding with "vagrant ssh"?

Rather than create a new SSH key pair on a vagrant box, I would like to re-use the key pair I have on my host machine, using agent forwarding. I've tried setting config.ssh.forward_agent to TRUE in the Vagrantfile, then rebooted the VM, and tried…
Matt V.
  • 9,703
  • 10
  • 35
  • 56
109
votes
12 answers

vagrant login as root by default

Problem: frequently the first command I type to my boxes is su -. Question: how do I make vagrant ssh use the root user by default? Version: vagrant 1.6.5
Mike D
  • 5,984
  • 4
  • 31
  • 31