°Ô½Ã¹° 1,369°Ç
   
kvm Âü°íÆäÀÌÁö
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-06-27 (¿ù) 18:06 Á¶È¸ : 11253
±ÛÁÖ¼Ò :
                                

ÂüÁ¶ 
Installing KVM on CentOS 5.5
http://drup.org/installing-kvm-centos-54


CentOS 5.5 ±×¸®°í KVM
http://j2k.naver.com/j2k_frame.php/korean/www.ookawara.com/archives/568


(CentOS)KVM¿¡ ÀÇÇÑ ¼­¹ö °¡»óÈ­
http://j2k.naver.com/j2k_frame.php/korean/d.hatena.ne.jp/jitsu102/20110108/1294455395

CPU °¡»óÈ­ ±â´É È®ÀÎ
AMD : grep svm /proc/cpuinfo --color
Intel : grep vmx /proc/cpuinfo --color

CentOS / Redhat: Install KVM Virtualization Software
http://www.cyberciti.biz/faq/centos-rhel-linux-kvm-virtulization-tutorial/


/etc/libvirt/ - Main configuration directory. 
/etc/libvirt/qemu/ - Virtual machine configuration directory. All xml files regarding VMs are stored here. You can edit them manually or via virt-manager. 
/etc/libvirt/qemu/networks/ - Networking for your KVM including default NAT. NAT is only recommended for small setup or desktops. I strongly suggest you use bridged based networking for performance. 
/etc/libvirt/qemu/networks/default.xml - The default NAT configuration used by NAT device virbr0.
/var/log/libvirt/ - The default log file directory. All VM specific logs files are stored here. 
/etc/libvirt/libvirtd.conf - Master libvirtd configuration file. 
/etc/libvirt/qemu.conf - Master configuration file for the QEMU driver.

 

 

virt-install --connect qemu:///system --name dev-cent01 --ram 1024 --vcpus=1 --disk path=/var/lib/libvirt/images/dev-cent01.img,size=5 --nographics --os-type=linux --os-variant=virtio26 --accelerate --location=http://ftp.daum.net/centos/5.5/os/x86_64

 

¸í·ÉÀ¸·Î °¡»ó¸Ó½Å Á¦¾î
http://www.cyberciti.biz/faq/linux-kvm-stop-start-guest-virtual-machine/


How to manage KVM virtual machines using virsh
http://acidborg.wordpress.com/2010/02/19/how-to-manage-kvm-virtual-machines-using-virsh/


Description: virsh is a program which uses libvirt to manage KVM virtual machines (guests). I¡¯m going to show a summary of its main functions (cheat sheet style):

Show guests¡¯ information:

?Show a list of all the defined guests: virsh list --all
?Show a guest¡¯s info: virsh dominfo guest's_name

 

Start and stop guests:

?Start a guest: virsh start guest's_name
?Shutdown a guest (gently): virsh shutdown guest's_name
?Shutdown a guest (wild): virsh destroy guest's_name
?Suspend a guest: virsh suspend guest's_name
?Resume a suspended guest: virsh resume guest's_name

 

Create and modify guests:

?Create a new guest
?Create a guest from its XML definition: virsh create xml_file.xml
?Dump a guest¡¯s definition in XML: virsh dumpxml guest's_name
?Modify a guest¡¯s definition: virsh edit guest's_name
?Remove a guest¡¯s definition (it doesn¡¯t remove the image file): virsh undefine guest's_name

 

Backup and restore guests:

?Save a guest¡¯s state on a file: virsh save guest's_name guest's_state_file
?Restore a guest from a state file: virsh restore guest's_state_file

 

 

 

active fail -> backup·Î failover -> backup¿¡¼­ Ãß°¡ guest »ý¼º -> active ·Î failback Çϸé,
backup¿¡¼­ »ý¼ºÇÑ guest°¡ virt-manager¿¡¼­ º¸ÀÌÁö ¾Ê´Â´Ù.
ÀÌ·² °æ¿ì

virsh¿¡¼­

define /etc/libvirt/qemu/labspace.biocon.re.kr_ubuntu.xml

¿Í °°ÀÌ ÀçÁ¤ÀÇ ÇØÁÖ¾î¾ßÇÑ´Ù.

ÀÌ·¡¾ß¸¸ virt-manager¿¡¼­µµ º¸ÀÌ°í, virsh list ¿¡¼­µµ º¸ÀδÙ.
¿øÀÎÀº ¾ÆÁ÷ ¸ð¸£°ÚÀ½...


KVM: virsh define¡¡(¿Í)°ú virsh edit 
http://j2k.naver.com/j2k_frame.php/korean/lost-and-found-narihiro.blogspot.com/2010/11/kvm-virsh-define-virsh-edit.html


ÂüÁ¶ : http://code.google.com/p/appscale/wiki/Introduction_to_KVM
ÂüÁ¶ : http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaai/kvmadv/kvmadvvirsh.htm


Basic KVM Commands
Here are a few useful KVM-related commands and hot-keys. 
?To list the VM's, use the following command:
  virsh list --all

?To get the console for each VM, use the following command: 
  virsh console <domU-id or registered name>

For example, to get the console for appscale-image1 above, you can do this: 
  virsh console 29

or this: 
  virsh console appscale-image1

Hit enter a couple of times to get the prompt

?To disconnect from a console and return to your local machine, use the following hot-key: 
  <Ctrl> + ']'

?To shutdown a running instance, you can do this: 
  virsh shutdown <domU-id>

 

 


KVM Âü°í ¸Þ´º¾ó

Quick Start Guide for installing and running KVM
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/topic/liaai/kvminstall/KVMInstall_pdf.pdf

The developer's approach to installing and managing KVMs
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/topic/liaai/kvmadv/kvmadv_pdf.pdf


Setting up Windows XP guest using virt-manager
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/topic/liaai/kvminstall/KVMinstallXP_pdf.pdf

 

Virtualization using KVM with libvirt on RHEL 
http://kaivanov.blogspot.com/2010/10/virtualization-using-kvm-with-libvirt.html

 


(CentOS)KVM°Ô½ºÆ®OSÀ̹ÌÁöÀÇ Å¬·Ð ÀÛ¼º
http://j2k.naver.com/j2k_frame.php/korean/d.hatena.ne.jp/jitsu102/20110112/1294838023


virt-clone -o <Ŭ·Ð¿øVM¸í> -n <Ŭ·ÐóVM¸í> -f <Ŭ·Ð À̹ÌÁö ÆÄÀϸí>


virsh list --all
virt-clone -o dev-cent01 -n dev-cent02 -f /var/lib/libvirt/images/dev-cent02.img

diff /etc/libvirt/qemu/dev-cent01.xml /etc/libvirt/qemu/dev-cent02.xml
UUID, MACÁÖ¼Ò Áߺ¹µÇÁö ¾Ê°Ô º¯°æ

virsh define /etc/libvirt/qemu/dev-cent02.xml

virsh start dev-cent02
virsh start dev-cent01

 

[Ãâó] centos 5.5¿¡¼­ kvm ¼³Ä¡|ÀÛ¼ºÀÚ Âà


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.