Install Google Cloud's CLI, gcloud
, on your machine: https://cloud.google.com/sdk/downloads
Just grab a version and wget
it. Then run instructions on the website to install.
Install gsutil
: pip install gsutil
.
Authenticate: gsutil config
.
- On Google Cloud, go to "Compute Engine", then "VM Instances". Click on "Create Instance".
- Select
us-east1-c
orus-east1-d
region (have GPUs), - For
Machine Type
, clickcustomize
and set number of GPUs and CPUs, - For Disk Type, choose Ubuntu 16.04 with e.g. 40 GB SSD drive,
- Create the instance and wait for it to boot up,
- Setup the correct firewall rules on your own machine:
gcloud compute firewall-rules create default-allow-ssh --allow tcp:22
, - SSH into the machine with your browser (easiest) or connect from your machine with
gcloud compute ssh --zone <zone> <instance>
.
To set up port forwarding between your local machine and the VM, use these flags for the gcloud compute ssh
flags:
--ssh-flag='-L' --ssh-flag='8000:127.0.0.1:6006'