質問

I have a simple script on my CentOS VM. My goal is to have it run every time the snapshot is brought up. The only information I can find is regarding the running of it at boot, which I presume is not the same for bringing up a snapshot.

Does anyone know how I might be able to achieve this?

役に立ちましたか?

解決

Unfortunately your VM will have no idea that it was rolled back to a snapshot. You could build an app/script which uses vCenter API to look for a rollback event and then triggers the relevant scripts on target guest.
That's an entirely different question though as it could be implemented in many ways.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top