---
title: "Vagrant: reproducible development environments from a Vagrantfile"
description: "Vagrant 1.x (2012-2013) by Mitchell Hashimoto: wrapper over VirtualBox/VMware/AWS for virtualised development environments configured via a Vagrantfile, integrated provisioning with Puppet/Chef/Ansible. The seed of HashiCorp."
url: "https://www.noze.it/en/insights/vagrant-dev-environments/"
lang: "en"
alternate: "https://www.noze.it/insights/vagrant-dev-environments/"
published: "2013-03-14"
author: "noze S.r.l."
keywords: "Open Source, Web, R&D, Vagrant, HashiCorp, VirtualBox, Dev Environment, Ruby"
---

# Vagrant: reproducible development environments from a Vagrantfile

Vagrant 1.x (2012-2013) by Mitchell Hashimoto: wrapper over VirtualBox/VMware/AWS for virtualised development environments configured via a Vagrantfile, integrated provisioning with Puppet/Chef/Ansible. The seed of HashiCorp.

14 March 2013

## “It works on my machine”

A recurring operational problem in software development is ensuring the **development environment** is **repeatable** across team members and aligned with **production**. The historical frustration — _“it works on my machine, I don’t see why it doesn’t run on yours”_ — arises from combinations of different compiler, library, network service, operating system versions.

**Vagrant** — created by **Mitchell Hashimoto** in 2010, released as **1.0 in March 2012** and actively developed toward 1.2 at the time of writing — answers this problem with a simple idea: the dev environment is a **reproducible virtual machine**, described as code.

## The architecture

A Vagrant project has a **Vagrantfile** in Ruby DSL at its root:

```
Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/precise64"
    config.vm.network :private_network, ip: "192.168.33.10"
    config.vm.synced_folder ".", "/vagrant"

    config.vm.provision :shell, path: "setup.sh"
    # or: config.vm.provision :puppet do |puppet| ...
end
```

With `vagrant up` from the command line, Vagrant:

1. Downloads a base **box** (pre-packaged VM image) if not local
2. Provisions a new VM with declared features (CPU, RAM, network, shared folders)
3. Runs the **provisioner** — shell script, Puppet, Chef, Ansible, Salt — to configure it
4. Makes the VM available via `vagrant ssh`, `vagrant reload`, `vagrant halt`, `vagrant destroy`

## Providers and provisioners

Vagrant is deliberately **abstract over the virtualisation backend**:

- Default **provider**: **VirtualBox** (Oracle, free and cross-platform)
- Commercial **providers**: VMware Workstation/Fusion, Parallels
- Cloud **providers**: AWS (plugin), DigitalOcean
- Docker **providers**: later plugins

And **agnostic over configuration management**:

- **Shell** — elementary scripting
- **Puppet** — integrated
- **Chef** — integrated
- **Ansible** — supported (with SSH requirement)
- **Salt** — supported
- **Inline scripts** for rapid prototypes

This **architectural neutrality** makes Vagrant the glue between dev and ops: a team can use Puppet in production and Vagrant + Puppet in development, getting consistency.

## Box distribution

As of 2013 box distribution happens artisanally: boxes hosted on public HTTP servers, referenced by URL. HashiCorp is working on a dedicated public registry (pre-announced as **Vagrant Cloud**) to reduce fragmentation.

## Relationship with Docker

**Docker** debuts publicly in March 2013 — the same period as Vagrant’s growth. The two tools are not in direct competition at debut: Vagrant does **VMs**, Docker does **containers**. VM is heavier but more isolated; container is lighter but requires kernel compatibility with the host.

In early years Vagrant and Docker coexist happily — Vagrant can provision a VM that then runs Docker. Later, with increasing lightness of Docker Desktop and Docker Compose maturity, the “everything in containers” model will prevail for web dev environments; Vagrant will keep its niche where a full VM is needed (e.g. cross-platform projects testing BSD/Windows kernels, scenarios requiring privilege elevation, network infrastructure tests).

## HashiCorp

Vagrant’s success lets Mitchell Hashimoto found **HashiCorp** in 2012 — a company bound to become one of the most relevant in Open Source cloud infrastructure. After Vagrant, **Packer** (2013, image building) and **Serf** (2013, service discovery) are on the way; other products (Consul, Terraform, Vault, Nomad) are on the roadmap.

The HashiCorp model is progressive **open core**: Open Source core, paid enterprise services and features.

## Adoption

As of 2013 Vagrant is already widely adopted in web development teams:

- **Digital agencies** — aligning environments across different developers
- **Ruby/Rails community** — ecosystem of origin
- **Python Django/Flask** — environment setup
- **PHP WordPress/Drupal/Laravel** — multi-version testing

## In the Italian context

Vagrant spreads rapidly in Italy among agile software development teams, from startups to larger software houses, as a pragmatic answer to the “setup new machine” problem that previously required hours or days of manual installation.

## What remains

Vagrant normalises the idea of **dev environment as code**, prefiguring what later tools will bring in more specialised forms. For many developers, Vagrant is the first contact with the idea that _“the development environment is a versioned software artefact”_.

Update — 2024

HashiCorp launches **Vagrant Cloud** in 2014 and ships the full suite: **Consul** (2014), **Terraform** (2014), **Vault** (2015), **Nomad** (2015). The open core model holds until **2023**, when Terraform’s switch to **BSL** triggers a community reaction and the birth of the **OpenTofu** fork. Vagrant remains relevant for VM-based scenarios, while **Docker Compose**, **VS Code devcontainers** and **Nix Shell** progressively cover the lightweight dev-environment segment.

---

_References: Vagrant 1.x (2012-2013). Mitchell Hashimoto. HashiCorp (founded 2012). MIT licence. VirtualBox/VMware/AWS providers. Shell/Puppet/Chef/Ansible/Salt provisioners._
