Managing the VM

There are several operations that you will want to do as you start working with a VM on Google Compute, such as starting instances, stopping instances, resizing and modifying disks, and taking snapshots. We go over the most important ones:

  1. Start and shut down the VM:
$ gcloud compute instances start sparrow --project packt-gcp $ gcloud compute instances stop sparrow --project packt-gcp
  1. Check the VM status:
$ gcloud compute instances list --project packt-gcp

The instance we started with is an f1-micro with not-enough CPU, RAM, or disk space for a real-world data science project. We want to change the underlying machine and augment its disk space. But, before that, we should take a snapshot of our current machine as a backup. ...

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.