Support: 1-800-961-4454
Sales Chat

Rackspace Cloudvent Calendar Day 11: vagrant-rackspace

In the spirit of the holiday season, I’m sharing some tips and features of our cloud that you may not know about. In this countdown I’ll have 24 posts for you, each covering a single topic or feature about Rackspace Cloud products. We’ll post one per day so keep checking back!

Vagrant is a tool that allows you to build a complete development environment quickly and easily. If you’re a developer using Vagrant, you can use the Rackspace Cloud as a provider and test your provisioning on the same platform you use for production. It’s really easy to get started. Assuming you have Vagrant installed already all you need is a plugin:

$ vagrant plugin install vagrant-rackspace

Then add the dummy box:

$ vagrant box add dummy

And finally, add the Rackspace parts to your Vagrantfile:

Vagrant.configure("2") do |config| = "dummy"

  config.vm.provider :rackspace do |rs|
    rs.username = "YOUR USERNAME"
    rs.api_key  = "YOUR API KEY"
    rs.flavor   = /512MB/
    rs.image    = /Ubuntu/

When you are ready to build a Cloud Server, just run:

$ vagrant up --provider=rackspace

That’s it! You can use Vagrant to test your configuration management, new application features, and get rid of that pesky “It works on my machine!” problem. Check back tomorrow for more tips and tricks!

About the Author

This is a post written and contributed by Hart Hoover.

Hart Hoover is a Cloud Strategist at Rackspace Hosting. Hoover started his career as a Racker in 2007 as a Linux Systems Administrator, providing technical support for dedicated servers. He moved to the cloud in 2009 to help design the Managed Cloud Servers support model. He has presented at various technical conferences, maintains and contributes to the Rackspace DevOps Blog, and advises Rackspace customers on best practices for cloud computing.

Racker Powered
©2016 Rackspace, US Inc.