-
gcutil addinstance --image=windows-server-2008-r2-dc-v20140609 --zone=europe-west1-windows --machine_type=n1-standard-1 source-windows
-
Provide a password for the gceadmin account of your Windows instance(s):
-
wait about 10-15 minutes
-
confirm that the instance is completely up: gcutil getserialportoutput source-windows output should end with:
------------------------------------------------------------- Instance setup finished. source-windows is ready to use. -------------------------------------------------------------
-
use RDP to login and customize your instance
-
addsnapshot --source_disk=source-windows snap-windows
-
wait till the addsnapshot opration completes with similar: Table of resources: source-windows | READY Table of operations:
+---------------------------------------------------------+--------+-------------------------------+----------------+ | name | status | insert-time | operation-type | +---------------------------------------------------------+--------+-------------------------------+----------------+ | operation-[xxxxx]| DONE | 2014-[xxx] | createSnapshot |
-
Create a new disk from the snapshot gcutil adddisk --source_snapshot=snap-windows --zone=europe-west1-windows win1
-
wait till Table of resources: win1 | europe-west1-windows | READY | 100
-
create the clone instance gcutil addinstance --disk='win1,mode=rw,boot' --zone=europe-west1-windows --machine_type=n1-standard-1 win1
wait another 10-15 minutes till the new instance is up similarly to the first one query gcutil getserialportoutput win1 to verify the state