Failed to find VM - aborting

 

在Fedora 10 安装DB2时遇到的错误: Failed to find VM - aborting

先记录下来:

RHEL 5.0 Error message "Failed to find VM - aborting" when invoking TDI Server, CE or other TDI commands

 Technote (FAQ)
 
Question
When running TDI on RHEL 5.0 machine, a user may see the error "Failed to find VM - aborting" when trying to invoke the TDI server, CE or other TDI commands.
 
Cause
RHEL 5.0 has a new security feature named 'Security Enhanced Linux', or SELinux for short. A weaker version of SELinux was included in RHEL 4.0, and was disabled by default. RHEL 5.0 defaults SELinux to enabled. SELinux helps to keep the host secure from certain types of malicious attacks. However, the default settings have been known in many cases to prevent Java 1.5 from running properly. TDI 6.1.1 ships with IBM Java 1.5-SR5. When these JRE 1.5 issues occur, the /var/log/messages file may contain cryptic error messages describing what is not allowed.
 
Answer
To fix this issue, you can choose one of the following options:
  • Change the mode of SELinux to 'Permissive' by entering 'setenforce 0' on the command line. SELinux will be fully enabled again the next time the system is rebooted or if "setenforce 1" is entered on the command line.
  • Configure SELinux so that it knows that the IBM JRE 1.5 shared libraries shipped with TDI are acceptable to run. This can be accomplished by running the semanage and chcon commands properly on all shared libraries shipped with the JRE. Below is a piece of an example shell script that shows how to do this:

   for I in `ls <tdi_install_dir>/jvm/jre/bin/lib*.so`
   do
      semanage fcontext -a -t textrel_shlib_t ${I}
      chcon -f -t textrel_shlib_t ${I};
   done
   semanage fcontext -a -t textrel_shlib_t /
      <tdi_install_dir>/jvm/jre/bin/j9vm/libjvm.so
   chcon -f -t textrel_shlib_t /
      <tdi_install_dir>/jvm/jre/bin/j9vm/libjvm.so

NOTE: The actual install path would be substitued for <tdi_install_dir> (for example /opt/IBM/TDI/V6.1.1)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值