2011年7月12日 星期二

Karesansui (KVM, XEN web interface management tools) installation on Scientific Linux 5

To edit the install python file
[root@vt-121 ~]# vim Karesansui/installer/install.py



   # distribution check
    if ret is True:
        from installer.utils import get_distrubution
        type,version = get_distrubution()

        supported_os = False
        for _d,_v in SUPPORTED_DISTROS:
            #if type == "%s-release" % _d and version[0:len(_v)] == _v:
            #if type == "%s-release" % _d and re.compile(_v).search(version):
            supported_os = True
                #break
        #if supported_os is False:
            #print >>sys.stderr, _("ERROR: Your distribution is not supported by Karesansui.")
            #ret = False




To remove the original  qemu-img and install from Karesansui
[root@vt-121 ~]# ./Karesansui/karesansui-install
ERROR: file /usr/bin/qemu-img from install of qemu conflicts with file from package qemu-img
Please remove 'qemu-img' package, then try again.
ERROR: gnutls-utils is needed by hde-libvirt
[root@vt-121 ~]# rpm -qa qemu-img
qemu-img-0.9.1-11.el5.x86_64
[root@vt-121 ~]# rpm -e qemu-img
error: Failed dependencies:
qemu-img = 0.9.1-11.el5 is needed by (installed) qemu-0.9.1-11.el5.x86_64
[root@vt-121 ~]# rpm -e qemu
[root@vt-121 ~]# rpm -e qemu-img
[root@vt-121 ~]# rpm -qa qemu-img

To install the missing gnutls-utils by YUM 
[root@vt-121 ~]# ./Karesansui/karesansui-install
ERROR: gnutls-utils is needed by hde-libvirt
[root@vt-121 ~]# yum install gnutls-utils

To check the environment and found the error message 
[root@vt-121 ~]# ./Karesansui/karesansui-checkenv
Checking if Karesansui services are running...  NG
ERROR: Not running /opt/hde/sbin/lighttpd.
Please execute '/etc/init.d/hde-lighttpd start'.

To stop the original system apache,httpd , and start the hde-lighttpd.
[root@vt-121 ~]# service httpd status
httpd (pid  2319) is running...
[root@vt-121 ~]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@vt-121 ~]# /etc/init.d/hde-lighttpd start
Starting hde-lighttpd:                                     [  OK  ]
[root@vt-121 ~]# ./Karesansui/karesansui-checkenv

0 意見:

張貼留言

 
創用 CC 授權條款