Optimal way of renaming VMID consecutively

billybob

New Member
May 3, 2022
8
1
3
Over the years, my VM & Containers ID have been become non-consecutive (ie: VMID are 100, 105, 115, 117, etc.). I would like to ideally run a script that would take each of the VM/CT and rename them consecutively. Of course, manual way would be to clone and redeploy each VM/CT but that's cumbersome. Surely there's gotta to be a better way to renumbering the VMIDs. So the question is, is there a good way of renumbering the VM/CT?

Thanks!