CoreOS is a new operating system ready for the cloud computing. In this guide, we will talk about how to install CoreOS on Rackspace Cloud. We talked about CoreOS in small details in a previous article. CoreOS is currently under active development. Rackspace Openstack cloud differs slightly from the generic Openstack, so there will be some difference with OpenStack instructions.
CoreOS and Net-install of a custom linux distro on Cloud Servers
This method :
1 | http://en.opensuse.org/SDB:Remote_installation |
Does not work for Rackspace. As practically we are not everyday testing these things, our last tries were successful by a opening a ticket to Rackspace support to enable PV-GRUB. This was for other non CoreOS custom Linux Distro. The steps demands good grasp on UNIX. However, for CoreOS, these are not required.
---
CoreOS on Rackspace Cloud : Basics
We need to install Python for installing Supernova tool. Details was described on this article – OpenStack Cloud Tools Python Packages. Run these commands :
1 2 3 | sudo pip install keyring sudo pip install rackspace-novaclient sudo pip install supernova |
Edit your config file :
1 | vi ~/.supernova |
Store your username, API key and some other settings. From documentation of CoreOS, these will be like these :
1 2 3 4 5 6 7 8 9 10 11 | [production] OS_AUTH_URL = https://identity.api.rackspacecloud.com/v2.0/ OS_USERNAME = your-username OS_PASSWORD = fd62afe2-4686-469f-9849-ceaa792c55a6 OS_TENANT_NAME = nova-production [development] OS_AUTH_URL = http://dev.nova.example.com:8774/v1.1/ OS_USERNAME = jsmith OS_PASSWORD = 40318069-6069-4d9f-836d-a46df17fc8d1 OS_TENANT_NAME = nova-development |
jsmith username is given for dev purpose as per with the documentation. Add RSA keypairs :
1 | supernova production keypair-add --pub-key ~/.ssh/coreos.pub coreos-key |
Booting :
1 | supernova production boot --image 430d35e0-1468-4007-b063-52ee1921b356 --flavor 2 My_CoreOS_Server --key-name coreos-key |