2015-04-01ãã1ã¶æéã®è¨äºä¸è¦§
ãããé¢åèãã¨ã©ã¼ã«åºãããããImportErrorããªããªãåãé¤ããªãã£ããå¡ãã¹ããã£ãã__init__.pyãããã«ãã¹ãã¦ã¦ã__ini__.pyã«ãªã£ã¦ããããã¯ãããä»åããããããã®ã¯ããã£ã¨æ°ã¥ãã«ãã話ãImportErrorãªãã ãããæ¢ç´¢ãã¹ãæ°ã«ããâ¦
ãã¡ã¤ã¢ã¦ã©ã¼ã«ã®ã«ã¹ã¿ã ã«ã¼ã«ç¨ãã¡ã¤ã«ãä½æããjythonã¹ã¯ãªãããå¡ãã¹ãã¦ãããªãã¨ãç´ãããDNSãããªããããããã/etc/hostsã«æ¸ãè¾¼ã¾ãªãã¨dmgrèµ·åããªãã®ã¯å¤§å¤ã ã£ããDCSã¨ãåºã¦ããããã¡ã¤ã¢ã¦ã©ã¼ã«ããã¹ã£ãã®ãã¨èªå·±æ示ã«â¦
zWASã¯ããããã¡ã¤ã«ã®ãã£ã¬ã¯ããªæ§æãLUWã®ãã®ã¨éããLUWã®å ´å/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/opt/IBM/WebSphere/AppServer/profiles/AppSrv01z/OSã®å ´å/wasv85config/ã»ã«å/ãããã¤ã¡ã³ãããã¼ã¸ã£ã¼ãã¼ãå/DeploymentManagerâ¦
æ£ç´ãæªæ¦è¦éãã¦ãããã¨ããããåãã£ããã¨ãiptablesã³ãã³ãã§ã¯ãªããlokkitã³ãã³ãã使ããã¨ã«ãããæ£ç´ããã§ããã®ãèªä¿¡ã¯ãªããiptablesã³ãã³ãã§ã¯ã/etc/sysconfig/system-config-firewallãã¡ã¤ã«ã¾ã§ã¯æ¸ãæãããªãããã ããã®ããâ¦
PowerCLIã®ãµã³ãã«ã«ã¯ãPowerShellçã«XMLãèªãã§ãæ°è¦ä»®æ³ãã·ã³ãä½æããä¾ããããPackerã¨ãã®JSONãã¡ã¤ã«ã®ãããªãã®ã好ãåæä½ã£ã¦ããããèªã¿è¾¼ãã§å¦çããããã°ã©ã ãããã¨ç°¡åã«æ¸ãããã§ãããããã«ããã³ãã¬ã¼ãXMLãä½ããä¸é¨â¦
ã¡ã¢ã¡ã¢ããã¡ããKnowledge Centerã«ãè¼ã£ã¦ã¯ããã®ã ããä¾ã®ä¸ã§ã¯ä½¿ã£ã¦ãªãã¦ããã©ã«ãã«é ¼ã£ã¦ããã©ã¡ã¼ã¿ã¼ãå¤ãæ°ãããããããã¡ã¤ã«ç®¡çãã¼ã«ã§ä¸åä½ã£ã¦ãlogs/manageprofilesã®ä¸ã«ã§ãããã¡ã¤ã«ããmanageprofiles.sh -createã®ã¨ãâ¦
IMãã°ã«ã¼ãã¤ã³ã¹ãã¼ã«ããã®ã¯ãã¾ããã£ãã®ã ããIMã使ã£ã製åã¤ã³ã¹ãã¼ã«ã§ã/opt/IBMé ä¸ã®ãã£ã¬ã¯ããªã¾ã§ããã®ã°ã«ã¼ãã«å¼ãã¥ãããã®ãç¥ã£ããããããèããã°ãããªãããªããªãã§æãã¤ããªãã£ããæ°æã¡æªãããã¯ã/optã«ç½®ããªãâ¦
ãªããåºæ¥ããããããã¼ã¿ã»ã³ã¿ã¼ã§ãããã¯ã¼ã¯ãããã³ã«ãããã¡ã¤ã«ä½æãIPãã¼ã«ä½æããã¼ãã°ã«ã¼ãã«é¢é£ä»ããä»®æ³ãã·ã³ã®ä½¿ããããã¯ã¼ã¯ããã®ãã¼ãã°ã«ã¼ãã«å¤æ´ãä»®æ³ãã·ã³ã®vAppãªãã·ã§ã³ãæå¹åãã¦ããªã¼ãµãªã³ã°ã®IPå²ãå½ã¦ãâ¦
ã¡ã¢ã¡ã¢ãIBM Installation Managerã®ã°ã«ã¼ãã¤ã³ã¹ãã¼ã«ãã試ãä¸ãã ããããããªæãã ããããunzipã¯å¿ è¦ãunzip -P å±éå IMã®zipãã¡ã¤ã«ã¨ãã§è§£åãããå±éå ã¸ç§»åãã¨ããããã«IMã®ã¤ã³ã¹ãã¼ã«ã³ãã³ããå種ããã移åã¨ããªãã¦ãããâ¦
ã¾ã ã¾ã é²ãæ´ãã§ãããããããã¨ã¯ãIPãã¼ã«ã使ããã¨ãVCSAå´ã§ããããã¯ã¼ã¯ãããã³ã«ãããã¡ã¤ã«ã¯ä½æãã¦ãããåºå®IPç¨ãä½ããåºå®IPç¨ã®ä»®æ³ãã·ã³ãããã¯ã¼ã¯ã¨é¢é£ä»ããä¸æIPç¨ãä½ããä¸æIPç¨ã®ä»®æ³ãã·ã³ãããã¯ã¼ã¯ã«é¢é£ä»ããâ¦
ããã°ã¨ããããã¡ã¢ã ãããã°ããã»ã©è¡ãè©°ã¾ããgovmomiã§ã-u渡ãã¨ãã®ã¦ã¼ã¶ã¼ãérootã«ãããã¨ã«ã¯ããããæåãããæ£ããããæ¹ã¯åãããªããVCSAã«rootã§sshãã°ã¤ã³ãuseraddãã¦passwdãã¦ãã°ãªããweb-clientã§VCSAã«rootãã°ã¤ã³ãã¦ãâ¦
ä¹ ãã¶ãã«Antãæ¸ãæ©ä¼ããã£ããbuild.propertiesã«æ¸ããããã«ã³ãåºåãã®ãã¹ã使ãããããã®ãã£ã¬ã¯ããªããä¸è¦ãªãã¡ã¤ã«ãæ¶ãããªãã¸ããªãããæ¶ãããã£ã¬ã¯ããªã»ãµããã£ã¬ã¯ããªã¯æ®ã£ã¦ããªãã¨ãããªããä¹ ãã¶ãã ãããpropertyã®ä½¿â¦
vmware-isoã§unregistervmãããã¨ãVCSAã«è¦ªãªãVMãæ®ã件ã¯ãESXiãã¹ãã®rootã¦ã¼ã¶ã¼ã§ãã£ã¦ã親ãªãã®ã¾ã¾æ®ããã¨ã®ç¢ºèªãåãããç²ããç§ã¯govmomiã®govcã使ã£ã¦ã¿ãããã¤ããªæä¾ãããã§ç°¡åã«åããvcã«ç¹ãã£ã¦è¯ãæããä»®æ³ãã·ã³ãã¼ã¸ã§â¦
å°ã£ããå¤å ã«ãªã£ã¡ããã親ãªãã«ãªã£ã¡ãããvmware-isoãã«ãã¼ã使ãããã¤vCenterã«ç®¡çãããESXiã§ä½æããVMããvCenter Server Applianceããè¦ããã親ãªãã¡ããã«ãªããPackerçã«ã¯ãã£ã¦ããã¨ã¯åç´ã ãvim-cmd solo/registervmvim-cmd vmsâ¦
ä»æ¥æ°ä»ãããã¨ãæ¸ããRHEL6.5ãESXi5.5ã«kickstartã§ã¤ã³ã¹ãã¼ã«ãã話ããã¯ãPACKER_LOGç°å¢å¤æ°ã¯éè¦ãä½ããã£ã¦ãããããªãåãããISOãã§ã¯ãµã ã¯æéãããããSHA256ã¯ããéããããªãããã ãã§åè¨4åè¿ããããããã¼ã«ã«ã®ãã£ãã·ã¥ã§â¦
Packerã使ãRHEL6.5ãkickstartã§ESXi5.5ä¸ã«ä½ãããããã£ã¦ãã¦å°ãããã£ããã¨ãPackerã¯HTTPãµã¼ããèªåã§ç«ã¦ã¦ããããå°ãã®éãããã«ks.cfgãç½®ããvmware-isoãã«ãã¼ã®boot_commandã®ã¨ããã«ãRedhatç¨ã®ã³ãã³ããæ¸ããHTTPIPã¨HTTPPortã¯â¦