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:
- Start and shut down the VM:
$ gcloud compute instances start sparrow --project packt-gcp $ gcloud compute instances stop sparrow --project packt-gcp
- 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. ...