In some environments, VMTP machines are not allowed access to the internet and external CentOS repositories. If the VMTP installer does not have access to the necessary dependencies, it will exit.
In order to install the software without internet access you need to do the following:
1) Download all rpm packages and dependencies for the following packages. Simplest way to do this is to use the following technique on a CentOS machine that has internet access:
Download all the packages below to the same directory and transfer it to the VMTP using winSCP or similar.
- repotrack -a x86_64 -p /choose/a/directory <package name>
- kernel-devel (ensure this matches your system kernel version)
Additional packages for install:
2) Once all packages have been aggregated and placed onto the VMTP, we need to turn the directory into a local repository on the VMTP. This way, when the VMTP installer looks for the prereq packages, it will see them locally and install them.
To do this, first we need to install 'createrepo' using rpm. We downloaded the createrepo rpm files and its dependencies in the previous step.
- rpm -Uvh <createrepo rpm file>
Once createrepo is installed, we can create our yum repository by doing the following:
3) Disable all external repositories by deleting all entries in /etc/yum.repos.d/ except for your new local one.
- 'createrepo /where/you/placed/your/rpmfiles'
- creating a custom yum repository configuration file:
- 'nano /etc/yum.repos.d/local.repo'
- Enter the following text and save
4) Run the VMTP install using ./install_VMTP from your install file directory.