Through which of the following ways can you create a VM instance in Compute Engine
After learning how to create Virtual Machine instances on Azure and AWS, let’s understand how you can set up your cloud environment with the third popular cloud platform – Google Cloud Provider (GCP). Show
You can create an instance on GCP in one of the three ways –
In this blog, we will create a VM instance using Google Cloud Console. Before doing that, let’s understand different types of machines for creating instances along with their memory and CPU capacities that can help you decide your ideal configuration based on your business needs. What are the Different Machine Types for Creating Virtual Machine Instances?Following table lists the various available machine types along with their applications. Each of the Machine Type families is designed to take care of a specific category of workload effectively. Machine TypeRecommended WorkloadApplicationsGeneral Purpose – E2Day-to-day computing with low costApp serving, web serving, small-medium databases, back-office applications, development environments, virtual desktops, microservicesGeneral Purpose – N1, N2, N2DBalanced price/performance across a wide range of VM shapesApp serving, web serving, medium-large databases, back-office applications, media/streaming, cacheMemory-Optimized – M1, M2Ultra high-memory workloadsIn-memory analytics, large in-memory databases such as SAP HANACompute-Optimized – C2Ultra-high performance for compute-intensive workloadsElectronic design automation, HPC, single-treaded applications, gamingFollowing table gives a comparison of machine types for memory, CPUs Machine TypeMemory (per vCPU) (GB)vCPUsGeneral-purpose (E2)0.5-82-32General-purpose (N2)0.5-82-80General-purpose (N2D)0.5-82-224General-purpose (N1)0.95-6.51-96Compute-Optimized44-60Memory-Optimized ultramem2440-416Memory-Optimized megamem2496E2 shared-core40.25-1N1 shared-core3.0-3.40.2-0.5After getting to know about the machine types, let’s understand the steps to create a VM on GCP. Steps to Create VM Instance on GCPFor creating an instance on GCP, you should have the login credentials of Google Cloud Platform as an administrator. Step 1Log in to Google Cloud Console. Step 2Click on ‘Navigation Menu’ and select ‘Compute Engine’ -> ‘VM instances’. Step 3If you are creating the instance for the first time, you will be prompted to create a project. Each instance belongs to a Google Cloud Project, which can have one or more instances. Enter your project name (e.g., ‘My Project 73416’), select Billing Account, and click on the ‘Create’ button. Or, if you already have a project, select it and continue. Step 4Your selected project name will appear in the top bar of the screen. Click on the ‘Create’ button of the ‘Compute Engine – VM Instances’ pop-up window, and the ‘Create an instance’ screen will appear. Step 5Type an instance name as an identifiable name for your instance (e.g., Instance 1). Step 6Next, select the ‘Region’ and ‘Zone’. Please note that these are permanent settings and hence, need careful consideration while selecting them. Step 7Select the required machine type based on your requirement and the table mentioned above. A General Purpose VM can work for Windows Server instance, which we are planning to create now. On the other hand, higher workloads such as databases demand memory-optimized VMs. Step 8Select the ‘Boot Disk’ by selecting the required operating system. As we are creating ‘Windows Server’, click the ‘Change’ button. From the ‘Boot Disk’ pop-up window, select the ‘Operating System’ as ‘Windows Server’ and ‘Version’ as ‘Windows Server 2019 Datacenter Core’ and click on the ‘Select’ button. Step 9Select if you need API access and Firewall exceptions. These are optional choices. You can give access to your VM to a specific group, individual, or everyone in the organization. Application development primarily needs API access. The firewall settings will dictate whether the VM will be accessible via internet protocols HTTP and HTTPS. Step 10Click on the ‘Create’ button. The VM creation and deployment process will take a couple of minutes. The created VM is listed on the Google Cloud Platform console page. The above steps guide you through creating Google Cloud instance for Windows. Similarly, you can create GCP instances for other operating systems. Should you need assistance, WaferWire Cloud Technologies can be your next stop for the right guidance. We have the right expertise and experience to suggest the best fitting cloud solution and configuration for your cloud adoption. Get in touch today, and we will be happy to help. What are the common methods of deploying software onto a Compute Engine VM instance?How deploying containers on Compute Engine works. The common methods of deploying software onto a Compute Engine VM instance include: Deploying software on VM boot using a startup script or cloud-init. Creating a custom boot disk image with software pre-installed.
Which command is used create a virtual machine in GCP?Create a new instance with gcloud. Instead of using the Cloud Console to create a virtual machine instance, you can use the command line tool gcloud , which is pre-installed in Google Cloud Shell.
Can you create Compute Engine virtual machines from the command line?True or false: You can create Compute Engine virtual machines from the command line. True! It's advantageous to create virtual machines from a command line when you want their configurations to be scripted and repeatable.
What are VM instances used for?A VM is a virtualized instance of a computer that can perform almost all of the same functions as a computer, including running applications and operating systems. Virtual machines run on a physical machine and access computing resources from software called a hypervisor.
|