<commit_before>---
layout: docs
slug: rackspace
title: Documentation - Rackspace
---

# Running CoreOS on Rackspace

CoreOS is currently in heavy development and actively being tested.  These
instructions will walk you through running CoreOS on the Rackspace Openstack cloud, which differs slightly from the generic Openstack instructions. We're going to install `rackspace-novaclient`, upload a keypair and boot the image id `430d35e0-1468-4007-b063-52ee1921b356`.

## Install Rackspace CLI

If you don't have `pip` installed, install it by running `sudo easy_install pip`. Now let's use `pip` to install the Rackspace fork of the Nova CLI. This fork supports Rackspace's custom authentication method.

`pip install rackspace-novaclient`

## Edit Bash Profile

Edit your bash profile (`~/.bash_profile`) to store your username, API key and some other settings:

```
OS_USERNAME=username
OS_TENANT_NAME=username
OS_AUTH_SYSTEM=rackspace
OS_PASSWORD=<PASSWORD>
OS_AUTH_URL=https://identity.api.rackspacecloud.com/v2.0/
OS_REGION_NAME=IAD
OS_NO_CACHE=1
export OS_USERNAME OS_TENANT_NAME OS_AUTH_SYSTEM OS_PASSWORD OS_AUTH_URL OS_REGION_NAME OS_NO_CACHE
```

After saving your profile, load the settings so `rackspace-novaclient` can read them:

```
source .bash_profile
```

We're ready to create a keypair then boot a server with it.

## Create Keypair

For this guide, I'm assuming you already have a public key you use for your CoreOS servers. Note that only RSA keypairs are supported. Load the public key to Rackspace:

```
nova keypair-add --pub-key ~/.ssh/coreos.pub coreos-key
```

Check you make sure the key is in your list by running `nova keypair-list`

```
+------------+-------------------------------------------------+
| Name       | Fingerprint                                     |
+------------+-------------------------------------------------+
| coreos-key | d0:6b:d8:3a:3e:6a:52:43:32:bc:01:ea:c2:0f:49:59 |
+------------+-------------------------------------------------+
```

## Boot a Server

Boot a new server with our new keypair:

```
nova boot --image 430d35e0-1468-4007-b063-52ee1921b356 --flavor 2 My_CoreOS_Server --key-name coreos-key
```<commit_msg>feat(rackspace): instructions for supernova<commit_after>---
layout: docs
slug: rackspace
title: Documentation - Rackspace
---

# Running CoreOS on Rackspace

CoreOS is currently in heavy development and actively being tested.  These
instructions will walk you through running CoreOS on the Rackspace Openstack cloud, which differs slightly from the generic Openstack instructions. We're going to install `rackspace-novaclient`, upload a keypair and boot the image id `430d35e0-1468-4007-b063-52ee1921b356`.

## Install Supernova Tool

If you don't have `pip` installed, install it by running `sudo easy_install pip`. Now let's use `pip` to install Supernova, a tool that lets you easily switch Rackspace regions. Be sure to install these in the order listed:

```
sudo pip install keyring
sudo pip install rackspace-novaclient
sudo pip install supernova
```

## Store Account Information 

Edit your config file (`~/.supernova`) to store your username, API key and some other settings:

```
[production]
OS_AUTH_URL = https://identity.api.rackspacecloud.com/v2.0/
OS_USERNAME = username
OS_PASSWORD = <PASSWORD>
OS_TENANT_NAME = nova-production

[development]
OS_AUTH_URL = http://dev.nova.example.com:8774/v1.1/
OS_USERNAME = jsmith
OS_PASSWORD = <PASSWORD>
OS_TENANT_NAME = nova-development
```

We're ready to create a keypair then boot a server with it.

## Create Keypair

For this guide, I'm assuming you already have a public key you use for your CoreOS servers. Note that only RSA keypairs are supported. Load the public key to Rackspace:

```
supernova production keypair-add --pub-key ~/.ssh/coreos.pub coreos-key
```

Check you make sure the key is in your list by running `supernova production keypair-list`

```
+------------+-------------------------------------------------+
| Name       | Fingerprint                                     |
+------------+-------------------------------------------------+
| coreos-key | d0:6b:d8:3a:3e:6a:52:43:32:bc:01:ea:c2:0f:49:59 |
+------------+-------------------------------------------------+
```

## Boot a Server

Boot a new server with our new keypair:

```
supernova production boot --image 430d35e0-1468-4007-b063-52ee1921b356 --flavor 2 My_CoreOS_Server --key-name coreos-key
```
{'fraction_non_alphanumeric': 0.16726943942133815, 'fraction_numerical': 0.035488245931283906, 'mean_word_length': 2.8849868305531166, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7347242', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1292, 'n_words': 469}