cd desktop/test
vagrant init hashicorp/precise64
vagrant up
These two commands will first download a very basic 64-bit virtual machine and then attempt to build it. If they run successfully, then you know that you have correctly installed your virtual machine software. If they do not run successfully, you should reinstalled Virtual Box and Vagrant and try again.
If your laptop goes to sleep while doing the Vagrant install, it might not be able to resume when the computer wakes up. Do this:
control-C
to kill the installation process.cd ~/.vagrant.d/tmp
. This navigates to the directory where Vagrant puts its temprary files.open .
. (open
followed by a space and a period character). This means “Open the directory I am currently in.” This should open a “tmp” directory in your Finder (on a Mac) or the “My Computer” thing in Windows.vm2015
directory. E.g. cd ~/Desktop/vm2015
.vagrant up
to restart the installation process.