1. vagrant-virtualbox
Provisioning Virtual Machine with Vagrant
Ref: https://www.lukmanlab.com/tag/vagrant/
1.1. Run this Vagrantfile
git clone https://github.com/lukmanlab/vagrant-virtualbox.git
cd vagrant-virtualbox
vagrant up
1.2. Basic Command Vagrant
1.2.1. Initialization Vagrantfile
$ vagrant init hashicorp/precise64
1.2.2. Running Vagrantfile (Provisioning)
$ vagrant up
1.2.3. Add Boxes to Local
$ vagrant box add ubuntu/xenial64
List boxes downloaded (~/.vagrant.d/boxes/):
$ vagrant box list
Update to Latest Version:
$ vagrant box update
1.2.4. Check Status Vagrantfile
$ vagrant status
List Boxes Provisioned:
$ vagrant global-status
1.2.5. Distroy VM Provisioned
$ vagrant destroy
1.2.6. SSH to VMs
$ vagrant ssh node1
1.2.7. Save State to Snapshot VM
$ vagrant snapshot save node1 masih-fresh
1.2.8. Restore State Snapshot
$ vagrant snapshot restore node1 masih-fresh