rackspace.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. :title: Rackspace Cloud Installation
  2. :description: Installing Docker on Ubuntu proviced by Rackspace
  3. :keywords: Rackspace Cloud, installation, docker, linux, ubuntu
  4. ===============
  5. Rackspace Cloud
  6. ===============
  7. .. include:: install_unofficial.inc
  8. Installing Docker on Ubuntu provided by Rackspace is pretty
  9. straightforward, and you should mostly be able to follow the
  10. :ref:`ubuntu_linux` installation guide.
  11. **However, there is one caveat:**
  12. If you are using any linux not already shipping with the 3.8 kernel
  13. you will need to install it. And this is a little more difficult on
  14. Rackspace.
  15. Rackspace boots their servers using grub's ``menu.lst`` and does not
  16. like non 'virtual' packages (e.g. xen compatible) kernels there,
  17. although they do work. This makes ``update-grub`` to not have the
  18. expected result, and you need to set the kernel manually.
  19. **Do not attempt this on a production machine!**
  20. .. code-block:: bash
  21. # update apt
  22. apt-get update
  23. # install the new kernel
  24. apt-get install linux-generic-lts-raring
  25. Great, now you have kernel installed in ``/boot/``, next is to make it
  26. boot next time.
  27. .. code-block:: bash
  28. # find the exact names
  29. find /boot/ -name '*3.8*'
  30. # this should return some results
  31. Now you need to manually edit ``/boot/grub/menu.lst``, you will find a
  32. section at the bottom with the existing options. Copy the top one and
  33. substitute the new kernel into that. Make sure the new kernel is on
  34. top, and double check kernel and initrd point to the right files.
  35. Make special care to double check the kernel and initrd entries.
  36. .. code-block:: bash
  37. # now edit /boot/grub/menu.lst
  38. vi /boot/grub/menu.lst
  39. It will probably look something like this:
  40. ::
  41. ## ## End Default Options ##
  42. title Ubuntu 12.04.2 LTS, kernel 3.8.x generic
  43. root (hd0)
  44. kernel /boot/vmlinuz-3.8.0-19-generic root=/dev/xvda1 ro quiet splash console=hvc0
  45. initrd /boot/initrd.img-3.8.0-19-generic
  46. title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual
  47. root (hd0)
  48. kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash console=hvc0
  49. initrd /boot/initrd.img-3.2.0-38-virtual
  50. title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual (recovery mode)
  51. root (hd0)
  52. kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash single
  53. initrd /boot/initrd.img-3.2.0-38-virtual
  54. Reboot server (either via command line or console)
  55. .. code-block:: bash
  56. # reboot
  57. Verify the kernel was updated
  58. .. code-block:: bash
  59. uname -a
  60. # 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
  61. # nice! 3.8.
  62. Now you can finish with the :ref:`ubuntu_linux` instructions.