Can’t access from rdp after change MAC address with powershell on Google compute enginge

gcloudgoogle-cloud-platformgoogle-compute-enginewindows-server-2012

I have changed the MAC address of a Google compute engine vm. After that, I can't access from rdp to that vm any more. The vm is not pingable also. I've tried to access from serial port with no luck. It just dropped me to a SAC console and I can't revert the change from SAC. I've also tried to make a snapshot of the hard disk and create a new vm with that snapshot. The new vm can't be pingable also.

Is there any way I can do to recovery the machine or at least I can get the data on the disk?

Best Answer

If your instance cannot be directly accessed, you will need to delete it without deleting the boot disk and then attach the disk to another working instance from the same zone in order to be able to access the disk contents or troubleshoot the operating system.

The steps would be the following:

  1. Delete the VM instance without deleting the boot disk. If the instance has an ephemeral IP you wish to retain, you can promote it to static before deleting the instance.
  2. Attach that disk to another working instance from the same zone as a secondary disk.
  3. Mount the disk on that instance without formatting it.

You should now have access to the disk contents and may be able to troubleshoot your Operating System and/or recover needed data. In case that you have been able to fix your Operating System you may follow the next steps in order to recover a working instance:

  1. Unmount the disk and then detach it.
  2. Use the disk to create a new VM instance with the same characteristics (name, network, etc) as the original.
Related Topic