競åä»ç€Ÿã®ã»ãšãã©ã¯ãã·ã¹ãã 管çè ãäžåºŠã€ã³ã¹ããŒã«ããŠæ§æããã€ã¡ãŒãžã®ã¯ããŒã³ãäœæããŸãã åãã·ã³ã®ãŒãããã¯ãªãŒã³ã€ã³ã¹ããŒã«ã䜿çšããŸãã
以äžã«ããã®æ±ºå®ã®åå ãäž¡æ¹ã®ã¢ãããŒãã®é·æãšçæã説æããŸãã
ããããã¹ãŠå§ãŸã£ãæ¹æ³...
ã¯ã©ãŠããæåã®æ©èœãç²åŸããã°ããã®ãšããä»®æ³ãã·ã³ã®äœæãèªååããã¿ã¹ã¯ãçºçããŸããã ãã¡ãããè¡šé¢ã«ããæåã®è§£æ±ºçã¯ãã¯ããŒã³ãäœæããããšã§ããã 幞ããªããšã«ããã¹ãŠã®ããžãã¹ã«ã¯1ã€ã®ããŒã ããããŸãïŒxe vm-cloneïŒã 次ã«ããããã¯ãŒã¯èšå®ããã¹ãåãããã³ã«ãŒããã¹ã¯ãŒãã調æŽããå¿ èŠããããŸããã ãã¹ãŠã®äœæ¥-åæ¥ã ããŠããããæãŸããªãã2æ¥éããã£ãïŒ åœŒãã¯ããããã£ãã 幞ããªããšã«ãããŒã¿çã®ãã¹ã¿ãŒã§ãããã®ããŒãžã§ã³ãèŠãŠããŸããã§ããã
ãã£ã¹ã¯ã¯ããŒã³äœæã®ãã¹ãŠã®ãã€ãã¹èŠå ãåæããåŸããã€ã³ã¹ããŒã«ããšããã¢ã€ãã¢ã«æãã€ããŸããã ãã®ããã»ã¹ã¯ãæ§ããã«èšã£ãŠãåä»ã§ãçŽ1ãæåããããŸããããã®éãåLinuxãã£ã¹ããªãã¥ãŒã·ã§ã³ã®è©³çŽ°ãéåžžã«æ·±ãç 究ããå¿ èŠããããŸããã
ãã®çµæãæ¢åã®ãã³ãã¬ãŒãã·ã¹ãã ã«ãããäœæãããã·ã³ã®èšå®ãéåžžã«ç°¡åã«å€æŽã§ããããã»ã¹å šäœãç¥ç§çã§éåžžã«éèŠãªç¥ç§çãªããã¹ã¿ãŒã³ããŒãã«çµã³ä»ããããããšã¯ãããŸããã
ãã¯ãªãŒã³ã€ã³ã¹ããŒã«ããšã¯äœã§ããïŒ ããã¯ã空ã®ãã£ã¹ã¯ãæã€ä»®æ³ãã·ã³ãäœæãããç¹å¥ãªã«ãŒãã«ãç¹å¥ãªinitrdã§èµ·åããããã®äžã«ã€ã³ã¹ããŒã©ãŒïŒnetinstïŒãããå Žåã§ãã ãã®ã€ã³ã¹ããŒã©ãŒã¯ã質åãžã®åçãå«ããã¡ã€ã«ãåãåããŸãïŒåãã£ã¹ããªãã¥ãŒã·ã§ã³ã«ã¯ç¬èªã®ãã®ããããŸãïŒã
å®éããã§ã«ã€ã³ã¹ããŒã«ãããŠããOSã®ãã£ã¹ã¯ã®ã¯ããŒã³äœæãšå®å šã€ã³ã¹ããŒã«ã®éãã¯äœã§ããïŒãã¡ãããããã¯ããã»ã¹ã«é¢ãããã®ã§ã¯ãªããçµæã«é¢ãããã®ã§ãïŒïŒ
- äžæã®sshããŒã ã¯ããåsshãµãŒããŒã«ã¯ç§å¯éµããããŸããç§å¯éµã¯åãµãŒããŒã§äžæã§ãªããã°ãªããŸããã ãã®ããŒïŒdebian / ubuntuå ïŒã¯ã€ã³ã¹ããŒã«æã«çæãããŸãïŒååã§ã¯ãããŸããïŒã ãŸãã2ã€ã®ã¯ã©ã€ã¢ã³ãä»®æ³ãã·ã³ã«åãç§å¯éµãããå Žåã1ã€ã®ã¯ã©ã€ã¢ã³ãã®ãµãŒããŒãå¥ã®ã¯ã©ã€ã¢ã³ãã®ãµãŒããŒã«ãªãããŸãããšãã§ãããããããã¯å·šå€§ãªã»ãã¥ãªãã£ããŒã«ã«ãªããŸãã Apacheã䜿çšããSSL蚌ææžãšãã®ç§å¯éµãããã³opensslã䜿çšããä»ã®ãµãŒãã¹ã«ããŸã£ããåãããšãåœãŠã¯ãŸããŸãã
- SQLãµãŒããŒãdebian / ubuntuã«ã€ã³ã¹ããŒã«ãããšãdpkgãããŒã¿ããŒã¹ãæŽæ°ã§ããããã«ãã©ã³ãã ã«çæããããã¹ã¯ãŒãã䜿çšããŠããŒã¿ããŒã¹ã«ç¹å¥ãªã¢ã«ãŠã³ããäœæãããŸãã ãã®ã¢ã«ãŠã³ãã®ãã¹ã¯ãŒãã¯ãä»®æ³ãã·ã³éã§äžæã§ããå¿ èŠããããŸãã åãå Žåã¯ããã¯ã©ãŠããã€ããŒããSQLã®ç®¡çãã¹ã¯ãŒããç¥ã£ãŠããããšãæå³ããŸãã ããã§ãã ããã§ããªãã
- äœææ¥ãã¡ã€ã«ã ã¯ããŒã³ãäœæãããšãã€ã¡ãŒãžãäœæãããæ¥ä»ã¯ãã¯ã©ãŠã管çè ãäœæããç¬éãæããŠããããšãããããŸãã ãŸãããã¡ã€ã«ã®äžéšïŒç®¡çè ãæŽæ°ãããŒã«ããå ŽåïŒã®æ¥ä»ã¯ãŸã£ããç°ãªããŸãã èŽåœçïŒ ãã äžå¿«ã§ããïŒ ã¯ã
- ãã°ãã¡ã€ã«ã«ã¯è¿œå ã®æ å ±ãå«ãŸããŸããèš±å¯ãã°ã®ç¡é¢ä¿ãªãã°ã€ã³ãã€ã³ã¹ããŒã«ãã°ã«ã¯éåžžãæªç¥ã®èµ·æºå¹Žã®ãã³ã»ã³ã¹ããã£ã±ãã§ãã
- ãã¹ãŠã®å¯èœãªã¿ã€ãã®uuidïŒãã¡ã€ã«ã·ã¹ãã UUIDãå«ãïŒããã£ã¹ã¯éã§ç¹°ãè¿ãããŸããããã«ãããUUIDã®ãäžæããšããèšèã¯ç¡æå³ã«ãªããŸãã
ãã¡ãããããã¯ãã¹ãŠå€æŽããã³ä¿®æ£ã§ããŸãã ããªããããã«ã€ããŠç¥ã£ãŠããã°ã ãããŠãããªããç¥ããªãå Žåã¯ïŒ 誰ãããµãã·ã¹ãã ã®1ã€ïŒudevãdevice-mapperãä»ã®ã©ããã§ãå¥ã®äžæã®èå¥åãå¿ããŠããŸã£ããšããäºå®ã«ãããæ°åã®ä»®æ³ãã·ã³ã«ç©Žãæ®ã£ãŠãããšããäºå®ãèªèããŠãã ããããã®åŸãèããã®ãå¿ããŠããïŒïŒ ãããã®ãšã©ãŒãåé¿ããã«ã¯ããã¹ãŠã®ååžã培åºçã«èª¿æ»ããå¿ èŠããããŸãã ã¿ãªããã ãããŠãDebianãSusiãcentosãUbuntuïŒUbuntuã¯Debianã®ãã©ãŒã¯ã§ãããããªãã®æ°ã®éããèç©ãããŠããŸããïŒ; ãããŠãå¥ã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãè¿œå ãããå Žåã¯ã©ããªããŸããïŒ
ã¯ããŒã³äœæäžã®è²¬ä»»ã®ã¬ãã«ã¯éåžžã«å€§ãããªã£ãŠããŸãã ãããŠãå©çã«äžé£ãåãã§ãã
ããããå®éã«ã¯ãã¯ããŒãã³ã°ã®ä»£ããã«æœèšã䜿çšããçã®åæ©ã¯ãæ¹æ³ã®ã€ããªãã®ãŒççŽç²ãã§ããã ããããããã¯èª°ãã«ãšã£ãŠå¥åŠã«æãããããããŸããããç§ã¯å€ãã®ç¹ã§ãæ©èœããããã ãã§ãªããã¢ãŒããã¯ãã£ã«åºæã®ã€ããªãã®ãŒã«åŸãããšãæãã§ããŸãã ãã£ã¹ããªãã¥ãŒã·ã§ã³ã®äœæè ã圌ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãã€ã³ã¹ããŒã«ããããšä»®å®ããå Žåããããã€ã³ã¹ããŒã«ãããŠããã°æ£ããã§ãã
ãã ããã¯ãªãŒã³ã€ã³ã¹ããŒã«ã«ã¯ãŠãŒã¶ãŒã«ãšã£ãŠãå°ããªå©ç¹ããããŸãã
ããšãã°ãCentOSãŠãŒã¶ãŒã¯/ rootã§ããã·ã³ãã€ã³ã¹ããŒã«ãããèšå®ãå«ãanaconda-ks.cfgãã¡ã€ã«ãããã³ã€ã³ã¹ããŒã«ãã°ãå«ãinstall.logããã³install.log.syslogãèŠã€ããŸãã ãããã®ãã¡ã€ã«ã¯ããããã眮ãããŠãããã·ã³ã«ç¹ã«é¢é£ããŠãããäžåºŠé ä¿¡ãããä»»æã®ãã·ã³ã«ã¯é¢é£ããŸããã åæ§ã«ãDebian / UbuntuãŠãŒã¶ãŒã¯/ var / log / installãã£ã¬ã¯ããªã«ãã°ãèŠã€ããŸãã ç§ã¯ãã§ã«ãã¡ã€ã«ã®æ£ããæ¥ä»ã«ã€ããŠäžã«æžããã
ãã£ã¹ã¯ã®ã¯ããŒã³äœæãšæ¯èŒããŠãããã«ã€ã³ã¹ããŒã«ãã«æ¬ ç¹ããªããšããäºå®ã«ã€ããŠã¯åãã€ããŸããã 圌ãã§ãã ãããããããã¯ãã¹ãŠã€ã³ã¹ããŒã«ã®ç¬éã«ã®ã¿é¢ä¿ãããã·ã³ã®ãããªã寿åœã«ã¯åœ±é¿ããŸããã
ãããããªã¹ãããŸãã
- ç¹ã«å°ããªã·ã¹ãã ãã©ã€ãã§ã¯ãã¯ããŒãã³ã°ãããã€ã³ã¹ããŒã«ãé ã
- ã€ã³ã¹ããŒã«ã¯ããæ°ãŸããã§ã-ãã£ãã·ã³ã°ãããã·ãå°ãªããšã1åãã¯ãªãã¯ããããšãã€ã³ã¹ããŒã«ããã¹ãã£ãã¯ãããå Žåã«ãã£ãŠã¯èŽåœçã§ãïŒã€ã³ã¹ããŒã«ãããªãŒãºããŸãïŒã
- ã€ã³ã¹ããŒã«ãå€æŽããããšã¯ã¯ããã«å°é£ã§ã;ãããã®å€æŽããããã°ããã«ã¯ãã€ã³ã¹ããŒã«æé ãèµ·åãããã³ã«å¿ èŠã§ãã
ã芧ã®ãšããããããã®æ¬ ç¹ã¯ããããã€ã³ã¹ããŒã«å®äºåŸã®ãã·ã³ã®å¯¿åœã«ã¯åœ±é¿ããŸããããã¹ãŠã®åé¡ã¯ã€ã³ã¹ããŒã«èªäœãèŠãããããèšç»ãšå±éã®åé¡ã§ãã ãããã£ãŠããã£ããåé¡ãå æãããšããã£ã¹ããªãã¥ãŒã·ã§ã³ã®äœæè ã®æå³ã«åã£ãæãã¯ãªãŒã³ãªã·ã¹ãã ãåŸãããŸãã
ãã ãã競åä»ç€Ÿãå¿ æ»ã«åãšãããããããŸããã ã¯ããŒã³äœæã®ãªãã·ã§ã³ã¯éåžžã«å®è¡å¯èœã§ããããã¥ãŒããªãžã§ã³ã¹ã«ããããã·ã³ã¯ãæ°ããã€ã³ã¹ããŒã«ãããããã·ã³ãšéåžžã«ãã䌌ããã®ã«ãªããŸãã ãããããç§ã«ãšã£ãŠã®å¯äžã®è³ªåã¯ãã©ãããã䌌ãŠããããã§ã...
ã©ã®ããã«æ©èœããŸããïŒ
ããŒã¿ããŒã¹ã«ã¯ãã³ãã¬ãŒããªããžã§ã¯ãã®ã¯ã©ã¹ããããŸãïŒSCAPIã«ã€ããŠã¯ãŸã 説æããŠããŸããïŒã ãã³ãã¬ãŒãã«ã¯ããã·ã³ãäœæããããã®äžé£ã®ãã©ã¡ãŒã¿ãŒãæ ŒçŽãããŸã-ã¡ã¢ãªããã£ã¹ã¯ã®æå°/æ倧ãµã€ãºã®å¶éã ããã¹ãã®èª¬æãã¢ã€ã³ã³ãžã®ãªã³ã¯-èŠããã«ããã·ã³ã®äœææã«ãŠãŒã¶ãŒã«è¡šç€ºããããã¹ãŠïŒå·Šã®äŸïŒã ããã«ãæãéèŠãªãã®ã¯ããã«ä¿åãããŸãïŒããã¹ãautoinstall_scriptã åãã³ãã¬ãŒãã«ã¯ç¬èªã®ã¹ã¯ãªããããããŸããã管çã¹ã¯ãªããã䜿çšããå®éçãªç®çã®ããã«ãåãOSã®32ãããããŒãžã§ã³ãš64ãããããŒãžã§ã³ã®1ã€ã®ãã¡ã€ã«ããçæãããŸãã ããã¯ãäžé£ã®å€æ°çœ®æã§è¡ãããŸãããªããªãã 32ãããããŒãžã§ã³ãš64ãããããŒãžã§ã³ã®å®éã®ããã¹ãã¯éåžžã«ç°ãªããŸãïŒããã±ãŒãžåã ãã§ãªãïŒã
ãã®ããããŠãŒã¶ãŒããã€ã³ã¹ããŒã«ããã¿ã³ãã¯ãªãã¯ãããšãã¹ã¯ãªããã¯Skapiã«ãã·ã³ããäœæãããäžé£ã®ã³ãã³ãïŒvm-createãvif-createãvdi-createãvbd-createãªã©ïŒãæž¡ããŸãã ãã®åŸãã¡ã€ã³ã³ãã³ã-vm-installãèµ·åãããŸãã ãã®ã³ãã³ãã¯ãã€ã³ã¹ããŒã«ã«å¿ èŠãªãã©ã¡ãŒã¿ãŒïŒãã¹ãåãªã©ïŒãåãå ¥ãããã·ã³ãã³ãã¬ãŒããšäžèŽããã¹ã¯ãªãããããŒã¿ããŒã¹ããååŸãïŒvm-createæã«ãã³ãã¬ãŒããæž¡ãããŸãïŒãã€ã³ã¹ããŒã«ããã»ã¹ãéå§ããŸãã äžã§æžããããã«ããã€ã³ã¹ããŒã«ããã»ã¹ããšã¯ãæåéããç¹å¥ãªã«ãŒãã«ãç¹å¥ãªinitrdãããã³PV-argsãä»ããŠæºä»®æ³åã«ãŒãã«ã«æž¡ãããäžé£ã®ãã©ã¡ãŒã¿ãŒãæå³ããŸãã
initrdã®å éšã§ã¯ãåã·ã¹ãã ã«ç¬èªã®ã€ã³ã¹ããŒã©ãŒããããç¬èªã®åœ¢åŒãå¿ èŠã§ãã ä»®æ³ãã·ã³ãã€ã³ã¹ããŒã«çšã®/ initrdã«ãŒãã«ã§èµ·åãããšããã«ããã®èšå®ã¯ãåäœäžãã«å€æŽãããã«ãŒãã«ã¯ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§ã¯éåžžãããŒãã§ã¯initrdã«ãªããŸãã ïŒãšããã§ãããŒãã«äœ¿çšããã«ãŒãã«ã¯åããã³ãã¬ãŒããä¿åããŸãïŒã
äž»æµã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã«ã¯ãpreseedãkickstartãããã³autoyastã®3ã€ã®ã€ã³ã¹ããŒã«æ¹æ³ããããŸãã
Preseedã¯Ubuntuã§ã䜿çšãããŠããdebianã®ææã§ãã ããã±ãŒãžãdebã¡ã«ããºã ãéããŠå°ããããšãã§ãã質åãžã®åçãå«ãŸããŠããŸãã æ®å¿µãªããããããã®è³ªåã«å¯Ÿããçãã¯åžžã«ããã¥ã¡ã³ãã«èšèŒãããŠããããã§ã¯ãããŸãã-deb / udebãã¡ã€ã«ã®å éšãèŠãªããã°ãªããªãå ŽåããããŸãïŒudebã¯ã€ã³ã¹ããŒã©ãŒãã©ã°ã¡ã³ããæ ŒçŽãããå°ããªdebã§ãïŒ ç§ã¯èšããªããã°ãªããŸãããdebianãšubuntuã¯éåžžã«è¿ãã§ããããããã®çãã®ã»ããã¯ãããããç°ãªãOSãšããŠèªèããã®ã«ååãªã»ã©ç°ãªããŸãã
preseedã®äž»ãªå©ç¹ã¯ã質åã®åçããã¡ã€ã«ã®åœ¢åŒãšã«ãŒãã«åŒæ°ã®åœ¢åŒã®äž¡æ¹ã§è»¢éã§ããããšã§ããããã«ããããã·ã³ã«å ±éã®ãã©ã¡ãŒã¿ãŒãéçãã¡ã€ã«ã«è»¢éã§ãããã·ã³ã«åºæã®ãã¹ãŠïŒååããã¹ã¯ãŒããIPã¢ãã¬ã¹ïŒ ïŒPV-argsãä»ããŠè»¢éããŸãã ã¡ãªã¿ã«ãUbuntu preseedã¯debianïŒããã¹ãã¢ãŒãã§åãèµ€éïŒããã€ã³ã¹ããŒã©ãŒãåŠçããã®ã§ãïŒãã¹ã¯ããããŠãŒã¶ãŒãã€ã³ã¹ããŒã«æã«èŠãïŒçŸãã人ã¯ããŸããã
ããã¯ã¹ã¿ãŒã-Red Hatã®çºæã¯ãä»ã®RHELæ©èœãšãšãã«ãCentOSã«å®å šã«ç§»æ€ãããŸããã äžé£ã®æ©èœã¯preseedããããããã«å£ã£ãŠããŸãããã®ãããå€éšã®ãã·ã³ã«ããããŒãããã®ä¿è·ãåããåçãªããã¯ã¹ã¿ãŒãçæã·ã¹ãã å šäœãçºæããå¿ èŠããããŸããïŒèª°ããåæãã¹ã¯ãŒããããŠã³ããŒããããšéåžžã«äžå¿«ã«ãªããŸããïŒïŒã CentOSã®ãã1ã€ã®ããããªç¹ã¯ããã®netinstallã€ã¡ãŒãžãXenããµããŒãããŠããªãããšã§ãããXenãéå§ããåã«ããããé©çšããïŒkudzuã眮ãæããïŒå¿ èŠããããŸãã
Autoyastã¯Yastã®æ¡åŒµæ©èœã§ãããSuseæ§æã·ã¹ãã ïŒããã³OpenSuseïŒã§ãããäžæ¹ã§ïŒå€ãã¯ããæ£ç¢ºã«Yastã³ã³ã»ããã®ãã¬ãŒã ã¯ãŒã¯å ã§ïŒãããè¡ãããšãã§ããŸããä»æ¹ã§ã¯ãåãæ¹æ³ã§éåžžã®PVåŒæ°ããµããŒãããŸããã ããã«ãautoyastã¯vyviglazom XMLã§èšè¿°ãããŠãããããautoyast.xmlã®ãµã€ãºã¯ããã¯ã¹ã¿ãŒãã®çŽ5åã§ãããããŸãæçšã§ãªãæ å ±ãå«ãŸããŠããŸãã
CentOSã®ã€ã³ã¹ããŒã«ã®è©³çŽ°ã«ã€ããŠã¯ãåå¥ã«èšãå¿ èŠããããŸãã äžå€ãžã®é床ã®ã³ãããã¡ã³ãã®ãããã€ã³ã¹ããŒã«çŽåŸã®CentOSã¯ãcentosãšåããããå€ããã®ã§ãã ã€ãŸããyum updateã¯ãæ°ãã«ã€ã³ã¹ããŒã«ãããã·ã¹ãã ã§80MB以äžã®æŽæ°ãæäŸããŸãã ãŠãŒã¶ãŒã«å€ãã·ã¹ãã ãæ®ããªãããã«ãyumã®æŽæ°ãããã¯ã¹ã¿ãŒãã®ïŒ æçš¿ã»ã¯ã·ã§ã³ã«å«ããå¿ èŠããããŸããã