Questions tagged [vagrant]

Vagrant is a tool for building and distributing virtualized development environments.

By providing automated creation and provisioning of virtual machines using Oracle’s VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments.

555 questions
272
votes
5 answers

Why should I use Vagrant instead of just VirtualBox?

I've been using VirtualBox for many years to create a development environment. A lot of my colleagues are talking about Vagrant and many people seem very excited about it but I just can't seem to grasp the benefits of it.. seems to me like it's a…
John Hunt
  • 3,148
  • 4
  • 18
  • 18
61
votes
1 answer

Is it possible to disable default /vagrant synced folder?

According to source code - it's not, but what if I'm wrong? So the final question: is it possible to run a vagrant VM (virtualbox-driven) without /vagrant synced folder?
zerkms
  • 1,078
52
votes
5 answers

Run script on host machine during vagrant up

I'd like to run a bash script on the host machine when vagrant provisions the server. What would be the best method of achieving this?
digital
  • 831
46
votes
5 answers

Need to do Bridged Adapter only in Vagrant, no NAT

So I'm having an issues with a Vagrant setup of 'hashicorp/precise64' on my MAC book. First, my config: VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "hashicorp/precise64" config.vm.network…
SynackSA
  • 561
  • 1
  • 4
  • 4
42
votes
7 answers

How do I upgrade Vagrant to the latest version in Ubuntu?

How do I upgrade Vagrant to latest version in Ubuntu? $ sudo apt-get update $ sudo apt-get install vagrant $ vagrant -v Vagrant 1.4 Latest version is 1.6.5
42
votes
3 answers

Can I rename a Vagrant box?

I misspelled the name of a box when I added it to my box list: vagrant box list debian ubnutu Can I rename the box without repackaging it?
Roberto Aloi
  • 1,183
42
votes
18 answers

Vagrant ssh fails with VirtualBox

vagrant up fails when it gets to the ssh part: myterminal$ vagrant up [default] VM already created. Booting if its not already running... [default] Running any VM customizations... [default] Clearing any previously set forwarded ports... [default]…
lukewm
39
votes
3 answers

How to fix extremely slow Virtualbox network download speed?

I'm using an Ubuntu 12.04 VM (hashicorp/precise32) via Vagrant/Virtualbox. It seems to have an exremely slow download speed compared to my host system. This is what I get with the host system (OSX) with speedtest-cli: Testing download…
auramo
  • 983
36
votes
1 answer

How to enable Vagrant's 'verbose' mode?

I'm using Vagrant in a Windows 7 box, and I'm having trouble with the ssh client. I'd like to know how can I make Vagrant 'verbose' (as in report more than a user friendly message) and if it is possible to change the log level.
31
votes
7 answers

How to solve `ttyname failed: Inappropriate ioctl for device` in Vagrant?

When using this snippet (inline shell provisioner): config.vm.provision "shell" do |s| s.inline = <<-SHELL SHELL end it results in: ==> default: mesg: ==> default: ttyname failed ==> default: : ==> default: Inappropriate…
030
  • 2,808
  • 9
  • 29
  • 40
28
votes
1 answer

Copy vagrant box locally

I have a vagrant box running on VirtualBox, and I need to make a copy (with all its existing config and data), so that I can make changes on it without affecting the original. The problem is that my original box came as a file package - the internet…
xiankai
  • 518
  • 1
  • 5
  • 11
26
votes
2 answers

How to exit SSH of vagrant in terminal

Following the README in this repository, I am supposed to secure shell my way into a virtual machine I've created, but once I've done so, how do I get out? Here are the instructions: $ git clone git://github.com/honza/django-chef.git $ cd…
24
votes
2 answers

How to add a 'Host-only Adapter' to a VirtualBox machine via Vagrant file configuration?

A lot of answers out there are only applicable version 1 of Vagrant file configuration. e.g. config.vm.network :hostonly, :adapter => 2 The new public network does not support this feature. e.g. this line here config.vm.network "public_network",…
Anthony Kong
  • 5,318
22
votes
7 answers

SSH Basics on Vagrant VMs

I'm building a vagrant machine (Ubuntu 12.04) with the following requirements: SSH access via Vagrant to a user with sudo-privileges. I've generated public/private keys (via ssh-keygen) on the host and have moved the public key to the…
rhodee
  • 321
21
votes
5 answers

Vagrant box URL for JSON metadata file

In my Vagrantfile, I can specify the URL of a box: config.vm.box_url = "http://example.com/my-box.pkg" According to the more recent documentation, I should be able to create a JSON file that contains the URLs for different versions of the box. The…
Brad
  • 6,629
1
2 3
36 37