KVM virtualization learning notes Series
----------------------------------------
Kvm virtualization learning notes (1) Installation of kvm virtualization environment
Http://koumm.blog.51cto.com/703525/1288795
Kvm virtualization learning notes (ii) Installation of linuxkvm Virtual Machine
Http://koumm.blog.51cto.com/703525/1289627
Kvm virtualization learning notes (iii) Windows Virtual Machine Installation
Http://koumm.blog.51cto.com/703525/1290191
Kvm virtualization learning notes (4) daily management and configuration of kvm virtual machines
Http://koumm.blog.51cto.com/703525/1290269
Kvm virtualization learning notes (5) Performance adjustment for windows virtual machines
Http://koumm.blog.51cto.com/703525/1290682
Kvm virtualization learning notes (6) kvm VM Console Logon Configuration
Http://koumm.blog.51cto.com/703525/1290996
Kvm virtualization learning notes (7) cloning of kvm virtual machines
Http://koumm.blog.51cto.com/703525/1291793
Kvm virtualization learning notes (8)-kvm Virtual Machine vnc Configuration
Http://koumm.blog.51cto.com/703525/1291803
Kvm virtualization learning notes (9)-kvm Virtual Machine Time Configuration
Http://koumm.blog.51cto.com/703525/1291862
Kvm virtualization learning notes (10) backup of kvm Virtual Machine snapshots
Http://koumm.blog.51cto.com/703525/1291893
Kvm virtualization learning notes (11): Expanding disk space using kvm virtual machines
Http://koumm.blog.51cto.com/703525/1292146
Kvm virtualization learning notes (12) Online disk expansion for kvmlinux virtual machines
Http://koumm.blog.51cto.com/703525/1295296
Kvm virtualization learning notes (13): kvm Virtual Machine Disk File Reading Summary
Http://koumm.blog.51cto.com/703525/1298845
Kvm virtualization Study Notes (14): kvm Virtual Machine static migration
Http://koumm.blog.51cto.com/703525/1298852
Kvm virtualization learning notes (15th): kvm Virtual Machine Dynamic migration
Http://koumm.blog.51cto.com/703525/1300783
Kvm virtualization learning notes (16)-kvm virtualization storage pool Configuration
Http://koumm.blog.51cto.com/703525/1304196
Kvm virtualization learning notes (17th)-v2v migration from KVM to KVM
Http://koumm.blog.51cto.com/703525/1304271
1. Source KVM virtual host node1
(1) view the Virtual Machine list on the source KVM virtual machine. This article plans to migrate the oeltest01 Virtual Machine to other KVM virtual machines.
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302H913-0.png "height =" 199 "/>
(2) view the oeltest01 VM Disk File Location/data/oeltest01.qcow2.
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302L2G-1.png "height =" 406 "/>
Because the kvm-based v2v migration tool is used, v2v migration requires the support of the kvm storage pool and the transformation of the KVM virtual environment is required, for the configuration of the kvm storage pool, see the configuration of the kvm virtualization storage pool in the kvm virtualization learning notes (16.
(3) brief process of configuring the KVM storage pool of the source VM
# mkdir -p /data/vmfs# virsh pool-define-as vmdisk --type dir --target /data/vmfs# virsh pool-build vmdisk# virsh pool-autostart vmdisk# virsh pool-start vmdisk
(4). Move the VM disk files to the storage pool.
# mv /data/oeltest01.qcow2 /data/vmfs/
2. Target KVM virtual host node2
(1). view the Virtual Machine list on the source KVM Virtual Host
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302L120-2.png "height =" 111 "/>
(2) Brief configuration process of the KVM storage pool of the target Virtual Machine
# mkdir -p /data/vmfs# virsh pool-define-as vmdisk --type dir --target /data/vmfs# virsh pool-build vmdisk# virsh pool-autostart vmdisk# virsh pool-start vmdisk
3. v2p migration between KVM and KVM
Note: We plan to migrate the oeltest01 VM in the source kvm host to the target VM. The principle is to directly copy the VM disk files and configuration files to the target VM. The key point is that the source and target virtual hosts must use a storage pool to configure Virtual Machine disks.
(1). Start migration
# virt-v2v -ic qemu+ssh://192.168.233.130/system -op vmdisk -b br0 oeltest01The authenticity of host '192.168.233.130 (192.168.233.130)' can't be established.RSA key fingerprint is ff:ed:35:5e:4b:f5:fd:52:bf:0a:59:7a:52:0f:02:44.Are you sure you want to continue connecting (yes/no)? yesroot@192.168.233.130's password:root@192.168.233.130's password:
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302K533-3.png "height =" 354 "/>
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302I434-4.png "height =" 136 "/>
(2) Check the status of the virtual machine after the migration is completed.
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302I102-5.png "height =" 248 "/>
The VM disk files are automatically copied to the storage pool.
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302I500-6.png "height =" 108 "/>
Test the VM console.
650) this. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px; "title =" image "border =" 0 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/20302JS8-7.png "height =" 385 "/>
So far, the v2v migration from KVM to KVM has been completed successfully. The v2v migration method is complementary to other static migration methods, and expands the application scope of kvm virtualization.
This article is from the "koumm linux technology blog" blog, please be sure to keep this source http://koumm.blog.51cto.com/703525/1304271