Remote API - Change KVM OS


I’m trying to change KVM operating system (ex. from Debian to centOS).
Can you provide any kind of guide?
I thought something like


would do that but I was wrong. Should I empty the system first?

Another thing is that I can run the commands above only as root. By using another user (ex api_user) I get: “You are not allowed to perform the action : Edit system”.
Is there a way to give permissions and fix this?

Any tips are highly appreciated.
Thanks in advance.

Kind regards,


hostdog web services


I ended up deleting and re-creating the VPS.
The only problem is that I can not set the IPv6 via the IP to be the same.