LAB 06 ‐ Instance Creation - gautam-amitesh/OCI GitHub Wiki

Instance

In terms of OCI an Instance is a virtual machine running in the cloud powered by the servers of Oracle. Hence it is the server where we deploy and run our applications, websites or databases.

Navigation

Navigation menu > Compute > Instances

Creation

  1. On the Instances page click Create instance

  2. Give the name for the instance and select the compute service compartment

  3. In Placement section choose any one availability domain

  4. Click on Advanced options and select prefered capacity type

  • Industry preference: On-demand capacity we pay only for services we use

  1. Select Fault domain I'm leaving it for the OCI to choose right FD for the instance

  2. Inside Image and shape

  • Image: OS of the server
  • Shape: Hardware resources allocated to an instance
  • Click Change image

  • On Select an image page select a OS and its version (second latest version is recommended for stability) and click Select image

  • Click Change shape

  • On Browse all shapes page select Instance type and Shape series (AMD recommended)

  • Configure hardware resources

    • Click Expand button

    • Select Shape build (Number of OCPUs and Amount of memory (GB)) then click Select shape

  1. Click Next

  2. Click Next

  3. 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

  4. Do same thing for Subnet selection, select network service compartment for Subnet compartment and then in Subnet selection dropdown select public subnet

  • bastion: it tells we are using it to connect to the internet

  1. Inside Private IPv4 address assignment select Automatically assign

  2. Add SSH keys

  • to connect to the instance we need both SSH key pair public key and private key (asymmetric keys: different from each other)

  • first time when we are creating instance we generate key pair and download which is downloaded in .pem (Privacy-Enhanced Mail) format but while trying to login we need .ppk (PuTTY Private Key) format of key

  • next time while creating instance we can use same key pair by choosing second option

  • click Next

  1. 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.

  1. Review all the details and click Create