PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/source/admin/configuration/hypervisor-zvm.rst

http://github.com/openstack/nova
ReStructuredText | 146 lines | 109 code | 37 blank | 0 comment | 0 complexity | a357d66d9ab1cdcbc877ed7ad9266329 MD5 | raw file
Possible License(s): Apache-2.0
  1. zVM
  2. ===
  3. z/VM System Requirements
  4. ~~~~~~~~~~~~~~~~~~~~~~~~
  5. * The appropriate APARs installed, the current list of which can be found: z/VM
  6. OpenStack Cloud Information (http://www.vm.ibm.com/sysman/osmntlvl.html).
  7. .. note::
  8. IBM z Systems hardware requirements are based on both the applications and
  9. the load on the system.
  10. Active Engine Guide
  11. ~~~~~~~~~~~~~~~~~~~
  12. Active engine is used as an initial configuration and management tool during
  13. deployed machine startup. Currently the z/VM driver uses ``zvmguestconfigure``
  14. and ``cloud-init`` as a two stage active engine.
  15. Installation and Configuration of zvmguestconfigure
  16. ---------------------------------------------------
  17. Cloudlib4zvm supports initiating changes to a Linux on z Systems virtual
  18. machine while Linux is shut down or the virtual machine is logged off.
  19. The changes to Linux are implemented using an activation engine (AE)
  20. that is run when Linux is booted the next time. The first active engine,
  21. ``zvmguestconfigure``, must be installed in the Linux on z Systems virtual
  22. server so it can process change request files transmitted by the
  23. cloudlib4zvm service to the reader of the virtual machine as a class X file.
  24. .. note::
  25. An additional activation engine, cloud-init, should be installed to handle
  26. OpenStack related tailoring of the system.
  27. The cloud-init AE relies on tailoring performed by ``zvmguestconfigure``.
  28. Installation and Configuration of cloud-init
  29. --------------------------------------------
  30. OpenStack uses cloud-init as its activation engine. Some Linux distributions
  31. include cloud-init either already installed or available to be installed.
  32. If your distribution does not include cloud-init, you can download
  33. the code from https://launchpad.net/cloud-init/+download.
  34. After installation, if you issue the following
  35. shell command and no errors occur, cloud-init is installed correctly::
  36. cloud-init init --local
  37. Installation and configuration of cloud-init differs among different Linux
  38. distributions, and cloud-init source code may change. This section provides
  39. general information, but you may have to tailor cloud-init
  40. to meet the needs of your Linux distribution. You can find a
  41. community-maintained list of dependencies at http://ibm.biz/cloudinitLoZ.
  42. As of the Rocky release, the z/VM OpenStack support has been tested with
  43. cloud-init 0.7.4 and 0.7.5 for RHEL6.x and SLES11.x, 0.7.6 for RHEL7.x and
  44. SLES12.x, and 0.7.8 for Ubuntu 16.04.
  45. During cloud-init installation, some dependency packages may be required.
  46. You can use zypper and python setuptools to easily resolve these dependencies.
  47. See https://pypi.python.org/pypi/setuptools for more information.
  48. Image guide
  49. ~~~~~~~~~~~
  50. This guideline will describe the requirements and steps to create and
  51. configure images for use with z/VM.
  52. Image Requirements
  53. ------------------
  54. * The following Linux distributions are supported for deploy:
  55. * RHEL 6.2, 6.3, 6.4, 6.5, 6.6, and 6.7
  56. * RHEL 7.0, 7.1 and 7.2
  57. * SLES 11.2, 11.3, and 11.4
  58. * SLES 12 and SLES 12.1
  59. * Ubuntu 16.04
  60. * A supported root disk type for snapshot/spawn. The following are supported:
  61. * FBA
  62. * ECKD
  63. * An image deployed on a compute node must match the disk type supported by
  64. that compute node, as configured by the ``zvm_diskpool_type`` property in
  65. the `zvmsdk.conf`_ configuration file in `zvm cloud connector`_
  66. A compute node supports deployment on either an ECKD or FBA image,
  67. but not both at the same time. If you wish to switch image types,
  68. you need to change the ``zvm_diskpool_type`` and
  69. ``zvm_diskpool`` properties in the `zvmsdk.conf`_ file, accordingly.
  70. Then restart the nova-compute service to make the changes take effect.
  71. * If you deploy an instance with an ephemeral disk, both the root disk and the
  72. ephemeral disk will be created with the disk type that was specified by
  73. ``zvm_diskpool_type`` property in the `zvmsdk.conf`_ file. That property can
  74. specify either ECKD or FBA.
  75. * The network interfaces must be IPv4 interfaces.
  76. * Image names should be restricted to the UTF-8 subset, which corresponds to
  77. the ASCII character set. In addition, special characters such as ``/``, ``\``,
  78. ``$``, ``%``, ``@`` should not be used. For the FBA disk type "vm",
  79. capture and deploy is supported only for an FBA disk with a single partition.
  80. Capture and deploy is not supported for the FBA disk type "vm" on a CMS
  81. formatted FBA disk.
  82. * The virtual server/Linux instance used as the source of the new image should
  83. meet the following criteria:
  84. 1. The root filesystem must not be on a logical volume.
  85. 2. The minidisk on which the root filesystem resides should be a minidisk of
  86. the same type as desired for a subsequent deploy (for example, an ECKD disk
  87. image should be captured for a subsequent deploy to an ECKD disk).
  88. 3. The minidisks should not be a full-pack minidisk, since cylinder 0 on
  89. full-pack minidisks is reserved, and should be defined with virtual
  90. address 0100.
  91. 4. The root disk should have a single partition.
  92. 5. The image being captured should not have any network interface cards (NICs)
  93. defined below virtual address 1100.
  94. In addition to the specified criteria, the following recommendations allow for
  95. efficient use of the image:
  96. * The minidisk on which the root filesystem resides should be defined as a
  97. multiple of full gigabytes in size (for example, 1GB or 2GB).
  98. OpenStack specifies disk sizes in full gigabyte values, whereas z/VM
  99. handles disk sizes in other ways (cylinders for ECKD disks, blocks for FBA
  100. disks, and so on). See the appropriate online information if you need to
  101. convert cylinders or blocks to gigabytes; for example:
  102. http://www.mvsforums.com/helpboards/viewtopic.php?t=8316.
  103. * During subsequent deploys of the image, the OpenStack code will ensure that
  104. a disk image is not copied to a disk smaller than the source disk,
  105. as this would result in loss of data. The disk specified in
  106. the flavor should therefore be equal to or slightly larger than the source
  107. virtual machine's root disk.
  108. .. _zvmsdk.conf: https://cloudlib4zvm.readthedocs.io/en/latest/configuration.html#configuration-options
  109. .. _zvm cloud connector: https://cloudlib4zvm.readthedocs.io/en/latest/