Hello,
Now that we have zfs in proxmox (and just announced zfs sync tool) I've been toying with the idea of migrating VMs using zfs send/receive.
Here's the basic idea:
1. Snapshot VM
2. Do initial send to the target host
3. Suspend VM
4. Do final send/receive
5. Transfer VM config
6. Start VM on target host suspended.
7. Transfer VM state to the target host
8. Kill VM on source host
9. Load transferred state and resume VM on target host
10. Clean up snapshots and configs
What if VM image is large and changes a lot during initial send? It could be snapshotted again after initial send and then send incremental snapshot. This way final sync wouldn't take long and VM would be suspended only short time.
VM snapshots (taken in GUI or CLI) should be transferred also but I guess it should be doable.
SR
Now that we have zfs in proxmox (and just announced zfs sync tool) I've been toying with the idea of migrating VMs using zfs send/receive.
Here's the basic idea:
1. Snapshot VM
2. Do initial send to the target host
3. Suspend VM
4. Do final send/receive
5. Transfer VM config
6. Start VM on target host suspended.
7. Transfer VM state to the target host
8. Kill VM on source host
9. Load transferred state and resume VM on target host
10. Clean up snapshots and configs
What if VM image is large and changes a lot during initial send? It could be snapshotted again after initial send and then send incremental snapshot. This way final sync wouldn't take long and VM would be suspended only short time.
VM snapshots (taken in GUI or CLI) should be transferred also but I guess it should be doable.
SR