IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
The developerWorks Connections Platform is now in read-only mode and content is only available for viewing. No new wiki pages, posts, or messages may be added. Please see our FAQ for more information. The developerWorks Connections platform will officially shut down on March 31, 2020 and content will no longer be available. More details available on our FAQ. (Read in Japanese.)
ãä¹ ãã¶ãã§ããyokkunsã§ãã ç¾å¨ãFedora10ã®KVMä¸ã§ä»®æ³ãã·ã³ãä»®æ³ãããã¯ã¼ã¯ã§åããã¦ãããã§ãããä»åããªãã¸æ¥ç¶ã«ææ¦ãã¦ã¿ã¾ããã ããªãã¸ã®ä½æã«é¢ãã¦ã¯ã以ä¸ã®è¨äºãåèã«ãã¾ããã http://www.coevolver.net/entries/220 KVMã®å°å ¥ã¨åºæ¬çãªä½¿ãæ¹ (3/3)ï¼ç¥ã£ã¦è¦ãã¿ãKVMï¼2ï¼ - ï¼ IT åä½ç°å¢ã¯ã以ä¸ã§ãã Fedora 10 2.6.27.21-170.2.56.fc10.x86_64 kvm 74-10.fc10.x86_64 etherboot-roms-kvm 5.4.4-4.fc10.x86_64 libvirt-python 0.5.1-2.fc10.x86_64 libvirt 0.5.1-2.fc10.x86_64 qemu-img 0.9.1-12.fc10.x86_64 qemu 0
ã¢ãã¦ã³ã¹å¾ããã2ã«æã§Linux Kernelã«ãã¼ã¸ããããã¨ã§ä¸èºæ³¨ç®ãæµ´ã³ããã¨ã«ãªã£ãä»®æ³åæè¡ãKVMãããããããã®å ·ä½çãªä»çµã¿ã使ç¨æ¹æ³ã¨ãªãã¨ãæå¤ã¨ç¥ããã¦ããªãã®ã§ã¯ãªãã§ããããããã®é£è¼ã§ã¯ãããªKVMã«ã¤ãã¦ç´¹ä»ãã¾ãï¼ç·¨éé¨ï¼ ååãLinuxæ¨æºã®ä»®æ³åæè¡ãKVMãã®ä»çµã¿ãã§ã¯ããKVMï¼Kernel-based Virtual Machineï¼ã®æ¦è¦ã«ã¤ãã¦èª¬æãã¾ãããä»åã¯ãããè¸ã¾ãã¦ãåºæ¬çãªä½¿ãæ¹ã説æãã¾ããKVMã¯GUIãã¼ã«ã§æä½ãããã¨ãã§ãã¾ãããä»åã¯åºæ¬ãæ¼ãããããããã¹ã¦ã³ãã³ãã©ã¤ã³ã§è¡ã£ã¦ã¿ã¾ãããã å®éã«KVMã使ãå ´åã«ã¯GUIãã¼ã«ã使ããã¨ãæ³å®ããã¾ãããã³ãã³ãã©ã¤ã³ã§ã®æä½ãæ¼ããã¦ããã°ãGUIãã¼ã«ã®è£å´ã§å®éã«ä½ããã£ã¦ããã®ããç解ã§ãããã¨æãã¾ãã ä»åã®è©±ã®æµãã¯ä»¥ä¸ã®ã¨ããã§ãã
使ãæ¹ã«å¿ãããããã¯ã¼ã¯æ§æï¼ç¶ãï¼ âã±ã¼ã¹4ï¼ãµã¼ãã¹ç¨ã®ã²ã¹ãOSãè¤æ°èµ·åããå¤é¨ãã¼ãããã²ã¹ãOSã«ç°¡åã«ã¢ã¯ã»ã¹ã§ããããã«ãã ãã¹ãã®ç©çNICã¨ã²ã¹ãOSãæ¥ç¶ããtapããã¤ã¹ãããªãã¸ã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨ãã¦è¨å®ãã¾ããããã«ãããã¹ãOSã®æ¥ç¶ãã¦ããç©ççãªL2ãããã¯ã¼ã¯ã«ãã²ã¹ãOSãæ¥ç¶ãã¦ããããã«æ©è½ãã¾ãããã®ãããå¤é¨ãã¹ãã¯ãã¡ãããã²ã¹ãOSéã®éä¿¡ãè¡ããã¨ãã§ãã¾ãã ãªããã±ã¼ã¹1ã3ã¾ã§ã¯ãkvmã°ã«ã¼ãã«æå±ãã¦ããã°ä¸è¬ã¦ã¼ã¶ã¼ã§å®è¡ã§ãã¾ããããã±ã¼ã¹4ã§ä½¿ç¨ããtapããã¤ã¹ã«ã¯root権éãå¿ è¦ã§ãããããã¯ã¼ã¯æ§æã¯å³4ã§ãã # ifconfig eth0 0.0.0.0 promisc up     âeth0ããããã¹ãã£ã¹ã¢ã¼ãã«ãã # brctl addbr br0                    â
ã¨ããã®ã¯ãéè¦ã¨ãã¦ã¯ããªãããã¾ããã. ã¨ããããã§ã以ä¸ã®ãªãã·ã§ã³ãç¨ãããã¨ã§ãã¼ãã§ãã...ã¯ããªã®ã§ããï¼ /usr/local/kvm/88/bin/qemu-system-x86 -kernel /boot/vmliuz-2.6.28-15-generic -initrd /boot/initrd.img-2.6.28-15-generic -hda /dev/zero -append "root=/dev/hda rootdelay=90"ä¸åº¦virtio-pciãèªã¿ããã å¾ã«ã Begin: Loading essential drivers... done. ... Begin: Mounting for root file system ... Begin: Waiting for root file system Gave up wating for ro
å æ¥ã®è¨äºã§ãKVMããã®ç´ãã¼ãã«å¤±æãã¦ãã¾ããããç¡äºã«åä½ãã¾ããï¼ /usr/local/kvm/88/bin/qemu-system-x86 -kernel /boot/vmliuz-2.6.28-15-generic -initrd /boot/initrd.img-2.6.28-15-generic -hda ~/disks/ubuntu.img -append "root=/dev/sda"ã§ãã¼ããã¾ã. ååç¯ãã¦ããéã¡ã¯ãã«ã¼ãããã¤ã¹ã "/dev/hda" ã¨ç¤ºãã¦ãããã¨ã§ã. busyboxä¸ã§ã $ ls /dev/hdaã¨ãã¦ããã¨ãã¦ããä½ãåºã¦ããªãã£ãã®ã§ãããããªãã¨ã¯æã£ã¦ãã¾ãããw id:viverã¨id:kidminã«ã¢ããã¤ã¹é ããå度 ls ãç´ãã¦ã¿ãã¨... $ ls /dev/ | grep da sda sda1 sda2
KVM = Kernel-based Virtual Machine ã®ä¸æ ¸ã¯ Linux ã«ã¼ãã«ã®ãã¼ããã«ã¢ã¸ã¥ã¼ã«ã§ãQEMU ã¨ååãã¦ãã¹ãOSä¸ã§ä»®æ³ãã·ã³ãå®è¡ãããã¨ãã§ãããXen ã¨ç°ãªãã®ã¯ãXen ã Nemesis ã¨ããç°ç¨®OS ããã¤ãã¼ãã¤ã¶ã¨ãããã¹ãOS ã¯ãã®ä¸ã§åãç¹æ¨©ã²ã¹ãã¨ä½ç½®ã¥ããããã®ã«å¯¾ãã¦ãKVM ã§ã¯ Linux ãã¹ãOS èªä½ããã¤ãã¼ãã¤ã¶ã¨ãªããåã ã®ã²ã¹ããã©ãããã©ã¼ã ãåã ã²ã¨ã¤ã®ããã»ã¹ã¨ãã¦å®è¡ãããç¹ã ãã¾ããXen ããã«ãã¼ãã£ã©ã¤ã¼ã¼ã·ã§ã³ (å®å ¨ä»®æ³å) ã¨ãã©ãã¼ãã£ã©ã¤ã¼ã¼ã·ã§ã³ (æºä»®æ³å) ã®ä¸¡æ¹ãæä¾ãã¦ããã®ã«å¯¾ãã¦ãKVM ã¯ãã«ãã¼ãã£ã©ã¤ã¼ã¼ã·ã§ã³å°ç¨ããã®ãããã²ã¹ãOS ã®ã«ã¼ãã«ã Xen ç¨ã«æ¹å¤ãã¦ãã¤ãã¼ãã¤ã¶ã¨ã®è©±ãæ¹ãæãã¦ããã¨ãããããªãã¨ãå¿ è¦ãªããå®å ¨ä»®æ³åã«ãããª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}