We earn commission when you buy through affiliate links.
This does not influence our reviews or recommendations.Learn more.
Duplicating your VM is an excellent way tofast-trackyour project without human error.
There are somereasonsyou may want to clone your VM for a quick software setup.
Update: Google has made it a lot easier now to clone the VM.
Create Similar Approach
Much easy!
The following I wrote when the CREATE SIMILAR button didnt exist.
This is two steps process.
First, where you create asnapshot,and next, you use that snapshot tocreatea VM instance.
you’ve got the option to do this while VM is running.
This will ensure you dont have anydowntimeand have the same replica of the existing VM.
you’ve got the option to see the newly created snapshot in the list.
Now, its time to create an instance from the snapshot.
You may also need to select firewall configuration as if you want to allow HTTP or HTTPS traffic.
To confirm the VM is cloned with the data, log into newly created VM, and verify.
I found this is the quickest way to ensure VM on Google Cloud Platform isduplicated.
If you are interested in learning GCP, then I would recommend taking thisArchitecting with Google Cloud course.