rackspace.rst 2.7 KB

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