Have unprivileged container request snapshot/other ZFS management.

Zephyrs

New Member
May 5, 2021
15
0
1
I have a container running a workload that takes unpredictable amounts of time to finish. I would like to have it be able to notify the host when a job is finished so that it can be snapshotted. I'm wondering if there are any inbuilt tools for managing this. At a glance I have not found any.

I could cobble together a shell script that remotes into the host and requests that, but that has security implications unless I configure a user on the host with a restricted command set. I could also create a simple daemon that runs on the host to respond to these requests, but that still has similar portability problems in that it requires the daemon to be installed on the host. A third option would be to have a daemon on the host monitoring something like a .pid or log file, but that again requires special configuration on a per host basis.

I'm open to suggestions.
 

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!