Keep ID argument
Added an argument for preserving the source ID of the VM if possible. Raises an error if ID is already in use.
Also refactored the get_vmids() function while splitting it, as it had a bug, not using valid VM IDs (>= 100 < FIRST_USED_ID).
What would be a nice extension to this patch would be a way to specify a new base id for migrated VMs. (which for a single move would be a way to specify the new ID for the VM)
@engelant: will you be working on this?
@wdoekes : Sorry, but I don't hava a dev environment of two proxmox instances anymore. This was the patch I used for myself at the given time to transfer a server.
I understand :+1: