Installation/uninstallation fails if /tmp is mounted with noexec option
search cancel

Installation/uninstallation fails if /tmp is mounted with noexec option

book

Article ID: 323792

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:

  • NCM installation/uninstallation fails if /tmp is mounted with noexec option or has no enough disk space.
  • Install and debug log will not have errors logged pointing to /tmp permission.

 

Environment

NCM - 10.1.x

Cause

It is recommended to mount /tmp with exec option as installer creates iatemp file during installation and uninstallation which runs from /tmp directory per install.sh script.

Resolution

It is advised for users to mount /tmp with exec option.
If user is not ready to enable execute permission, due to security reason or to adhere with security compliance policy; export below command before starting the installer for both installation and uninstallation.


  • export IATEMPDIR=<Directory Name which has exec permission or has enough disk space>
    Example:
    export IATEMPDIR=/opt
    here
    /opt is mounted with exec permission and has enough diskspace

  • Now run one of the below based on the use case:
    • for NCM installation
      ./install.sh -i console

    • for NCM uninstallation.
      $VOYENCE_HOME/software/Uninstall_Core/Uninstall_VMware_Smart_Assurance_Network_Configuration_Manager

 

Note: Check mount details of /tmp by running cat /etc/fstab in linux server where NCM installation fails.
Sample output:
#
# /etc/fstab
# Created by anaconda on Thu Feb  3 09:44:55 2022 
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/vg_root-lv_root /                       ext4    defaults        1 1
UUID=4f5f876d-3e03-4d60-8a57-b0667b80deaf /boot                   ext4    defaults,nosuid,nodev        1 2
/dev/mapper/vg_root-lv_home /export/home            ext4    defaults,nosuid,noexec,nodev,usrquota,grpquota,quota        1 2
/dev/mapper/vg_root-lv_tmp /tmp                    ext4    defaults,nodev,nosuid,noexec        1 2
/dev/mapper/vg_root-lv_var /var                    ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_repo /var/cache/yum          ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_core /var/core               ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_crash /var/crash              ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_getlogs /var/getlogs            ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_log /var/log                ext4    defaults,nodev,nosuid,noexec        1 2
/dev/mapper/vg_root-lv_audit /var/log/audit          ext4    defaults,nodev,nosuid,noexec        1 2
/dev/mapper/vg_root-lv_logins /var/log/logins         ext4    defaults,nodev,nosuid,noexec        1 2
/dev/mapper/vg_root-lv_root_logins /var/log/root_logins    ext4    defaults,nodev,nosuid,noexec        1 2
/dev/mapper/vg_perstore-lv_perstore /var/opt/perstore       ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_viewlogs /var/viewlogs           ext4    defaults,nodev        1 2
/dev/mapper/vg_root-lv_swap none                    swap    defaults        0 0
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0