Create a Deep Learning VM instance by using the Google Cloud console

This page shows you how to create a Deep Learning VM Images instance by using Google Cloud Marketplace in the Google Cloud console.

Before you begin

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  5. Make sure that billing is enabled for your Google Cloud project.

Create a new instance

  1. Go to the Deep Learning VM Cloud Marketplace page in the Google Cloud console.

    Go to the Deep Learning VM Cloud Marketplace page

  2. Click Launch. If you see a project selection window, choose the project in which to create the instance. If this is the first time you've launched a Compute Engine VM, you must wait for the initial API configuration process to complete.

  3. On the New Deep Learning VM deployment page, enter a Deployment name. This will be the root of your virtual machine name. Compute Engine appends -vm to this name when naming your instance.

  4. Select a Zone, or keep the default.

  5. Under Machine type, select the specifications that you want for your VM, or keep the default.

  6. Under GPUs, select the GPU type and Number of GPUs, or keep the default values. If you don't want to use GPUs, click the Delete GPU button.

  7. You have the option to select Enable access to JupyterLab via URL instead of SSH (Beta). Enabling this Beta feature lets you access your JupyterLab instance using a URL. Anyone who is in the Editor or Owner role in your GCP project can access this URL. Currently, this feature only works in the United States, the European Union, and Asia.

  8. Select a machine learning Framework, or keep the default.

  9. Click Deploy.

You've just created your first Deep Learning VM instance. After the instance is deployed, the Google Cloud console opens the Deployment Manager page where you can manage your Deep Learning VM instances and other deployments.

Access your new instance

Once you've created your Deep Learning VM instance, it starts automatically. To access it:

  1. Go to the VM Instances page in the Google Cloud console.

    Go to the VM Instances page

  2. Under the Name column, click the name of your virtual machine instance.

  3. In the Remote Access section, click the first drop-down list and choose how you'd like to access the instance. You can choose to interact with a graphical user interface or on the command line.

    A VM instance's Remote access drop-down menu. (click to enlarge)

Compute Engine will propagate your SSH keys and create your user. For more information, see Connecting to Instances.

Stop the instance

  1. Go to the VM Instances page in the Google Cloud console.

    Go to the VM Instances page

  2. Select the checkbox next to the Deep Learning VM instance.

  3. Click Stop.

Start the instance

After an instance is created, the instance starts automatically. To start the instance manually when it's stopped:

  1. Go to the VM Instances page in the Google Cloud console.

    Go to the VM Instances page

  2. Select the checkbox next to the Deep Learning VM instance.

  3. Click Start.

Clean up

To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.

  1. Go to the Deployments page in the Google Cloud console.

    Go to the Deployments page

  2. Select the checkbox next to the Deep Learning VM deployment.

  3. Click Delete.

What's next