• 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. EulerOS 2.2 and EulerOS 2.3

EulerOS 2.2 and EulerOS 2.3

  1. Take EulerOS 2.2 as an example. Configure the yum source for EulerOS 2.2 in the /etc/yum.repo.d/EulerOS-base.repo file:
    [EulerOS-base]
    name=EulerOS-base
    baseurl=http://developer.huawei.com/ict/site-euleros/euleros/repo/yum/2.2/os/x86_64/
    enabled=1
    gpgcheck=1
    gpgkey=http://developer.huawei.com/ict/site-euleros/euleros/repo/yum/2.2/os/RPM-GPG-KEY-EulerOS

    Edit and save the file.

  2. Run the yum repolist command and then yum install cloud-init command to install Cloud-Init 0.7.6.

    Dependent packages of Cloud-Init 0.7.6 will also be installed automatically.

    Installed:
      cloud-init.x86_64 0:0.7.6-2
    
    Dependency Installed:
      PyYAML.x86_64 0:3.10-11                                       audit-libs-python.x86_64 0:2.4.1-5
      checkpolicy.x86_64 0:2.1.12-6                                 libsemanage-python.x86_64 0:2.1.10-18
      libyaml.x86_64 0:0.1.4-11                                     policycoreutils-python.x86_64 0:2.2.5-15.h1
      python-IPy.noarch 0:0.75-6                                    python-backports.x86_64 0:1.0-8
      python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4        python-jsonpatch.noarch 0:1.2-2
      python-jsonpointer.noarch 0:1.9-2                             python-prettytable.noarch 0:0.7.2-1
      python-requests.noarch 0:2.6.0-1                              python-six.noarch 0:1.9.0-2
      python-urllib3.noarch 0:1.10.2-2                              setools-libs.x86_64 0:3.3.7-46
    
    Complete!
    NOTE:

    If you are prompted that dependent packages are missing, perform the operation in step 5 in section Red Hat, CentOS, Oracle Linux, and XenServer.

  3. To inject the password of user root, run the yum install selinux-policy command to upgrade selinux-policy from h1 to h2.
  4. Run the cloud-init -v command. If the command output is cloud-init 0.7.6, the installation is successful.