On Thu, Nov 12, 2020 at 09:54:52AM +0100, Mark Schouten wrote:
> I for one would really love to use qm on a cluster base, instead of
> nodes. I currently first need to find out which node a VM runs on, then
> log on to that node, and then run the qm commands.

For qm, yes. For pvesh, no.

Instead of the initially mentioned command
> for i in {123..128}; do qm snapshot $i ready ; done

just do something like
> for i in 100 101; do pvesh create nodes/dev/qemu/$i/snapshot --snapname 
> ready; done
where you replace dev with a node name of your choice. This API path is 
documented in [0].

qm snapshot is actually one of those commands that is mapped pretty directly to 
the API [1].

[0] 
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/snapshot
[1] 
https://git.proxmox.com/?p=qemu-server.git;a=blob;f=PVE/CLI/qm.pm;h=b3b9251c0ad17598beafc8763b082c6e8ab1e95b;hb=HEAD#l931


_______________________________________________
pve-user mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user

Reply via email to