Also relevant: https://github.com/bin456789/reinstall
My go-to script to "re-image" a VPS with whatever image of Windows or Linux distribution. It supports:
* Windows to Linux * Linux to Windows * Linux to Linux * Windows to Windows
Also arbitrary .ISOs and disk images.