Repository navigation
Lab 8 ‐ Instance Creation
In OCI (Oracle Cloud Infrastructure), an Instance is a virtual machine that runs on Oracle's cloud servers. It acts like a virtual server where we can deploy and run applications, websites, and databases.
-
Click on - Navigation menu > Compute > Instances
-
Creation On the Instances page click Create instance
- Select Compartment and mention name for instance
- In this section choose any availability Domain
- Click Advanced Options and select the preferred Capacity Type.
Industry Preference: On-Demand Capacity – We pay only for the resources and services we actually use.
- Select Fault domain
- Image and Shape
- On the Select an image page, choose the required OS and version. The second-latest version is recommended for better stability, then click Select image.
- Click Change shape
- On Browse all shapes page select Instance type and Shape series
- Configure hardware resources
- Click on Next Button
- Click on Next
- On Networking page under Primary network choose Select existing virtual cloud network and inside Virtual cloud network compartment select network service compartment it will automatically select VCN from that network service compartment
- For Subnet, select the Network Service Compartment under Subnet Compartment. Then, from the Subnet dropdown, select Public Subnet.
Bastion: It is used to securely connect to private resources without exposing them directly to the internet.
- Inside Private IPv4 address assignment select Automatically assign
- Add SSH Keys
To connect to an instance, we use an SSH key pair consisting of a public key and a private key. These are asymmetric keys because they are different from each other. When creating the instance, generate the key pair and download the private key in .pem format. For PuTTY, the private key needs to be converted to .ppk format before logging in.
- next time while creating instance we can use same key pair by choosing second option
-
click Next
-
On Storage page we usually do nothing click Next Boot volume: A boot volume is a detachable device that contains the image used to boot the compute instance.
- Review all the details and click Create