Delete project from Google Developer Console


Delete Compute Engine Instances


  1. Login with gmail id where instances are located.


  1. Select Project


  1. Search for compute engine



  1. Select Instance name and click stop and then delete.


Deleting DB instances


  1. Search for SQL




  1. Select Instance name and click delete




Release Reserved IP Addresses


  1. Search for external IP addresses




2) Select the IP address with Type ‘Static’ and click on ‘Release Static IP address

Delete Project


Delete the project.



Access Google Instances SSH, WinSCP and RDP
Use One of the following methods :-
  1. SSH from Developer Console
  2. Using WinSCP
  3. RDP Windows Server
  1. SSH from Developer Console

2) Gmail Account Login
3)  Select Compute Engine Project
4) Click On compute
5) Check Running Instances Compute -> Compute Engine -> VM Instances
6) SSH or RDP into instances
7) Click on SSH to any of instance.
8) Done
2) Using WinSCP
To access instance using WinSCP we have to generate Public and Private SSH keys.
Public Keys : saved on Google Compute Instance
Private Keys : saved in local WinSCP software to access instance
Generating Public and Private Keys
2) Run and click on Tools.
3) Click on Generate and wait for a while to generate keys
4) Save Private key
5) Load Saved private key and provide user name in “Key Comment”
6) Go to Compute > Compute Engine > VM Instances  page of your project on Google Developers Console.
7) Go to SSH Keys section and click Add.
8) Paste contents of the clipboard to Enter entire key data box .
9) Click on Save.



Login into instance using WinSCP
2) Install WinScp and Run. Provide username (email without @) and password (email  password).
3) Click on Advanced.. Button and go to SSH. Click on Authentication and select the private key file with ..ppk extension
5) Click Ok -> Save -> Login.
3) RDP Windows Server
Two methods :
  1. mstsc
  2. From Developer Console
  1. mstsc
  • Open Run  (Windows + R) and type mstsc
  • Provide IP Address
  • Provide username and password
   2. From Developer Console
  • Open developer console as described above.
  • Go to Compute -> Compute Engine -> VM Instances
  • Click on RDP corresponding to WIndows Server Instance


  • This will install “Chrome RDP for Google Cloud Platform” extension to GoogleChrome.


  • Provide the IP address and connect

  • Enter username/password and click OK
  • Done


Google Compute Engine : Move VM Instance from One Project to Other
In the previous post we have learned how you can change your machine type of running VM instance on Google Compute Engine. This post will guide you how you can move your running instance from one project to some other project.

Steps :-

1) We need to make image of instance and copy it on Google Bucket. For this SSH into instance that you want to move.
 Developer Console -> Compute Engine -> VM Instance -> SSH (any-instance)

2) Make temporary directory to copy the image of running instance

sudo mkdir /mnt/tmp
3) Now list the drives
ls -l /dev/disk/by-id/google-*

4) Check disk that you want to export to bucket (as we are moving instance and it is mostly installed on sda)

5) As we are going to create image on temporary folder so there must have enough space for new image file. For this we can mount non persistent disk if not enough space on prime drive (sda). In case you don’t have external disk you can create new one from Developer Console and attach it to running instance.

6)  The following command will format and mount the external non persistent disk (sdb)

sudo /usr/share/google/safe_format_and_mount -m "mkfs.ext4 -F" /dev/sdb /mnt/tmp 
7) Now using imagebunde package create image of vm instance
sudo gcimagebundle -d /dev/sda -o /mnt/tmp/ --log_file=/tmp/abc.log 
8) Now check the new tar file in location
   ls -l /mnt/tmp
9) To export this on Google Bucket we need to provide owner permission to service account. For this check the service account by this command
curl "http://metadata/computeMetadata/v1/instance/service-   accounts/" -H "Metadata-Flavor:Google"
10) Now provide this service account the owner permission on Google Bucket from Developer Console


11) Change the permission of your newly created image (tar file)



chmod u=rwx,g=rwx,o=rwx      mnt/tmp/d0e9184d539ae7c0274590942ef05af13450.image.tar.gz

12 ) Copy this tar file to Google Bucket using

gsutil cp /mnt/tmp/d0e9184d539ae7c0274590942ef05af13450.image.tar.gz gs://bucket_name

13 ) Check this file on Google Bucket and share it publicly.

14) Now under new project create a new image from Developer Console

Developer Console -> Compute Engine -> Images -> New Image -> Select image source from google bucket 

and type


15) Make an instance from Developer Console using this image created above.

Google Compute Engine : Change Machine Type of Running VM

Google Cloud Platform is a suite of public cloud computing services offered by Google. The platform includes a range of hosted services for compute, storage and application development that run on Google hardware. Google Compute Engine is one of the services that provide to create scalable, high performance and secure virtual machines running on Google hardware.
This post will guide you to update the machine type of existing running instance. For this, you have to install Google Cloud SDK.


1) Delete the instance that you want to upgrade by keeping its boot disk.

gcloud compute instances delete <instance-name> --keep-disks boot

2) Now create image from this boot disk

gcloud compute images create <any-image-name> --source-disk <instance-name>

3) Now Check Images list

gcloud compute images list

4) Now create a new instance from developer console or using gcloud compute and select your image as the boot disk.

5) Done.


You can verify this by creating a file on the instance before deleting it. And after creating a new instance from this you can verify the created file.

For more on google compute engine checkout next post.

Access MySQL using public IP of VM instance (Google Server)

If you have MySQL on VM hosted on Google server then by default it listens on the local IP address of the machine that is on localhost ( If you want to access MySQL using public IP of VM then following are some steps :

1) SSH into VM instance.

2) Go to /etc/mysql directory using

cd /etc/mysql

3) Edit my.cnf file. By default, the permissions are u=rw,g=r,o=r so we need to change its permissions to edit using

sudo chmod u=rwx,g=rwx,o=rwx my.cnf

4) Now edit this file using

vi my.cnf 

5) Under [mysqld] directive change bind-address to


6) Comment out the skip-networking

# skip-networking

7) Save my.cnf by pressing Esc and :wq and hit enter

8) Restart the Mysql service using

 etc/init.d/mysqld restart

9) Login to mysql using

mysql -u root -p mysql

10) Grant access to user using



 *.* -> database_name.tables (can provide access to particular database)
‘%’ -> IP_address (provide access to particular ip)

11) You need to open TCP port 3306 using iptables or BSD pf firewall using

/sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT

12) Add firewall rule on Google VM instance

Project Name -> Compute Engine -> Network -> Click on default Network

13) Add firewall Rule like

Provide any name and under Allowed protocols and ports -> tcp:3306;

13) Done 🙂