Note:
- This tutorial requires access to Oracle Cloud. To sign up for a free account, see Get started with Oracle Cloud Infrastructure Free Tier.
- It uses example values for Oracle Cloud Infrastructure credentials, tenancy, and compartments. When completing your lab, substitute these values with ones specific to your cloud environment.
Create Your First Linux Compute Instance Using Oracle Cloud Infrastructure
Introduction
In this tutorial, we will go through the process of creating a free Oracle Cloud Infrastructure (OCI) Compute instance, which can be a Workload or Virtual Machine (VM), based on Linux.
When we create a free trial OCI account there will be a tenant, a root compartment, a virtual cloud network (VCN) and Internet Gateway will be created by default. In the following image, we will be creating the compute instance inside the VCN.
Objective
- Create your first Linux Compute instance using the OCI Console.
Create a New Compute Instance
We are going to create a new Linux Compute instance inside a new OCI tenant.
-
Log in to the OCI Console.
- Notice that it is a free trial mode, so there will be some limitations.
- Click the hamburger menu from the upper left corner.
-
Click Instances from the home menu.
-
In the Instances page, select the compartment to create instance.
- Select the root compartment.
- Click Create Instance.
-
In the Create compute instance page, enter the following information.
- Enter a Name for the new instance.
- Scroll down to see the other options.
-
Review the options and keep everything default and scroll down.
-
In the Add SSH Keys section, enter the following information.
- In order to access and manage this Linux instance we need to work with SSH Keys. For now select Generate a key pair for me to let OCI generate a new SSH key pair.
- Download the private and public key on your local computer so that we can use these to access and manage the Linux instance.
- Scroll down to review the other options.
Make sure to download the private and public key on local computer so that we can use these to access and manage Linux instance.
-
Click Create to create the new Linux instance.
-
Review the status that will start with
PROVISIONING
.Within a few seconds we can see instance access information that we will need to access the instance.
- Username.
- Public IPv4 addresses.
After sometime the instance shows
RUNNING
status and we can log in to the instance, perform some management tasks and start installing applications. -
Use the breadcrumbs to go back to look at the instance overview.
-
In the Instances page, we can see all deployed instances.
Next Steps
We are able to successfully create a new Linux compute image that can be used to install applications in a later phase.
Acknowledgments
- Author - Iwan Hoogendoorn (OCI Network Specialist)
More Learning Resources
Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.
For product documentation, visit Oracle Help Center.
Create Your First Linux Compute Instance Using Oracle Cloud Infrastructure
F93390-01
February 2024
Copyright © 2024, Oracle and/or its affiliates.