vagrant examples
# Initialize
vagrant init ubuntu/bionic64
# Start it
vagrant up
# Stop it
vagrant halt
# Destroy it
vagrant destroy
vagrant destroy -f# Vagrant box help
vagrant box -h
# List boxes
vagrant box list# Vagrant box help
vagrant ssh-configExamples
c:\projects\otsuarez\vagrant-k3s-mod2>vagrant ssh-config
Host master
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile c:/projects/otsuarez/vagrant-k3s-mod2/.vagrant/machines/master/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Host node1
HostName 127.0.0.1
User vagrant
Port 2200
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile c:/projects/otsuarez/vagrant-k3s-mod2/.vagrant/machines/node1/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL# Connect to `master` node
vagrant ssh master
# Connect to `node1` node
vagrant ssh node1cd ~/projects/GitHub/
git clone https://github.com/geerlingguy/ansible-vagrant-examples.git