Live migration

VM image converter (VMDK, VHD, VHDX, IMG, RAW, QCOW and QCOW2), P2V migrator

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
askee
Posts: 2
Joined: Mon Oct 07, 2024 9:17 am

Mon Oct 07, 2024 9:22 am

Hello,

I have a question regarding synchronization for live migration. I understand that a snapshot is taken before the conversion and that this snapshot is merged after the conversion. But what about changes made to the VM during the conversion? These changes will not be present in the converted VM.

Ultimately, it seems necessary to shut down the VM, which essentially defeats the purpose of live migration. Am I wrong?
yaroslav (staff)
Staff
Posts: 2904
Joined: Mon Nov 18, 2019 11:11 am

Mon Oct 07, 2024 9:50 am

The changes are written to the snapshot and get merged afterward to the VM.
You need to shut down the source VM after the conversion manually though. The changes made between the conversion finish and VM shutdown will stay on the source VM though.
askee
Posts: 2
Joined: Mon Oct 07, 2024 9:17 am

Wed Oct 09, 2024 1:30 pm

So, any changes made between the start and the end of the conversion will not be included when merging the snapshot, and all these changes will remain on the source VM.
Is that correct?
yaroslav (staff)
Staff
Posts: 2904
Joined: Mon Nov 18, 2019 11:11 am

Wed Oct 09, 2024 5:08 pm

No. Changes made between the start of conversion (i.e., snapshot creation) and conversion completion (i.e., snapshot merge) will be on the destination VM.
The changes made AFTER the snapshot merge process will be not included as there is nothing that will bridge the changes between two VMs.
Taha
Posts: 13
Joined: Wed Oct 09, 2024 12:38 pm

Mon Oct 14, 2024 6:42 am

can you suggest whats the best option to prevent losing data if live migrated? do i shutdown the VM right before the conversion is completed so that the source is identical to the destination? because i dont want to boot the destination VM while the data is not identical from the source
yaroslav (staff)
Staff
Posts: 2904
Joined: Mon Nov 18, 2019 11:11 am

Mon Oct 14, 2024 7:04 am

For now, the best will be shutting down the VM during conversion, before the snapshot merge. The safest one will be converting the VM offline.
Post Reply