CentOSにxenserverをインストールエラー対策

1.エラー現象

[root@cloudstack-ms ~]# rpm -ivh xe-cli-6.1.0-59235p.i686.rpm
error: Failed dependencies:
libc.so.6 is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.1.2) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.2) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.3) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.3.2) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.3.4) is needed by xapi-xe-0.2-5181.i686
libc.so.6(GLIBC_2.4) is needed by xapi-xe-0.2-5181.i686
libdl.so.2 is needed by xapi-xe-0.2-5181.i686
libdl.so.2(GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
libdl.so.2(GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
libm.so.6 is needed by xapi-xe-0.2-5181.i686
libm.so.6(GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
libpthread.so.0 is needed by xapi-xe-0.2-5181.i686
libpthread.so.0(GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
libpthread.so.0(GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
libpthread.so.0(GLIBC_2.2) is needed by xapi-xe-0.2-5181.i686
libpthread.so.0(GLIBC_2.3.2) is needed by xapi-xe-0.2-5181.i686
[root@cloudstack-ms ~]#

対策:yumでインストール

yum install xe-cli-6.1.0-59235p.i686.rpm

2.エラー現象

Unhandled exception
File “stunnel.ml", line 137,characters 20-25: Pattern matching failed

対策: yum install stunnel

3.xeコマンドで実行

xe -s ip -u username -pw password command param

-sオプションでxenserverサーバーのIPアドレス
-uオプションでXenServerサーバーのユーザ名
-pwはユーザパスワード
commandはxeのコマンド、例host-list等
paramaはコマンドのパラメータ、例uuid=XXX等

 

Source

Posted by arkgame