vagrant

hashicorpMIT活跃维护

用配置文件一键创建和分发可复现的开发环境,屏蔽 VirtualBox、VMware 等虚拟化差异,让团队环境搭建不再手工折腾。

Vagrant is a tool for building and distributing development environments.

2.4.10.dev+000834-2757db88发布于 2026-06-01 08:42 UTC27,223star4,486fork同步于 2026-11-10 11:22 UTC

怎么上手

由 README 提炼,执行前请确认
vagrant init hashicorp/bionic64
vagrant up
硬件要求按 README 说明

README 未说明具体硬件要求,仅要求系统 PATH 中有 bsdtar 和 curl;快速上手示例需预先安装 VirtualBox。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用配置文件一键创建和分发可移植开发环境的命令行工具

用配置文件一键创建和分发可复现的开发环境,屏蔽 VirtualBox、VMware 等虚拟化差异,让团队环境搭建不再手工折腾。

核心能力

  • 用 vagrant init 加 vagrant up 两条命令拉起虚拟机
  • 同一套配置可在 VirtualBox、VMware、AWS、OpenStack、Docker、LXC 上运行
  • 环境配置可移植于 Windows、macOS 与 Linux 之间
  • 首次 up 时自动按指定 URL 下载 box 镜像

容易踩的坑

运行前必须确保系统 PATH 中存在 bsdtar 和 curl,否则无法正常工作;首次 vagrant up 会联网下载 box 镜像,需保证网络可用;快速上手依赖本机已安装 VirtualBox,其他 provider 需自行准备对应后端。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本2.4.10.dev+000834-2757db88
  1. 2.4.10.dev+000834-2757db88pre-release最新正式版2026-06-01 · 2026-06-01 08:42 UTC

    Vagrant nightly release build

  2. 2.4.10.dev+000781-f9e2630dpre-release2026-04-09 · 2026-04-09 05:59 UTC
    查看更新说明

    Vagrant nightly release build

  3. 2.4.10.dev+000759-0b7d460apre-release2026-03-18 · 2026-03-18 07:46 UTC
    查看更新说明

    Vagrant nightly release build

  4. 2.4.10.dev+000754-d3cecacepre-release2026-03-13 · 2026-03-13 07:36 UTC
    查看更新说明

    Vagrant nightly release build

  5. 2.4.10.dev+000724-92e88862pre-release2026-02-11 · 2026-02-11 07:44 UTC
    查看更新说明

    Vagrant nightly release build

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Vagrant

    [!IMPORTANT] HCP Vagrant is in the process of being deprecated and limited features will be available from the community edition effective November 2, 2026. Click here for more information.

    This change is only for HCP Vagrant and does not apply to Vagrant CLI.

    Vagrant is a tool for building and distributing development environments.

    Development environments managed by Vagrant can run on local virtualized platforms such as VirtualBox or VMware, in the cloud via AWS or OpenStack, or in containers such as with Docker or raw LXC.

    Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

    Quick Start

    Package dependencies: Vagrant requires bsdtar and curl to be available on your system PATH to run successfully.

    For the quick-start, we'll bring up a development machine on VirtualBox because it is free and works on all major platforms. Vagrant can, however, work with almost any system such as OpenStack, VMware, Docker, etc.

    First, make sure your development machine has VirtualBox installed. After this, download and install the appropriate Vagrant package for your OS.

    To build your first virtual environment:

    vagrant init hashicorp/bionic64
    vagrant up
    

    Note: The above vagrant up command will also trigger Vagrant to download the bionic64 box via the specified URL. Vagrant only does this if it detects that the box doesn't already exist on your system.

    Getting Started Guide

    To learn how to build a fully functional development environment, follow the getting started guide.

    Installing from Source

    If you want the bleeding edge version of Vagrant, we try to keep main pretty stable and you're welcome to give it a shot. Please review the installation page here.

    Contributing to Vagrant

    Please take time to read the HashiCorp Community Guidelines and the Vagrant Contributing Guide.

    Then you're good to go!