aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Computing

Let’s Build A Linux Virtual Machine

  • aster.cloud
  • May 1, 2023
  • 3 minute read

Creating a virtual machine (VM), a computer you can use without needing to purchase, set up, or keep around, is one of the most basic functions of the cloud. You can rent as many computers as you need and delete them when you’re done with them.

But VMs are only a benefit if setting up a virtual machine is easy. In Google Cloud, creating a VM is done with the Compute Engine service. There’s a short (probably under 5 minute) interactive tutorial to get you started. I’ll explain what’s going on in that tutorial here, but you should walk through the tutorial as well to see all of the exact steps.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

Once you’ve finished this tutorial, be sure to check the references to learn more about creating and using VMs.

Selecting a project

Everything in your application will be in a project, so you’ll either need to create or select a project to do this tutorial in. Projects need to be associated with a billing account, so if you don’t have one, consider signing up for the Free Trial. You’ll start in the Cloud Console.

Enabling APIs

Normally you will go to APIs and services from the Navigation menu to enable the Compute Engine API, but the tutorial will let you do this by just clicking a button. If you’ve already enabled the Compute Engine API for a project, you won’t need to enable it again.

Creating a VM

In this tutorial, you’ll create a Linux VM. (Don’t worry; if you want a Windows VM, there’s a tutorial for that too!) From the Navigation menu, select Computer Engine. By default, you’ll go to the first item in the submenu, which is VM instances.

Read More  Amazing Federated Multicloud Apps

You can then click Create instance to create a new VM. You’ll notice there are a lot of options, allowing you to change the name, the machine configuration, the boot disk, and far more. As you change options, notice how the price for the VM changes in the upper right of the screen.

Figure 1-Some of the many VM options available

The tutorial will give you suggested changes to make to change the operating system and allow HTTP traffic. These options can be seen further down the options screen, as shown in Figure 2. It will also help you find the right places to enter this information–the first time you see these screens they may be a bit overwhelming!

Figure 2 – More of the VM options

There are a variety of different operating systems available as shown in the Boot disk section (Figure 3). Once you’ve selected an operating system, you may also need to select the particular version of that OS. For operating systems with a licensing fee, that fee will be included in the price of the VM. Try some out and see how the price changes.

If you already know what your memory and CPU needs are, we have a tool that will help you pick the best options for your VM. It takes quite a few factors into consideration beyond just those, such as how much performance fluctuations matter and your preferred type of processor. Give it a try!

The boot disk section also gives you the ability to use custom images, snapshots, and existing VMs to create your image. You can find out more about these in the reference section.

Read More  Bi-Directional Replication For Cloud SQL For PostgreSQL Using Logical Replication

Figure 3 – Some of the built-in OS options

Connecting to the VM

Once you’ve set the options, select Create, which will return you to the VM instances page, as shown in Figure 4. Once there’s a checkmark next to the VM, it’s ready to go. You can access it by going to the Connect column of the instance information and click SSH. It will then open in a new browser window. At this point you can administer the machine, set up accounts, install software, etc. just as you’d do with any Linux machine. You’re already set up as a superuser of the machine.

Figure 4 – The VM instances page

Cleaning up

There is a charge to both keep a VM running and to store its boot disk. You can stop the charge to run the VM by selecting it on the VM instances page and then clicking stop. If you won’t be using this VM again, you can select the VM and press Delete instead.

Yes, the tutorial shows you exactly how to do this!

While there are lots more details about Compute Engine, you’ve got the big picture now. Go do something creative and useful with it!

By: Laurie White (Developer Relations Engineer)
Originally published at: Google Cloud Blog

Source: Cyberpogo


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • Compute Engine
  • Linux
  • Tutorial
You May Also Like
View Post
  • Computing
  • Multi-Cloud
  • Technology

Reliance on US tech providers is making IT leaders skittish

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

Examine the 4 types of edge computing, with examples

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

AI and private cloud: 2 lessons from Dell Tech World 2025

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

TD Synnex named as UK distributor for Cohesity

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

Broadcom’s ‘harsh’ VMware contracts are costing customers up to 1,500% more

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

Weigh these 6 enterprise advantages of storage as a service

  • May 28, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

Pulsant targets partner diversity with new IaaS solution

  • May 23, 2025
View Post
  • Computing
  • Multi-Cloud
  • Technology

Growing AI workloads are causing hybrid cloud headaches

  • May 23, 2025

Stay Connected!
LATEST
  • 1
    Just make it scale: An Aurora DSQL story
    • May 29, 2025
  • 2
    Reliance on US tech providers is making IT leaders skittish
    • May 28, 2025
  • Examine the 4 types of edge computing, with examples
    • May 28, 2025
  • AI and private cloud: 2 lessons from Dell Tech World 2025
    • May 28, 2025
  • 5
    TD Synnex named as UK distributor for Cohesity
    • May 28, 2025
  • Weigh these 6 enterprise advantages of storage as a service
    • May 28, 2025
  • 7
    Broadcom’s ‘harsh’ VMware contracts are costing customers up to 1,500% more
    • May 28, 2025
  • 8
    Pulsant targets partner diversity with new IaaS solution
    • May 23, 2025
  • 9
    Growing AI workloads are causing hybrid cloud headaches
    • May 23, 2025
  • Gemma 3n 10
    Announcing Gemma 3n preview: powerful, efficient, mobile-first AI
    • May 22, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • Understand how Windows Server 2025 PAYG licensing works
    • May 20, 2025
  • By the numbers: How upskilling fills the IT skills gap
    • May 21, 2025
  • 3
    Cloud adoption isn’t all it’s cut out to be as enterprises report growing dissatisfaction
    • May 15, 2025
  • 4
    Hybrid cloud is complicated – Red Hat’s new AI assistant wants to solve that
    • May 20, 2025
  • 5
    Google is getting serious on cloud sovereignty
    • May 22, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.