What is the way to change the machine name in k8s cluster running with HyperKit driver

I am trying to fix an issue related to renaming the machine name in k8s and the docker way is easy -
‘docker rename old name newname’
I am getting this addressed in code. I am trying to do this by stopping the cluster and then changing. I beleive that i am doing the right thing here.

how to achieve the same for HyperKit , kvm and virtualBox and VMware.
Any insight about the binaries and how it works etc…; could be helpful

Thank you