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
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论 1

打赏作者

thebirdofwonder

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值