Question regarding ressources (rgmanager / cluster.conf)

Yannick

New Member
Aug 14, 2013
15
0
1
Hi all,

Is it possible to associate a script to a VM using ressources in cluster.conf.
I read some docs about rgmanager and ressources, but it seems that pvevm is a "specific" resource embedded in proxmox

So is it possible to modify cluster.conf to add a resource script linked to one or more HA VM (KVM).
reference: https://access.redhat.com/documenta...resource-params-CA.html#tb-script-resource-CA

My goal is to execute a script that run some command when a VM is migrating (on node fail or manual migration).

Thanks for help,
Yannick
 
perhaps by adding a child ressources like

Code:
<rm>
    <pvevm id="100" autostart="1">
        <script name="myscript" />
    </pvevm>
</rm>

This could be work ?
Yannick
 

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!