Steps are pretty straight forward.
Step-1:
Under > Webmin > Networking > Network Configuration > Network Interfaces
You need your VM or server console access. Update the new IP with the old one from the correct interface. You will lose the connection. Reboot the server and re-login to webmin/virtualmin interface.
Step-2
Virtualmin > Addresses and Networking > Change IP Addresses > Change Real Address and simply inserting the new primary IP there.
It’ll take a while to update records of the old IP to the new one.
You’re done.