Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the size of a Google Cloud virtual machine? [closed]

How does Google Cloud handle increasing or decreasing the size of a VM i.e. changing the RAM and CPU options.

Thank you.

like image 910
Craig Meltzer Avatar asked Nov 25 '14 13:11

Craig Meltzer


3 Answers

This behavior has now changed, and instances are customizable before and after creation. However, the instance must be shutdown in order to edit it and increase it's RAM or/and CPU. More information is available in this Help Center article.

like image 178
George Avatar answered Oct 20 '22 18:10

George


you can stop the instance and manipulate the memory or cpu which ever you need and start he instance after you have made your necessary changes

like image 40
xyz Avatar answered Oct 20 '22 19:10

xyz


Once a machine has been created, you cannot increase the RAM or CPU. this is only done when first instantiated.

However, there is a workaround. From the Developers Console, you will need to snapshot the existing VM disk, delete the machine, create a new one (choose the CPU and RAM according to your needs, and where it says "Boot disk" choose "New Disk from snapshot" and select the snapshot you created earlier).

I know it sounds a bit laborious but actually it is pretty straight-forward, should not take you more than a couple of minutes.

Hope this helps !

like image 38
Marius I Avatar answered Oct 20 '22 20:10

Marius I