cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:virtualization:kvm:guest_replication.html



KVM CLI Commands Cheet Sheat and KVM Configuration Examples

KVM : How to replicate Guest OS

Method1

# virsh list --all
# virt-clone -o server1 -n server2 -f /var/lib/libvirt/images/server2.img
# diff /etc/libvirt/qemu/dev-cent01.xml /etc/libvirt/qemu/dev-cent02.xml


Method2

Step1 : Copy Image

# cd /var/lib/libvirt/images/
# cp server1.img server2.img


Step2 : Copy XML File

# cd /etc/libvirt/qemu/
# cp server1.xml server2.xml
# vi server2.xml

(abbr)
    <name>server2</name>
    <uuid>xx.xxx-xx-xx</uuid>

        <source file='/var/lib/libvirt/images/server2.img/'>

        <mac address='xx'/>
(abbr)


Step3 : registration new virtual machine

# virsh define /etc/libvirt/qemu/server2.xml



middleware/virtualization/kvm/guest_replication.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools