Hi all,
We are testing Proxmox installation for our company QA cloud and we need a way to execute a command onc after new VM was created.
It is required for QEMU port redirection since setting redir option is not available on GUI and we are using Proxmox simple NAT and only need 1 port on every VM to be available externally.
Is there a way to hook to proxmox vm post-create event (trigger) and execute a binary with vm id as an attribute? This script will call something like qm set 102 -args "--redir tcp:30102::3389" to set a required option.
As an alternative approach I was thinking about watching fs file create events under /etc/pve/qemu-server/ path, but I don't think it's a right way for doing that.
Thank you!
We are testing Proxmox installation for our company QA cloud and we need a way to execute a command onc after new VM was created.
It is required for QEMU port redirection since setting redir option is not available on GUI and we are using Proxmox simple NAT and only need 1 port on every VM to be available externally.
Is there a way to hook to proxmox vm post-create event (trigger) and execute a binary with vm id as an attribute? This script will call something like qm set 102 -args "--redir tcp:30102::3389" to set a required option.
As an alternative approach I was thinking about watching fs file create events under /etc/pve/qemu-server/ path, but I don't think it's a right way for doing that.
Thank you!