Sunday, September 22, 2019

Regular vagrant commands

Below are some regular vagrant commands we use for a sample VM:
vagrant init ubuntu/trusty64  → create vagrant file
vagrant up → power on/create and power on
vagrant ssh → connect to vm
vagrant halt → shutdown
vagrant reload → reboot/restart
vagrant destroy → delete vm
vagrant status → to check status of machine

vagrant up --provider vmware #to change from default vbox to vmware.If the image supports the hypervisor provided.
vagrant up --provider hyperv

For existing machine, to apply changes, use "vagrant reload"

All above commands from same working directory.

No comments:

Post a Comment