Distributing pvesh for use from outside proxmox boxes

sjmudd

Member
Feb 6, 2022
5
0
6
61
Madrid, Spain
I like the idea of pvesh as it allows a simplified, unified management of proxmox remotely.
Yet I do not see a separate package available for usage on other remote, non-proxmox boxes.

What's the recommended way to use pvesh on such a non-proxmox box, or configure and install it for such usage?

Context:

I'm experimenting with proxmox at home to provide a simpler container/vm experience to my previous adhoc usage.
I like kubectl and similar tools and I would like to avoid logging into the cluster directly to manage it, but to manage it once it's up exclusively (if possible) via the API using something like pvesh.
If there's a better way of doing this please point me in the right direction.
The GUI is great but that's a manual process and ssh'ing onto the proxmox server itself is somewhat cumbersome.

Thanks for any thoughts on this.
 
I tried copying over the pvesh script but wasn't sure of the cleanest way to pull over all the required perl modules. Some of them are clearly from proxmox but others are "system" perl packages so really need installing via system package management. (target box to run pvesh on is centos 8 stream). If there are instructions on how to install pvesh plus dependencies pointing me at them would help a lot.
 
This looks like it might be a good answer: https://metacpan.org/dist/App-FatPacker/view/bin/fatpack

However, I tried it but wasn't able to make it build a single perl script with all dependent modules included.
I have seen other similar approaches. For example Percona Toolkit does this as can be seen here. So it's clearly possible. That would make using the pvesh more straight-forward on any box which would be good.

Could someone also point me at which repo the pvesh script is kept in? I see that the proxmox project on github has 64 repositories and doing a search for pvesh showed nothing.

Thanks.