Vagrant defines reproducible dev machines you start with a few commands, using boxes and a Vagrantfile across VirtualBox, VMware, cloud, or container backends.
Overview
Vagrant is a command-line tool for creating, configuring, and sharing development environments. Each environment is described declaratively so teammates can reproduce the same guest setup on different host operating systems.
Managed machines can run on local hypervisors such as VirtualBox or VMware, in public cloud stacks like AWS or OpenStack, or inside Docker or LXC containers. The workflow centers on downloadable box images, a Vagrantfile that records VM settings and provisioning steps, and commands such as init and up to boot guests.
Built-in concepts include synced folders between host and guest, port forwarding and other networking helpers, provider plugins for alternate runtimes, optional triggers that run host commands around lifecycle events, and a plugin ecosystem for extra behavior. HashiCorp also documents HCP Vagrant Registry for publishing boxes; the CLI itself remains the community-facing control plane.
Typical tutorials walk through installing a provider, pulling a base box, and provisioning software with shell or configuration management scripts so dependencies stay isolated from the developer laptop.
Key features
- Disposable dev VM workflows
- Portable box image format
- Vagrantfile environment definition
- Multi-provider plugin support
- Host-guest synced folders
- Network forwarding helpers
- Lifecycle trigger hooks
- Provisioning script integration
Use cases
- Onboarding with identical dev stacks
- Isolated dependency testing
- Cross-platform guest replication
- Local demos of multi-tier apps
- Trying HashiCorp product tutorials