게시물 1,375건
   
kvm 참고페이지
글쓴이 : 최고관리자 날짜 : 2011-06-27 (월) 18:06 조회 : 11401
글주소 :
                                

참조 
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.