2014-02-09 07:40:31 -05:00
|
|
|
:title: Installation on Rackspace Cloud
|
|
|
|
:description: Please note this project is currently under heavy development. It should not be used in production.
|
2013-05-21 13:47:16 -04:00
|
|
|
:keywords: Rackspace Cloud, installation, docker, linux, ubuntu
|
|
|
|
|
2013-05-11 19:03:41 -04:00
|
|
|
Rackspace Cloud
|
|
|
|
===============
|
|
|
|
|
2013-08-28 20:26:10 -04:00
|
|
|
.. include:: install_unofficial.inc
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-08-28 20:26:10 -04:00
|
|
|
Installing Docker on Ubuntu provided by Rackspace is pretty
|
|
|
|
straightforward, and you should mostly be able to follow the
|
2013-05-15 19:11:59 -04:00
|
|
|
:ref:`ubuntu_linux` installation guide.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
**However, there is one caveat:**
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-11-26 00:16:30 -05:00
|
|
|
If you are using any Linux not already shipping with the 3.8 kernel
|
2013-08-28 20:26:10 -04:00
|
|
|
you will need to install it. And this is a little more difficult on
|
|
|
|
Rackspace.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-08-28 20:26:10 -04:00
|
|
|
Rackspace boots their servers using grub's ``menu.lst`` and does not
|
2013-11-26 00:16:30 -05:00
|
|
|
like non 'virtual' packages (e.g. Xen compatible) kernels there,
|
|
|
|
although they do work. This results in ``update-grub`` not having the
|
|
|
|
expected result, and you will need to set the kernel manually.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
**Do not attempt this on a production machine!**
|
2013-05-12 13:12:44 -04:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# update apt
|
|
|
|
apt-get update
|
2013-05-12 13:12:44 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# install the new kernel
|
|
|
|
apt-get install linux-generic-lts-raring
|
2013-05-12 13:12:44 -04:00
|
|
|
|
|
|
|
|
2013-11-26 00:16:30 -05:00
|
|
|
Great, now you have the kernel installed in ``/boot/``, next you need to make it
|
2013-08-28 20:26:10 -04:00
|
|
|
boot next time.
|
2013-05-12 13:12:44 -04:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# find the exact names
|
|
|
|
find /boot/ -name '*3.8*'
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# this should return some results
|
2013-05-11 19:03:41 -04:00
|
|
|
|
|
|
|
|
2013-08-28 20:26:10 -04:00
|
|
|
Now you need to manually edit ``/boot/grub/menu.lst``, you will find a
|
|
|
|
section at the bottom with the existing options. Copy the top one and
|
|
|
|
substitute the new kernel into that. Make sure the new kernel is on
|
2013-11-26 00:16:30 -05:00
|
|
|
top, and double check the kernel and initrd lines point to the right files.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-11-26 00:16:30 -05:00
|
|
|
Take special care to double check the kernel and initrd entries.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# now edit /boot/grub/menu.lst
|
|
|
|
vi /boot/grub/menu.lst
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
It will probably look something like this:
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
::
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
## ## End Default Options ##
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
title Ubuntu 12.04.2 LTS, kernel 3.8.x generic
|
|
|
|
root (hd0)
|
|
|
|
kernel /boot/vmlinuz-3.8.0-19-generic root=/dev/xvda1 ro quiet splash console=hvc0
|
|
|
|
initrd /boot/initrd.img-3.8.0-19-generic
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual
|
|
|
|
root (hd0)
|
|
|
|
kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash console=hvc0
|
|
|
|
initrd /boot/initrd.img-3.2.0-38-virtual
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual (recovery mode)
|
|
|
|
root (hd0)
|
|
|
|
kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash single
|
|
|
|
initrd /boot/initrd.img-3.2.0-38-virtual
|
2013-05-11 19:03:41 -04:00
|
|
|
|
|
|
|
|
2013-11-26 00:16:30 -05:00
|
|
|
Reboot the server (either via command line or console)
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# reboot
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
Verify the kernel was updated
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
uname -a
|
|
|
|
# Linux docker-12-04 3.8.0-19-generic #30~precise1-Ubuntu SMP Wed May 1 22:26:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
|
2013-05-11 19:03:41 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# nice! 3.8.
|
2013-05-11 19:03:41 -04:00
|
|
|
|
|
|
|
|
2013-08-28 20:26:10 -04:00
|
|
|
Now you can finish with the :ref:`ubuntu_linux` instructions.
|