ãµã¼ãä»®æ³åã½ããã¦ã§ã¢ã¨ããã°VMware社ã®è£½åãæåã§ããã®å®å®æã管çãã¼ã«ã¯å®è©ããããã¨ã³ã¿ã¼ãã©ã¤ãºç¨éã§ã¯å¤§ããªã·ã§ã¢ãå ãã¦ãã¾ãã
ããè¿å¹´ã¯ãªã¼ãã³ã½ã¼ã¹ã®ãµã¼ãä»®æ³åã½ããã¦ã§ã¢"Xen"ããæ§è½ãªã©ã®æè¡è©ä¾¡ãé«ããæ§ã ãªLinuxãã£ã¹ããªãã¥ã¼ã¿ãåãè¾¼ã¿ãå§ããããXenããã¼ã¹ã¨ããåç¨è£½åãåºã¦ããããã¦ãã¾ãã
ç§ãã以åãXenによる仮想化環境構築ログãã§Xenã®ç°å¢æ§ç¯ã«ã¤ãã¦ç´¹ä»ãã¾ããããåºæ¬çã«å ¨ã¦ã³ãã³ãã©ã¤ã³ã§ã®ä½æ¥ã§ãããæ·å± ãé«ããã¨ã¯å¦ãã¾ããã
Xenãã®ãã®ã ãã§ã¯ã誰ã§ãç°¡åã«ã»ã»ã»ã¨ããããã«ã¯ãããã使ããããGUIãã¼ã¹ã®Xenã®éç¨ç®¡çãã¼ã«ã¯éè¦ãããã®ã§ã¯ãªããã¨æã£ã¦ãã¾ãã
ã§ãããã¾ã以åãオープンソースベースのXenの管理ツールãã§ãããã¤ãã®ç®¡çãã¼ã«ãå°ãã ãç´¹ä»ãã¾ãããããã®ãã¡ã®1ã¤ãVirtual Machine Manager(virt-manager)ãã®å®æ度ãä¸ãã£ã¦ãã¦ãã¾ãã
"Virtual Machine Manager"ã¯ãRedHat社ãéçºãé²ãã¦ãããXenã®ããã®ç®¡çãã¼ã«ã§GUIãã¼ã¹ã®ãã¹ã¯ãããã¢ããªã±ã¼ã·ã§ã³ã§ãã
Virtual Machine Manager(virt-manager)ã使ã
ã¨ãããã¨ã§ãä»æ¥ã¯ãã®"Virtual Machine Manager"ã使ã£ã¦ãXenãåãããLinux(CentOS5.2)ä¸ã§ãã²ã¹ãOS(DomU)ã¨ãªãä»®æ³ãã·ã³(VM)ã«Windowsãã¤ã³ã¹ãã¼ã«ãã¦åããã¦ã¿ããã¨æãã¾ãã
ä»åã¯ã"Red Hat Enterprise Linux"ã®ã¯ãã¼ã³ã§ãããå®å®æ§ã«å®è©ã®ãã"CentOS"ã®ææ°ç5.2ã使ãã¾ãã
ç§ãããã®CentOSã®åãã¼ã¸ã§ã³ã§ãã5.1ã使ã£ã¦ããé ãå½æãã®Virtual Machine Managerã®ãã¼ã¸ã§ã³ã®æ©è½ã®ã¿ã§ã¯ããããªãã¨ä»®æ³ãã·ã³ä¸ã«Windows OSã®ã¤ã³ã¹ãã¼ã«ãåºæ¥ã¾ããã§ããã
# ã¤ã³ã¹ãã¼ã«ããã«ã¯ãèªåã§ããã¹ããã¼ã¹ã®è¨å®ãã¡ã¤ã«ãæ¸ãæããå¿ è¦ãããã¾ããã
ããä»ã®ææ°ãã¼ã¸ã§ã³ã®CentOS5.2ã«ä»å±ãã¦ããVirtual Machine Managerã§ã¯ãGUIä¸ã§ã®æä½ã®ã¿ã§Windowsã®ã¤ã³ã¹ãã¼ã«ããããã¨ãç°¡åã«åºæ¥ãã®ã§ãç´¹ä»ãããã¨æãã¾ã
ã¾ããXenã®ã¤ã³ã¹ãã¼ã«
CentOSã§Xenãã¤ã³ã¹ãã¼ã«ããã«ã¯ããã
- OSã¤ã³ã¹ãã¼ã«æã®å ´åã¯ãã¤ã³ã¹ãã¼ã«ããã±ã¼ã¸ã®é¸æã§ããä»®æ³åããé¸æ
- OSã¤ã³ã¹ãã¼ã«å¾ã¯ãããã±ã¼ã¸ããã¼ã¸ã£ã§ãä»®æ³åããé¸æ
ã ãã§OKã§ãã以ä¸ã¯ãããã±ã¼ã¸ããã¼ã¸ã£ã§ã®é¸æä¾ã§ãã
ã¤ã³ã¹ãã¼ã«ããå¾ã¯ãåèµ·åãè¡ãã¾ããããããããèªåã§ãGRUBçã®ãã¼ããã¼ãã§Xen対å¿ã®ã«ã¼ãã«ãé¸æããã¦èµ·åãã¦ããã¨æãã¾ãã
ã§ã¯ãWindowsãã¤ã³ã¹ãã¼ã«ä»®æ³ãã·ã³ãä½æ
OSèµ·åå¾ãX Windowã«ãã°ã¤ã³ããå¾ã(GNOMEã ã¨)ä¸é¨ã¡ãã¥ã¼ãã"ã¢ããªã±ã¼ã·ã§ã³"ãã¯ãªãã¯ãã¦ã"ã·ã¹ãã ãã¼ã«" â "ä»®æ³ãã·ã³ããã¼ã¸ã£"ãã¯ãªãã¯ãã¦èµ·åãã¾ãã
ä»®æ³ãã·ã³ããã¼ã¸ã£ãèµ·åããã¨âã®ãããªã¦ã¤ã³ãã¦ã表示ããã¾ãã
localhostã®ç¶æ
ããåæããã¾ãããã¨ãªã£ã¦ããæ¹ã¯ã"localhost"ãããã«ã¯ãªãã¯ãã¦æ¥ç¶ãã¾ãããã
åãã¦ä½¿ãããæ¹ or ã¾ã ä»®æ³ãã·ã³(DomU)ãä½æããã¦ããªãããã¯"Domain-0"ããåå¨ããªããã¨æãã¾ãã
ã§ã¯ãæ©éWindowsãã²ã¹ãOSã¨ãã¦ã¤ã³ã¹ãã¼ã«ããä»®æ³ãã·ã³ãä½ãã¾ãããã
ã¦ã¤ã³ãã¦ä¸é¨ã«ãããæ°è¦ããæ¼ä¸ãã¾ãã
ä»®æ³ãã·ã³ãä½æããã¦ã£ã¶ã¼ããèµ·åãã¾ãããé²ãããæ¼ä¸ãã¾ãã
ä½ãä»®æ³ãã·ã³ã®ååãä»ãã¾ããããã§ä»ããååã¯ãä»®æ³ãã·ã³ããã¼ã¸ã£ä¸ã§ç®¡çãããååã¨ãªãã¾ããèªåãèå¥ã§ããä»»æã®ååãä»ãã¾ãã
ã·ã¹ãã åãå
¥åããå¾ããé²ãããæ¼ä¸ãã¾ãã
ä»®æ³åã®æ¹å¼ãé¸æãã¾ãã
æºä»®æ³åã¨å®å
¨ä»®æ³åã®éãã«ã¤ãã¦ã¯ãXen (仮想化ソフトウェア) - Wikipediaãããããã覧ãã ããã
Windowsãæºä»®æ³åã«å¯¾å¿ãã¦ããªããããããã§ã¯"å®å
¨ä»®æ³å"ãé¸æãã¦ããé²ãããæ¼ä¸ãã¾ãã
ã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã®åªä½ãé¸æãã¾ãã
ISOãã¡ã¤ã«ããã®ã¤ã³ã¹ãã¼ã«ããCDã»DVDããã®ã¤ã³ã¹ãã¼ã«ããããã¯ã¼ã¯ãã¼ãã«ããã¤ã³ã¹ãã¼ã«ã®3ã¤ã®ä¸ããé¸ã³ã¾ãã
ç§ã¯âã®å³ã®ããã«ãCD-ROMãã©ã¤ãã«ã¤ã³ã¹ãã¼ã«CDãå
¥ããå¾ã«ã"CD-ROM ã¾ã㯠DVD"ã®ã©ã¸ãªãã¿ã³ãé¸æããã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã®ãã¹ã§æ¿å
¥ããCD-ROM(ä»åã®ä¾ã§ã¯"WIN2003_JA")ãé¸æãã¾ããã
ã§ãOSã¿ã¤ãã¨ãã¦"Windows"ãé¸æãOS種å¥ã§"Microsoft Windows 2003"ãé¸æãã¾ããã
ãã®ãããã¯ã¤ã³ã¹ãã¼ã«ããWindows(Vistaã¨ãXPã¨ã2000ã¨ã)ã«ãããã¦å¤æ´ãã¦ãã ããã
åã ã®é¸æãçµããã¨ããã§ãé²ãããæ¼ä¸ãã¾ãã
次ã«ã¹ãã¬ã¼ã¸(ãã£ã¹ã¯)é åãé¸æãã¾ãã
ããã§ã¯ãããã¤ã¹ã¬ãã«ã®ãã¼ãã£ã·ã§ã³ã¨ãã¡ã¤ã«ãã¼ã¹ã®é åãé¸æã§ãã¾ãã
ä½ã®ãã¨ããµãããªããããªãæ¹ã¯ã"ã·ã³ãã«ãã¡ã¤ã«"ã®ã©ã¸ãªãã¿ã³ãé¸æãããã¡ã¤ã«ãµã¤ãºãå²ãå½ã¦ã¾ãããã¹ãOS(Dom0)ã®ç©ºã容éã¨ç¸è«ããªããè¨å®ãã¦ãã ããã
WindowsOSã§ããããå°ãªãã¨ã4GB以ä¸ã¯æ¬²ããã¨ããã§ããç§ã¯ã¨ãããã20GBãããã£ã¦ãã¨ã§ã"20000MB"ã¨ãã¾ããã
ããã©ã¼ãã³ã¹ãèæ
®ãã¦"ä»ãä»®æ³ãã£ã¹ã¯å
¨ä½ãå²ãå½ã¦ã¾ããï¼"ã«ãã§ãã¯ãå
¥ããå¾ããé²ãããæ¼ä¸ãã¾ãã
次ã«ãä»®æ³ãã·ã³ãæ¥ç¶ãããããã¯ã¼ã¯ã®è¨å®ã§ãã
Xenã®ä¸ã§ä½ãããä»®æ³ãããã¯ã¼ã¯ã«æ¥ç¶ããå ´åã¨ãç©çãããã¯ã¼ã¯ã«ç´æ¥ããªãã¸æ¥ç¶ãã2種é¡ãããã¾ããããã«ã¤ãã¦ã¯ã第3回 Xenによる仮想環境のネットワーク構築 | 日経 xTECH(クロステック)ãã詳ããã®ã§ããã¡ããã覧ãã ããã
ä»åã®ä¾ã§ã¯åãããããããªãã¸æ¥ç¶ã§ãã"å
±æç©çè£
ç½®"ã®ã©ã¸ãªãã¿ã³ãé¸æãããé²ãããæ¼ä¸ãã¾ãã
æå¾ã«ããªã½ã¼ã¹ã®å²ãå½ã¦ã§ãã
ä»®æ³ãã·ã³ã«å²ãå½ã¦ãã¡ã¢ãªéã¨CPUæ°ãå
¥åãã¦ãã ããã
ç§ã®ä¾ã§ã¯ããã¹ãOS(Dom0)ã«ããããã¡ã¢ãªãç©ãã§ããã®ã§ãã¨ããããã¡ã¢ãªã¯1GB(1024MB)ããã¥ã¢ã«ã³ã¢CPUã ã£ãã®ã§ãä»®æ³CPU(vCPU)æ°ã¯2ã¨ãã¾ããã
é¸æå¾ãé²ãããæ¼ä¸ããã¨ãã²ã¹ãOSã®ã¤ã³ã¹ãã¼ã«ä½æ¥ãéå§ããå§ãã¾ãã
ã¹ãã¬ã¼ã¸é åã®é¸æã®ã¨ããã§ãä»®æ³ãã£ã¹ã¯å
¨ä½ã«å²ãå½ã¦ããé¸æãããæ¹ã¯ãããã§OSã¤ã¡ã¼ã¸ã¨ãªããã¡ã¤ã«ãä½æããã¾ãã
å²ãå½ã¦ã容éã«ãããã¾ãããå°ãæéããããã¾ãã®ã§ããè¶ã§ãå
¥ãã¦ä¸ä¼æ©ãã¾ãããã
次ã«ãWindowsã®ã¤ã³ã¹ãã¼ã«
ããã¾ã§ã§ãWindowsãã¤ã³ã¹ãã¼ã«ããä»®æ³ãã·ã³(VM)ã®ä½æãçµããã¾ããã
ããããã¯ãæ®éã®ç©çãã·ã³ã§è©±ãä¾ããã¨ããã½ã³ã³(ãµã¼ã)ãè²·ã£ã¦ãã¦é
ç·ããä»ããé»æºãå
¥ããã¨ããã£ã¦æãã§ãã
ãããä»®æ³ãã·ã³ãèµ·åãã¾ããï¼ããã¤ã¹èªèä¸ã§ããã
ãã°ããããã¨ããã®éãWindowsã®ã¤ã³ã¹ãã¼ã«ç»é¢ã表示ããã¾ãã
ããããã¯ãæ®éã«Windowsã®OSãã¤ã³ã¹ãã¼ã«ããæãã§é²ãã¦ãã£ã¦ãã ããã
æ
£ãã¦ããªãæ¹ã¯ãGoogleå
çãããã«èãã¦ã¿ãã¨è¯ããã¨æãã¾ãã
ãã£ã¹ã¯ã®ãã¼ãã£ã·ã§ã³è¨å®ããã©ã¼ãããããã¼ã¹ã®ã¤ã³ã¹ãã¼ã«ãçµãã£ãé ã«åèµ·åãæ±ããããã¨æãã¾ãã
ãã®å¾ãä»®æ³ãã£ã¹ã¯ãã·ã£ãããã¦ã³ãã¦ãâã®ãããªæãã«ãªããã¨æãã¾ãã
ä»®æ³ãã·ã³(âã®ä¾ã§ã¯ãWindowsServer2003)ãé¸æãã¦ãå³ã¯ãªã㯠â "Run"ãæ¼ãã¨ãä»®æ³ãã·ã³ãèµ·åãã¾ããããã
ããã£ï¼Windowsèµ·åï¼ã§ããããã
ãã®ããã«ãç¶è¡ããã®ã«å¿
è¦ãªãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ã§ãã¾ããã§ãããCD-ROMã¡ãã£ã¢ã§ã¨ã©ã¼ãçºçããããã¾ãã¯CD-ROMããã©ã¤ãã«ããã¾ããããã¨ããã¨ã©ã¼ãåºã¾ãã
ãããCD-ROMãã©ã¤ããèªèãã¦ããªã(æ¥ç¶ãã¦ããªã)ç¶æ
ã§èµ·åããã¨ãããªãã¾ãã
ãªã®ã§ã2ç»é¢ã»ã©æ»ããä»®æ³ãã·ã³ããã¼ã¸ã£ã®ã¦ã¤ã³ãã¦ã§ä»®æ³ãã·ã³(ç§ã®ä¾ã§ã¯ãWindowsServer2003)ãé¸æããããã«ã¯ãªãã¯ãã¦ãã ããã(ãããã¯ä»®æ³ãã·ã³ãé¸æç¶æ ã§ãã¦ã¤ã³ãã¦ä¸é¨ã®"詳細"ãæ¼ä¸ãã¦ãã ããã)
ãããªæãã§ä»®æ³ãã·ã³ã®è©³ç´°ç»é¢ã表示ããã¾ãã"ãã¼ãã¦ã§ã¢"ã¿ããã¯ãªãã¯ãã¦ãã ããã
å·¦é¨ã®ãã¼ãã¦ã§ã¢ä¸è¦§ããCD-ROMãã¼ã¯ã®ã¨ãªã¢(âã§ã¯Disk hdc)ãã¯ãªãã¯ããå³é¨ã§ã½ã¼ã¹ãã¹ã®é¨åã"-"ã¨ãªã£ã¦ããå ´åããæ¥ç¶ããæ¼ä¸ãã¾ãã
ã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã®é¸æç»é¢ãåºã¾ãã
ç§ã¯ãOSã¤ã³ã¹ãã¼ã«æã«CD-ROMã使ã£ã¦ã¤ã³ã¹ãã¼ã«ãè¡ã£ã¦ãããããããã§ã¯"CD-ROM ã¾ã㯠DVD"ã®ã©ã¸ãªãã¿ã³ãé¸æããã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã®ãã¹ã§ãæ¿å
¥ããCD-ROM(ä»åã®ä¾ã§ã¯"WIN2003_JA (/dev/hda)")ãé¸æãã¾ããã
ã§ããOKããæ¼ä¸ãã¾ãã
ã½ã¼ã¹ãã¹ã«å
ç¨æå®ãããã®ãé¸æããã¦ããã®ã確èªããä¸é¨ã®ãå®è¡ããæ¼ä¸ãã¾ãã
(ã¾ãã¯ãä»®æ³ãã·ã³ããã¼ã¸ã£ã®ç»é¢ã§ãWindowsãã¤ã³ã¹ãã¼ã«ãã¦ããä»®æ³ãã·ã³ãé¸æãã¦ãå³ã¯ãªã㯠â "Run"ã§ãOKã§ãã)
ãã¦ãWindowsãèµ·åãããè¦æ £ããç»é¢ãåºã¦ããã¯ãã§ãã
CD-ROMãèªè(æ¥ç¶)ããããã¨ã§ãã¤ã³ã¹ãã¼ã«ã®ç¶ããå§ã¾ãã¾ãã
ããããã¯ãåã³é常ã®Windows OSã®ã¤ã³ã¹ãã¼ã«ã¨åæ§ã§ãã®ã§ãæ®éã«é²ãã¦ãã ããã
ããã¦ãOSã¤ã³ã¹ãã¼ã«ãå®äºããã¨ãã°ã¤ã³ç»é¢ã¨ãªãã¨æãã¾ãã
ããã«ã¦ãXenä¸ã®ä»®æ³ãã·ã³(DomU)ã¸ã®Windowsã¤ã³ã¹ãã¼ã«ã¯å®äºã§ãï¼
ããã©ã«ãã§ã¯è§£å度ãå°ããã¨æãã®ã§ããã°ã¤ã³å¾ã«è§£å度ã®å¤æ´ããªã¹ã¹ã¡ãã¾ãã
ä»®æ³ãã·ã³ããã¼ã¸ã£ã§ã®ãä»®æ³ãã·ã³ã³ã³ã½ã¼ã«ãã¯ããªããªãããå
¥åºåã¨ãã¥ã¬ã¼ããåºæ¥ã¦ããæ°ããã¾ããããã¯ãæ¬æ ¼çã«ä½¿ãã«ã¯ã¾ã ã¾ã ãªã®ã§ããªã¢ã¼ããã¹ã¯ããããVNCçã§æ¥ç¶ãã¦ä½¿ãã®ãè¯ããã¨æãã¾ãã
æå¾ã«
ãã®ããã«ãææ°çã®CentOS5.2ã§ã¯ãä»®æ³ãã·ã³ããã¼ã¸ã£(Virtual Machine Manager)ã¨ããGUIã®ãã¼ã«ã ãã§ãä»åç´¹ä»ããWindowsã¯ãã¡ãããLinuxãFreeBSDãSolarisãªã©ãã¤ã³ã¹ãã¼ã«å¯è½ã§ãã
ã¨ã³ã¿ã¼ãã©ã¤ãºç¨éã§å®å®ããç¶æ ã§ã誰ã§ã使ãããï¼ã¨è¨ãããã¨ãã¾ã ã¾ã æçã®ä½å°ã¯ããã¾ãããããã§ãä¸æåã®ã管çãã¼ã«ããªãXenã«ä»å±ããã³ãã³ãã®ã¿ã§ä½æ¥ãã¦é ã«æ¯ã¹ãã¨ãGUIã®ãã¼ã«ã ãã§ã¤ã³ã¹ãã¼ã«ã»è¨å®ããã¢ãã¿ç»é¢ãä»ãã¦ããããªã©ãã¼ã¡ã¼ã¡å©ç¨ã«ã¤ãã¦ã®æ·å± ã¯ä¸ãã£ã¦ãã¦ããã¨æãã¾ãã
# ãããããã©ãã«çºçæã®é£æ度ã¯ããããé«ãã§ããããã
Windowsã¯ãXenä¸ã§ã¯"å®å
¨ä»®æ³å"ã§ç¨¼åãããããããã©ã¼ãã³ã¹é¢ã«ã¤ãã¦ã¯æå¾
ã§ãã¾ããããå°ãOSã«å½±é¿ãä¸ãããããªå®é¨ããã¡ããã£ã¨ãã¹ããå®æ½ãããå ´åãªã©ã«æ´»èºã§ããã®ã§ãæ©ä¼ãããã°è§¦ã£ã¦ã¿ã¦ã¯å¦ä½ã§ããããã
åè
- Xenによる仮想化環境構築ログ
- オープンソースベースのXenの管理ツール
- Xen (仮想化ソフトウェア) - Wikipedia
- 第3回 Xenによる仮想環境のネットワーク構築 | 日経 xTECH(クロステック)
- [ThinkIT] 第3回:リファレンスを狙うVirtual Machine Manager (1/3)
- ä½è : å¹³å,é·è°·å·ç,å®®æ¬ä¹ ä»ç·,大島åå
- åºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾
- çºå£²æ¥: 2007/12/20
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 4人 ã¯ãªãã¯: 40å
- ãã®ååãå«ãããã° (15件) ãè¦ã
ä»®æ³åæè¡Xen-æ¦å¿µã¨å é¨æ§é
- ä½è : David Chisnall,æ¥æ¬ä»®æ³åæè¡(æ ª),渡éäºä»
- åºç社/ã¡ã¼ã«ã¼: æ¯æ¥ã³ãã¥ãã±ã¼ã·ã§ã³ãº
- çºå£²æ¥: 2008/08/20
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 3人 ã¯ãªãã¯: 61å
- ãã®ååãå«ãããã° (26件) ãè¦ã