Skip to content

Successor Map · Infrastructure and containers

Vagrant to Dev Containers: from virtual machines to containers

Vagrant is still a maintained HashiCorp tool for running development environments in virtual machines. Many teams now describe the same environment as a container instead, using the Development Container Specification.

Slide: Vagrant on the left, an arrow, and Dev Containers on the right.
Status of the old tool
Still active
Effort to move
A real project
gen2.dev's view
Leave it
Sources checked
2026-11-28

Key facts

Gen 1Vagrant
Gen 2Dev Containers (the Development Container Specification)
Kind of toolInfrastructure and containers
Status of Gen 1Still active HashiCorp's Vagrant documentation, read on November 28, 2026, shows v2.4.9 as the latest version, and the Vagrant repository says the HCP Vagrant deprecation does not apply to the Vagrant CLI.
Effort to moveA real project: plan it and run both for a while
What breaksA container is not a virtual machine, so environments that need a different operating system than the host cannot be moved as they are.
Should you move?Leave it The Vagrant CLI is maintained, and HashiCorp's deprecation notice covers the hosted HCP Vagrant service only. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 6 sources

Gen 1 and Gen 2 side by side

GitHub Gen 1 Gen 2
Repositoryhashicorp/vagrantdevcontainers/cli
Latest versionv2.4.9v0.91.0 (newest tag)
Latest releaseAug 21, 2025Nov 20, 2026
Repository createdJan 21, 2010Apr 27, 2022
LicenseMITMIT
GitHub stars27,2453,046
Last code pushNov 23, 2026Nov 26, 2026
ArchivedNoNo

Read from GitHub on November 29, 2026. Stars measure attention, not use. A dash means the figure does not apply to that kind of listing.

Both tools answer the same question: how does a new developer get a working environment on day one?

What Gen 1 was

HashiCorp's README says "Vagrant is a tool for building and distributing development environments." Its documentation is more specific: "Vagrant is the command line utility for managing the lifecycle of virtual machines."

It is maintained. The documentation shows v2.4.9 as the latest version.

One part is being wound down. The README carries a notice that HCP Vagrant, the hosted service, "is in the process of being deprecated," with limited features in the community edition "effective November 2, 2026." The next line limits the scope: "This change is only for HCP Vagrant and does not apply to Vagrant CLI."

What replaced it

For many teams, a container. The project's site describes the Development Container Specification in one line: "An open specification for enriching containers with development specific content and settings." A dev container "allows you to use a container as a full-featured development environment."

The project lists the tools that read it, among them Visual Studio Code, Visual Studio, IntelliJ IDEA, the Dev Container CLI and GitHub Codespaces.

HashiCorp's own comparison names the appeal: "Containers are generally more lightweight than virtual machines, so starting and stopping containers is extremely fast."

What moving involves

There is no converter. A Vagrant setup describes a machine and how to provision it. A dev container is described by a devcontainer.json file in the project, which tells supporting tools how to reach the container and what tools and runtime it holds.

So the work is a rebuild: take what the provisioning installs and express it as a container definition.

There is a halfway step. Vagrant has a Docker provider, which "allows for your development environments to be backed by Docker containers rather than virtual machines."

Both descriptions can sit in the same repository while the team switches over. That is a small case of running two systems, and it should have an end date.

What breaks

Anything that depended on a real virtual machine. HashiCorp's comparison points at the gaps: "Currently, Docker lacks support for certain operating systems (such as BSD)." It also notes that Vagrant "will allow you to run a Windows development environment on Mac or Linux."

Vagrant runs on many backends, which the README lists as local platforms such as VirtualBox or VMware, cloud platforms, and containers. A dev container is only ever a container.

Should you move?

Leave it. The Vagrant CLI is maintained, and the deprecation notice is for the hosted service.

The exceptions run both ways. Teams that depend on HCP Vagrant should read that notice now. Teams that need a full virtual machine, or an operating system containers do not cover, should stay on Vagrant.

Common questions

Is Vagrant dead?

No. Its maintainers have not announced an end. HashiCorp's Vagrant documentation, read on November 28, 2026, shows v2.4.9 as the latest version, and the Vagrant repository says the HCP Vagrant deprecation does not apply to the Vagrant CLI.

What replaced Vagrant?

Dev Containers (the Development Container Specification). Effort to move: A real project: plan it and run both for a while

Should I move off Vagrant?

gen2.dev's view: Leave it. The Vagrant CLI is maintained, and HashiCorp's deprecation notice covers the hosted HCP Vagrant service only.

Sources

  1. Vagrant documentation - HashiCorp Developer - the description of Vagrant and v2.4.9 shown as the latest version
  2. hashicorp/vagrant README - GitHub - the description of Vagrant, the platforms it runs on, and the HCP Vagrant deprecation notice with its November 2, 2026 date
  3. Vagrant vs. Docker - HashiCorp Developer - HashiCorp's own comparison: container speed, operating systems Docker lacks, and running Windows environments
  4. Docker provider - Vagrant documentation - that Vagrant can back a development environment with Docker containers
  5. Development Containers - containers.dev - the definition of a development container and of the specification
  6. Supporting tools and services - containers.dev - the editors, tools and services that support the specification, and the role of devcontainer.json
  7. hashicorp/vagrant - GitHub - latest release, license, stars, last push and archive status, read on November 29, 2026
  8. devcontainers/cli - GitHub - latest release, license, stars, last push and archive status, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.