Many Fumble with Getting Started With Rackspace OpenStack Nova Boot Image Part. You can bootstrap anything with this basic guide. Basic user means, you at least know how to create an instance of Cloud Server, do SSH, run basic UNIX commands. If you even do not know them, first search our website for guides on Installing WordPress or LAMP Stack on Rackspace Cloud Server. There are video guides as well. They will help you to perform the basic steps. Kindly spin up a new server, do not perform these experiments on a production server.
Rackspace OpenStack Nova Boot Image : Get Started
You will need two servers at minimum. After logging to you Rackspace Cloud account, go to the Control Panel, spin up a Cloud Server running the Linux distribution, suppose Ubuntu 13.10 and install the nova client on it :
1 2 3 4 5 6 | # run commands one by one sudo apt-get update sudo apt-get install python-setuptools # alternate way sudo easy_install pip sudo pip install rackspace-novaclient |
Edit the Bash profile :
---
1 | nano ~/.bash_profile |
Configuration should go like this, we adapted from the article written by Racker Jered Heeschen, that was for other purpose :
1 2 3 4 5 6 7 8 9 10 11 12 | # edit username OS_USERNAME=username OS_TENANT_NAME=your-rackspace-account-number OS_AUTH_SYSTEM=rackspace # edit apikey OS_PASSWORD=apikey OS_AUTH_URL=https://identity.api.rackspacecloud.com/v2.0/ # adjust region OS_REGION_NAME=DFW OS_NO_CACHE=1 export OS_USERNAME OS_TENANT_NAME OS_AUTH_SYSTEM OS_PASSWORD OS_AUTH_URL OS_REGION_NAME OS_NO_CACHE OS_NO_CACHE # clean all the hash and comments |
CHMOD it to make it readable :
1 | chmod 600 ~/.bash_profile |
Now, spin up another new Cloud Server, running REHL like rpm based distro like CentOS, Ubuntu will work fine too among deb, but the choice matters on your target – what you’ll bootstrap. We need to inject the SSH RSA public key into the list of authorized keys for the root user. Python nova client related doc can be found here :
1 | https://pypi.python.org/pypi/python-novaclient/ |
We are configuring OpenStack Networking :
1 | http://www.rackspace.com/knowledge_center/article/configuring-openstack-networking |
Every server has ID, so we can call in this way :
1 2 | nova boot --image alpha-numeric-id --flavor 2 --file "/root/.ssh/authorized_keys=.ssh/id_rsa.pub" server-name # change `alpha-numeric-id` ; `flavor 2` ; `server-name` |
What you will bootstrap we do not know, but this is the standard official method for bootstrapping Nova Boot Image, which is usually the first step for working with OpenStack Nova Boot Image.
Tagged With novaha bot image