virt-installã§CentOSãã¤ã³ã¹ãã¼ã«ããæ¹æ³ãããã ãç·¨
(())-ãã¬ã¤ãªç°å¢ã欲ãããªã£ãã®ã§æçã«ã¤ã³ã¹ãã¼ã«
-
- http://ftp.riken.jp/Linux/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.isoåå¾
- ã¤ã¡ã¼ã¸ä½æãqemu-img create -f qcow2 saki.img 10G
- ã¤ã³ã¹ãã¼ã«ãkvm -hda saki.img -cdrom CentOS-5.5-i386-netinstall.iso -boot d -m 512 -curses
- ãã linux text [Enter]
- ãããã¯ã¼ã¯è¨å®ãDHCPã«ãã
- ftp.riken.jp - Linux/centos/5.5/os/i386 ã§ã¤ã³ã¹ãã¼ã«éå§
- 表示ãæªãã ããããã
- èµ·åãkvm -hda saki.img -boot c -m 512 -curses
ã
- ããã«ã¡ã¢ã
- virt-install ã§ããæ¹æ³ãVMã®è¨å®ãã¡ã¤ã«ãä½ã£ã¦ãããã
- extra-argsã§consoleæå®ããªãã¨ã³ã³ã½ã¼ã«ã«æ¥ç¶ã§ããªãã®ã§ã¤ã³ã¹ãã¼ã«ãã§ããªãã®ã§å¿ é ã
- virt-installã³ãã³ã失æãããVMã®è¨å®ãã¡ã¤ã«æ¶ãã¦ï¼/etc/libvirt/qemu/ikaros.xmlï¼ãlibvirtd ããªã¹ã¿ã¼ãããã
- location ftpã¯ä¸æããããªãï¼
- --disk㨠--file-size ã¯åæã«æå®ã§ããªããsyntaxã¨ã©ã¼ã«ãªãã
- qcow2ãã©ã¼ãããã®ãã¡ã¤ã«ã«--fileãªãã·ã§ã³æå®ã§å®è¡ããã¨ãã¼ãã£ã·ã§ã³ãµã¤ãºï¼ã¨ãªã£ã¦ã¤ã³ã¹ãã¼ã«ã§ããªãã
- Boot Loader Configurationã§åºã¦ããâconsole=ttyS0,115200n8âã¯ãã®ã¾ã¾ã§ãæ¶ãã¨åèµ·åã§ç¹ãããªããªããã
- ã·ãªã¢ã«ã³ã³ã½ã¼ã«ã®è¨å®ã¨ããæ¢ã«åºæ¥ã¦ãâ¦virt-installè³¢ããªã£ãï¼
qemu-img create -f qcow2 /home2/ikaros.img 10G virt-install --connect qemu:///system \ --name ikaros \ --ram=512 \ --hvm \ --location http://ftp.riken.jp/Linux/centos/5.5/os/i386 \ --os-type=Linux \ --os-variant=virtio26 \ --disk=/home2/ikaros.img,format=qcow2 \ --network bridge=br0 \ --nographics \ --keymap ja \ --extra-args='console=tty0 console=ttyS0,115200n8' CentOS 5 - KVM - ä»®æ³ãã·ã³ä½æ#1 ï¼ Server World http://www.server-world.info/query?os=CentOS_5&p=kvm&f=2 > --extra-args='console=tty0 console=ttyS0,115200n8' ãã£ã¡ã®æ¹ãããã¯ãã