• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Creating a Linux Image
  5. Installing Cloud-Init
  6. SUSE 12

SUSE 12

NOTE:

This section uses SUSE 12 SP1 as an example. Cloud-Init is installed offline.

  1. Download the Cloud-Init installation package and dependent package.
    Table 1 Download paths

    Package

    Download Path

    Cloud-Init dependent package

    https://bms-image-package.obs.myhwclouds.com/cloudinit-18.2-dependentPackage.zip

    Cloud-Init installation package

    https://launchpad.net/cloud-init/trunk/18.2/+download/cloud-init-18.2.tar.gz

  2. Run the following command to decompress cloudinit-18.2-dependentPackage.zip:

    tar -zxvf cloudinit-18.2-dependentPackage.zip

  3. Run the following commands to decompress pip-7.1.2.tar.gz and setuptools-19.6.2.tar.gz:

    tar -zxvf pip-7.1.2.tar.gz

    tar -zxvf setuptools-19.6.2.tar.gz

  4. Run the following command to enter the setuptools-19.6.2 folder:

    cd setuptools-19.6.2

  5. Run the python setup.py install command.

  6. Run the following command to enter the pip-7.1.2 folder:

    cd pip-7.1.2

  7. Run the python setup.py install command.

  8. Run the following commands to configure the pip source:
    • cd ~
    • mkdir .pip
    • cd .pip
    • vi pip.conf
      The content can be similar to the following image address or that on the PyPI official website:
      [global] 
      trusted-host=pypi.tuna.tsinghua.edu.cn 
      index-url=https://pypi.tuna.tsinghua.edu.cn/simple
  9. Run the following commands to install dependent packages using pip:

    pip install argparse-1.4.0.tar.gz

    pip install certifi-2016.2.28.tar.gz

    pip install chardet-3.0.4.zip

    pip install idna-2.1.tar.gz

    pip install MarkupSafe-1.0.tar.gz

    pip install Jinja2-2.8.tar.gz

    pip install jsonpointer-1.10.tar.gz

    pip install jsonschema-2.5.1.tar.gz

    pip install jsonpatch-1.14.tar.gz

    pip install vcversioner-2.16.0.0.tar.gz

    pip install repoze.lru-0.6.tar.gz

    pip install jsonschema-2.5.1.tar.gz

    pip install oauthlib-2.0.2.zip

    pip install PyYAML-3.12.zip

    pip install requests-2.13.0.tar.gz

    pip install six-1.10.0.tar.gz

    pip install urllib3-1.21.1.tar.gz

  10. Run the following command to decompress cloud-init-18.2.tar.gz:

    tar -xzvf cloud-init-18.2.tar.gz

  11. Run the following command to enter the cloud-init-18.2 folder:

    cd cloud-init-18.2

  12. Run the python setup.py build command.

  13. Run the python setup.py install --init-system systemd command.
  14. Run the cloud-init -v command until the Cloud-Init version is displayed.