Building the CentOS Linux 7 Installation Package
centos-7.9.2009
├── 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
- Change the current working directory to the directory where the script for building the guest OS installation package is located.
- Copy the CentOS Linux 7 ISO image to the current directory.
- Run the following command to grant the execute permission on the shell script:
1chmod a+x buildGuestImageCentOS.sh scripts/*.sh
- Switch the working account to the root account.
- Run the following command to build the guest OS installation package:
1/bin/bash ./buildGuestImageCentOS.sh -v <package_version> -d centos-7 -i $(pwd)/CentOS-7-x86_64-Everything-2009.iso -m no
- <package_version> indicates the version number of the ExaGear package.
- Download the CentOS Linux 7 ISO image file CentOS-7-x86_64-Everything-2009.iso from https://vault.centos.org or 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.
- Back up the guest OS installation package.
Parent topic: Building a CentOS-Linux Guest OS Installation Package