Pre/Post-Migration Hookscripts - any status updates?

lclements0

Member
Oct 12, 2021
10
4
8
36
Looking through the forums here, it looks like some commit work took place to enable pre/post-migration hookscripts some time back in late 2022. Looking at a recent PVE 8.2 installation, however, it appears that these hooks are still not present in the QemuMigration.pm or CLI qm source files on the hosts.

Are there plans to finish and integrate this work at some point in the near future?

I've got a need to be notified when migrations occur across a PVE datacenter I help manage, and am looking at options that don't involve consistently patching after updating the underlying PVE install.

Thanks!
 
You should be able to do this via the start hookscript by checking the PVE_MIGRATED_FROM environment variable. It is set when the started VM has been migrated from another node.
 
  • Like
Reactions: fiona

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!