Installing VMTP without an internet connection

Document ID : KB000074353
Last Modified Date : 08/05/2018
Show Technical Document Details
Introduction:
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.
Instructions:
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:
  • repotrack -a x86_64 -p /choose/a/directory <package name>
Download all the packages below to the same directory and transfer it to the VMTP using winSCP or similar.

CentOS Packages

  • boost
  • dialog
  • dmidecode
  • ed
  • gcc
  • gdb
  • gettext
  • ImageMagick
  • kernel-devel (ensure this matches your system kernel version)
  • libaio
  • libpcap
  • lsof
  • lynx
  • mod_ssl
  • mod_wsgi
  • net-snmp
  • net-snmp-utils
  • pciutils
  • php
  • php-gd
  • php-mysql
  • php-odbc
  • php-soap
  • php-xml
  • setserial
  • sysstat
  • system-config-network-tui
  • unixODBC
  • unzip
  • xerces-c
  • xorg-x11-fonts-Type1
  • zip

EPEL (Extra Packages for Enterprise Linux) Packages

  • jemalloc
  • mod_python
  • mod_xsendfile
  • mysql++
  • php-mcrypt
  • php-pecl-redis
Additional packages for install:
  • createrepo

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:
  • '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
      • [localrepo]
        name=local repo
        baseurl=file:///where/you/placed/your/rpmfiles
        enabled=1
        gpgcheck=0
        
3) Disable all external repositories by deleting all entries inĀ /etc/yum.repos.d/ except for your new local one.
4) Run the VMTP install using ./install_VMTP from your install file directory.