Rate This Document
Findability
Accuracy
Completeness
Readability

Building the CentOS Linux 8 Installation Package

centos-8.5.2111
├── buildGuestImageCentOS.sh
├── configs
│   ├── 2nd_arch
│   ├── opaths-list
│   ├── utmp-list
│   └── vpaths-list
├── README.md
└── scripts
    ├── create-vpaths-list-stubs.sh
    └── guest-image-rpm-build.sh

Building the Guest OS Installation Package When Return Address Optimization Is Disabled by Default

  1. Change the current working directory to the directory where the script for building the guest OS installation package is located.
  2. Copy the CentOS Linux 8 ISO image to the current directory.
  3. Run the following command to grant the execute permission on the shell script:
    1
    chmod a+x buildGuestImageCentOS.sh scripts/*.sh
    
  4. Switch the working account to the root account.
  5. Run the following command to build the guest OS installation package:
    1
    /bin/bash ./buildGuestImageCentOS.sh -v <package_version> -d centos-8 -i $(pwd)/CentOS-8.5.2111-x86_64-dvd1.iso -m no
    
    • <package_version> indicates the version number of the ExaGear package.
    • Download the CentOS Linux 8 ISO image file CentOS-8.5.2111-x86_64-dvd1.iso from https://mirrors.huaweicloud.com/centos-vault. Verify that the image file sha256sum is the same as that provided by the corresponding website. Otherwise, the build process will exit abnormally. For a specific ISO file, manually delete the verification of sha256sum in buildGuestImageCentOS.sh (that is, delete and comment out iso_shasum_check ${distr_name} ${iso_path}).
    • To avoid build exceptions caused by network instability, file locks, or performance issues, perform the build in a local disk directory. Do not directly run the build script on a network shared disk such as NFS.
  6. Back up the guest OS installation package.