My guest machine has 2 partitions (80GB + 1TB). Both of them is on LVM. I want to transfer all disks to another machine with minimum downtime. I transferred another machine with nc. It takes 4 days and during transfer my VM was off.
I tried to make snapshot after then transfer dirty pages. But AFAIK with LVM its'not possible. My target machine has no LVM setup and free unpartitioned space. So on target machine disks must be raw file images.
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/vg-datastore/lv-vm-1138'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/vg-datastore-sata/lv-vm-1138-2'/>
<target dev='vdb' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</disk>
Source Host:
- CPU: Intel(R) Xeon(R) CPU D-1520 @ 2.20GHz
- OS: 16.04.1 LTS
- Kernel: 4.2.0-34-generic
- qemu-kvm: 1:2.3+dfsg-5ubuntu9.2
- QEMU: 2.3.0
- libvirt: 1.2.16
Target Host:
- CPU: Intel(R) Xeon(R) CPU D-1520 @ 2.20GHz
- OS: 16.04 LTS
- Kernel: 4.4.0-28-generic
- qemu-kvm: 1:2.5+dfsg-5ubuntu10.2
- QEMU: 2.5.0
- libvirt: 1.3.1