rackspace.rst 2.8 KB

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