2015年8月10日月曜日

[XenServer6.2] Windows10にアップグレードしたら XenCenter が接続できない


Windows10 にアップグレードしたら、XenCenterが下図のようなエラーで接続できない



イベントを見ると、下図のように SSL/TLS でエラーになっている。



調べてみると、下記URLに対処方法が記載されていました。
XenServerの証明書を再作成すればOKらしい。

http://discussions.citrix.com/topic/367580-could-not-create-ssltls-secure-channel/

XenServer の Dom0 に ログインして、下記のようにコマンドを実行します。
192.168.1.100 は XenServer の IPアドレスです。
[root@orca ~]# service xapissl stop
which: no stunnel4 in (/sbin:/usr/sbin:/bin:/usr/bin)
Stopping xapi SSL: .
[root@orca ~]# mv /etc/xensource/xapi-ssl.pem /etc/xensource/xapi-ssl.pem.bak
[root@orca ~]# /opt/xensource/libexec/generate_ssl_cert "/etc/xensource/xapi-ssl.pem" '192.168.1.100'
/tmp/ssl-generation-7240 ~
Generating RSA private key, 1024 bit long modulus
.....++++++
......................++++++
e is 65537 (0x10001)
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
...+.........+......++*++*++*++*++*++*
~
[root@orca ~]# service xapissl start
which: no stunnel4 in (/sbin:/usr/sbin:/bin:/usr/bin)
Starting xapi SSL:
[root@orca ~]# xe-toolstack-restart
Executing xe-toolstack-restart
Stopping xapi: ..                                          [  OK  ]
Stopping the v6 licensing daemon:                          [  OK  ]
Stopping the memory ballooning daemon:                     [  OK  ]
Stopping perfmon:                                          [  OK  ]
Stopping the xenopsd daemon:                               [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-iostat:                  [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-squeezed:                [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-xenpm:                   [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-gpumon:                  [  OK  ]
Stopping the XCP RRDD daemon:                              [  OK  ]
Stopping the XCP networking daemon:                        [  OK  ]
Stopping the fork/exec daemon:                             [  OK  ]
Stopping the multipath alerting daemon:                    [  OK  ]
Starting the multipath alerting daemon:                    [  OK  ]
Starting the fork/exec daemon:                             [  OK  ]
Starting the XCP networking daemon: .                      [  OK  ]
Starting the XCP RRDD daemon:                              [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-gpumon:                  [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-iostat:                  [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-squeezed:                [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-xenpm:                   [  OK  ]
Starting the xenopsd daemon:                               [  OK  ]
Starting perfmon:                                          [  OK  ]
Starting the memory ballooning daemon:                     [  OK  ]
Starting the v6 licensing daemon:                          [  OK  ]
Starting xapi: OK                                          [  OK  ]
done.
[root@orca ~]#

XenCenter で XenServer に接続すると、初回だけ下図のメッセージが表示されます。
[受け入れる]をクリックすれば、接続できます。