Intro and creating a virtual machine - Google Cloud Tutorial




Welcome everyone to a tutorial series on Google Cloud. With Google Cloud, we can do things from running a typical virtual machine, to doing various machine learning tasks like analyzing text, speech, and imagery.

To begin, we're going to launch a virtual machine. The user interface to do this may change slightly in time but I expect the process to remain mostly the same.

The first thing you need to do is create an account. As of March 2017, if you create a new account, you should get $300 in free credit to explore the service.

Once you have an account, and you log in, click on the "console" link in the top right. This takes you to your, big surprise, console! If you just created a trial account, then you probably already have a project started/created for you. To see, check here:

python tutorials

In my case, I have a project called "Tutorials." If you don't, then click on the drop down, and then create a new project.

Next, we can click on the hamburger icon to bring over a sidebar. Now, under the "compute" header, choose "Compute Engine." The compute engine is Google Cloud's virtual machine. When here, click to create an instance. Choose a name, then choose a zone. Note that various zones will have various costs per hour. Feel free to check a few to see what the cheapest option is.

Our next choices are our Machine Type. Here, we can pick the processors and memory, including GPUs if we like. Click on customize, then slide the cores all of the way to the left, which will give you 1 shared CPU. This will be enough for you to follow along this miniseries for a while, but feel free to go larger if you'd like. If you did want GPUs, note that they are currently only available in certain zones.

Once you're happy with your machine type, you're ready to choose your boot disk. You can go off the default if you like, but I am going to customize mine to be Ubuntu 16.04. While here, note that this is also where you can change your disk type (solid state or standard, and what size).

After this, you've made all of the changes that will affect your price. You can see your monthly price on the right. You can click on the "more" option below to see the price broken down to see where you're costs are. Next, we can configure access to the server. You do not need to actually configure this to follow along here, but it can be useful. Setup of remote access differs by operating system and setup. If you're on a windows machine, see the video around 6:53 in. On Windows, Linux, or MacOS, you can also view the Google Cloud documentation for remote access. You can also just simply access your server via browser after you create it, which is also just fine, and super simple. To connect via your browser, you create the server, then click under the connect heading on the drop down arrow, and then you can choose to "open in browser."

At this point, you're all set with your Google Cloud virtual machine. You can do whatever you want at this point, but, if you continue here, we're going to begin digging into the Google Cloud APIs for things like image and language analysis.

The next tutorial:





  • Intro and creating a virtual machine - Google Cloud Tutorial
  • Setting up API and Vision Intro - Google Cloud Tutorial
  • Vision API continued - Google Cloud Tutorial
  • Natural Language API - Google Cloud Tutorial
  • Translation API - Google Cloud Tutorial