Skip to content

Instantly share code, notes, and snippets.

@CloudLinuxDeveloper
Last active August 12, 2021 23:04
Show Gist options
  • Save CloudLinuxDeveloper/453fdad1a8aeb3029015479c93929e81 to your computer and use it in GitHub Desktop.
Save CloudLinuxDeveloper/453fdad1a8aeb3029015479c93929e81 to your computer and use it in GitHub Desktop.
How to install Vagrant on Linux
# !/bin/sh
# Setup Vagrant
sudo apt update && sudo apt upgrade
sudo apt install virtualbox
sudo apt update
curl -O https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb
sudo apt install ./vagrant_2.2.6_x86_64.deb
# Version
vagrant --version
# Create the project directory
mkdir ~/vagrant-project
cd ~/vagrant-project
vagrant init centos/7
vagrant up
vagrant ssh
vagrant halt
vagrant destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment