Skip to content

Instantly share code, notes, and snippets.

View osueke-christian's full-sized avatar

Christian Osueke osueke-christian

View GitHub Profile
@osueke-christian
osueke-christian / chris.sql
Created March 16, 2020 08:48
just a bgisy
cghghcfghcfhy
@osueke-christian
osueke-christian / cloudSettings
Last active February 16, 2021 23:07 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
{"lastUpload":"2021-02-16T23:07:15.847Z","extensionVersion":"v3.4.3"}

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)