Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Created November 18, 2019 14:36
Show Gist options
  • Save linuxfemale/c0f082f092494a1dc7fefb6207f80e54 to your computer and use it in GitHub Desktop.
Save linuxfemale/c0f082f092494a1dc7fefb6207f80e54 to your computer and use it in GitHub Desktop.
Vagrant on Ubuntu 18.04LTS (Bionic Beaver)
##Install VirtualBox
sudo apt install virtualbox
##Install Vagrant with apt-get
sudo apt install vagrant
#To make sure you’re running the latest version of Vagrant, open a web browser to https://www.vagrantup.com/downloads.html.
sudo wget https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb
sudo dpkg –i vagrant_2.2.6_x86_64.deb
vagrant ––version
##Deploying Vagrant On Ubuntu 18.04
sudo mkdir ~/vagrant-ubuntu
cd ~/vagrant-ubuntu
vagrant init ubuntu/bionic64
vagrant up
vagrant ssh
##Other Vagrant Commands
#To stop the virtual machine:
vagrant halt
#To delete the virtual machine, use the command:
vagrant destroy
#This will also destroy any work you have done inside the virtual OS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment