HashiCorp Learn
Infrastructure
  • TerraformTerraformLearn terraformDocs
  • PackerPackerLearn packerDocs
  • VagrantVagrantLearn vagrantDocs
Security
  • VaultVaultLearn vaultDocs
  • BoundaryBoundaryLearn boundaryDocs
Networking
  • ConsulConsulLearn consulDocs
Applications
  • NomadNomadLearn nomadDocs
  • WaypointWaypointLearn waypointDocs
  • HashiCorp Cloud Platform (HCP) LogoHashiCorp Cloud Platform (HCP)HashiCorp Cloud Platform (HCP)Docs
Type '/' to Search
Loading account...
  • Bookmarks
  • Manage Account
  • Overview
  • Prerequisites
  • Up and Running
DocsForum
Back to vagrant
Quick StartView Collection
    Quick StartInstall VagrantInitialize a Project DirectoryInstall and Specify a BoxBoot an EnvironmentSynchronize Local and Guest FilesProvision a Virtual MachineConfigure the NetworkShare an EnvironmentTeardown an EnvironmentRebuild an EnvironmentExplore other Providers

Quick Start

  • 1 min
  • Products Usedvagrant

The Vagrant getting started tutorials will walk you through your first Vagrant project, highlighting major features of Vagrant.

If you are curious about the benefits Vagrant read the "Why Vagrant?" introduction page.

The getting started tutorials use Vagrant with VirtualBox, since it is free and available on every major platform. Vagrant can work with many other providers.

»Prerequisites

  • Install the latest version of Vagrant.
  • Install VirtualBox

»Up and Running

After you run the following two commands, you will have a fully running virtual machine in VirtualBox running Ubuntu 18.04 LTS 64-bit.

Initialize Vagrant.

$ vagrant init hashicorp/bionic64

Start the virtual machine.

$ vagrant up

SSH into this machine with vagrant ssh, and explore your environment. Leave the SSH session with logout.

When you are done exploring terminate the virtual machine, and confirm when the CLI prompts you by typing yes.

$ vagrant destroy

Now imagine every project you've ever worked on being this easy to set up! With Vagrant, vagrant up is all you need to work on any project, to install every dependency that project needs, and to set up any networking or synced folders, so you can continue working from the comfort of your own machine.

The rest of these tutorials will walk you through setting up a more complete project.

You have just created your first virtual environment with Vagrant. Read on to learn more about project setup.


NextInstall Vagrant
HashiCorp
  • System Status
  • Terms of Use
  • Security
  • Privacy
stdin: is not a tty