A word on pricing: if you use the cloud for a small project it's basically free. A full day on Digital Oceans costs 16 cents. That's (hopefully) less than you tip on a cup of coffee. There are a lot of online coupons that'll get you through the first few months. AWS offers a full year for free, see http://aws.amazon.com/free/.
I'm assuming that you have vagrant installed and a Vagrantfile already written or generated with vagrant init. Ok, let's get started! First, download the vagrant plugin.
vagrant plugin install vagrant-digitalocean
Sign up on http://www.digitalocean.com. Digital Ocean is a cloud hosting provider. Once signed in, click on API at the top and generate a token.
Copy and paste the token. Now you have to tell vagrant who you are on Digital Ocean. Add the following to the vagrant file and delete any other line that specifies your base image, i.e., override.vm.box Replace YOUR TOKEN with the token you just copied. Careful, do not push the Vagrantfile with your token to GitHub!
config.vm.providerAnd you're ready? 55 seconds, I told you! Start your machine in the cloud by running | , | override.ssh.private_key_path override.vm.box override.vm.box_url provider.token provider.image provider.region provider.size
If you specified some kind of web service in your vagrant file, you (or anybody else) can access it under this IP. (I used a node-hello-world example).
The only user preconfigured on the digital_ocean.box is root, not vagrant. You can delete a personal access token on the DigitalOcean website. This is very useful, if the token ended up in your git history.