Vagrant Notes
Basic Setup
Initialize a standard Ubuntu vagrant image.
vagrant init hashicorp/precise32
Start the vagrant image up.
vagrant up
Vagrant will download and build the VM if this is the first time, otherwise it will restart the vagrant image.
SSH into the vm after it’s been started.
vagrant ssh
Stop the vagrant image
vagrant halt
All the changes you make inside the vagrant machine will be preserved and will be available when you start up the vagrant machine again.
command | description |
---|---|
vagrant init <file> | create and initialize new vagrant image |
vagrant up | start vm |
vagrant ssh | ssh into the image |
vagrant halt | stop the vm |