karesansuiã®ã¤ã³ã¹ãã¼ã«
Karesansuiãå
¥ãã¦ã¿ãã
æé ã¯ãKaresansui Wikiããåèã«ããã
ï¼ï¼CentOS5.6ãã¤ã³ã¹ãã¼ã«
ããâ»KVMã®ã¤ã³ã¹ãã¼ã«å¿ãã«æ³¨æ
ããâ»ã¤ã³ã¹ãã¼ã«å¾ã®ã¢ãããã¼ããå¿ããã«
ï¼ï¼é¢é£ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã¨åé¤
ãããã¥ã¼ããªã¢ã«ã§å¿
è¦ã¨è¨è¼ããã¦ããã®ã以ä¸ã®6ããã±ã¼ã¸
ããã•iscsi-initiator-utils
ããã•cyrus-sasl-md5
ããã•gnutls-utils
ããã•PyXML
ããã•SDL
ããã•curl
ããä¸è¨ä»¥å¤ã§å¿
è¦ã ã£ãããã±ã¼ã¸
ãããã»perl-HTML-Parser
ããããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãã§ãã¯
ãã# rpm -q iscsi-initiator-utils cyrus-sasl-md5 gnutls-utils PyXML SDL curl perl-HTML-Parser
ããã¤ã³ã¹ãã¼ã«ããã¦ããªãããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«
ãã# yum install iscsi-initiator-utils cyrus-sasl-md5 gnutls-utils PyXML SDL curl perl-HTML-Parser
ããâ»ãã§ã«ã¤ã³ã¹ãã¼ã«ããã¦ããããã±ã¼ã¸ã¯ãã®ã¾ã¾
ãã競åããããã±ã¼ã¸ã®åé¤
ãã# rpm -e --nodeps kvm-qemu-img
ï¼ï¼Karesansui2.0.1ã®ãã¦ã³ãã¼ãã¨å±é
ãã# wget http://downloads.sourceforge.net/project/karesansui/Karesansui%20Package%20Releases/2.0.1/karesansui-2.0.1-install-pack.tar.gz
ãã# tar xvzf karesansui-2.0.1-install-pack.tar.gz
ï¼ï¼ã¤ã³ã¹ãã¼ã«
ãã# ./Karesansui/karesansui-install
ããå½ç¶ãããªãã
ã¨ã©ã¼: ãã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã¯ãµãã¼ããã¦ãã¾ããã
ï¼ï¼å°ç´°å·¥éå§
ãã# vi ./Karesansui/installer/const.py
39è¡ç®ã®ä»¥ä¸ã®è¡ãä¿®æ£ SUPPORTED_DISTROS = [ ("centos", "^5-[12345].*$"), ("redhat", "^5Server-5.[12345].*$"), #("redhat", "^(5Server-5.[12345]|6-6\.).*$"), ] ãâ SUPPORTED_DISTROS = [ ("centos", "^5-[123456].*$"), # 6ã追å ("redhat", "^5Server-5.[12345].*$"), #("redhat", "^(5Server-5.[12345]|6-6\.).*$"), ]
ï¼ï¼å度ã¤ã³ã¹ãã¼ã«
ãã# ./Karesansui/karesansui-install
ããã¤ã³ã¹ãã¼ã«æã®è¨å®ç»é¢ã¯ãKaresansui Wikiãã®ã4.2.3. ã¤ã³ã¹ãã¼ã«ããåç
§
ããã
ï¼ï¼ç°å¢ç¢ºèª
ãã# ./Karesansui/karesansui-checkenv
@==========================================@ @ Karesansui Environment Check Program @ @==========================================@ Karesansuiã®RPMããã±ã¼ã¸ãæ£å¸¸ã«ã¤ã³ã¹ãã¼ã«ããã¦ãããããã§ãã¯... OK Karesansuiã®è¨å®ãã©ã¡ã¼ã¿ããã§ãã¯... OK Karesansuiã®pythonã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãã§ããããã§ãã¯... OK Karesansuiã®ã°ã«ã¼ããåå¨ãããããã§ãã¯... OK Karesansuiã®è¨å®ãã¡ã¤ã«ããã¼ãã§ãããããã§ãã¯... OK sqlalchemyã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãã§ããããã§ãã¯... OK pysilhouetteã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãã§ããããã§ãã¯... OK pysilhouetteã®è¨å®ãã©ã¡ã¼ã¿ããã§ãã¯... OK pysilhouetteã®è¨å®ãã¡ã¤ã«ããã¼ãã§ãããããã§ãã¯... OK Karesansuiã®ãã¼ã¿ãã¼ã¹APIã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãã§ããããã§ãã¯... sqlite ãã¼ã¿ãã¼ã¹ Karesansui ã«æ¥ç¶ã§ãããããã§ãã¯... sqlite:////var/opt/karesansui/karesansui.db Karesansuiã®SQLiteãã¼ã¿ãã¼ã¹ã®ãã¼ããã·ã§ã³ããã§ãã¯... OK pysilhouetteã®ãã¼ã¿ãã¼ã¹APIã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãã§ããããã§ãã¯... sqlite ãã¼ã¿ãã¼ã¹ pysilhouette ã«æ¥ç¶ã§ãããããã§ãã¯... sqlite:////var/opt/pysilhouette/pysilhouette.db pysilhouetteã®SQLiteãã¼ã¿ãã¼ã¹ã®ãã¼ããã·ã§ã³ããã§ãã¯... OK Karesansuiã®ãã¡ã¤ã«/ãã£ã¬ã¯ããªã®ãã¼ããã·ã§ã³ããã§ãã¯... OK Karesansuiãµã¼ãã¹ãèµ·åãã¦ãããã©ãããã§ãã¯... OK å ¨ã¦ã®ãã§ãã¯ãã¯ãªã¢ãã¾ããã ä¸è¨ãµã¤ãã«ã¢ã¯ã»ã¹ããã°ã¤ã³ãã¦ãã ããã https://vm.test.jp/karesansui/v2/ http://vm.test.jp/karesansui/v2/
ï¼ï¼ãã¡ã¤ã¢ã¦ã©ã¼ã«(iptables)ã§ãã£ã«ã¿ãªã³ã°ããªãããã«ä¿®æ£
ã# vi /etc/sysctl.conf
# 以ä¸ã®è¨å®ã追å net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0
ï¼ï¼åèµ·å
ãã# reboot