Cross Column

Showing posts with label Oracle Cloud Infrastructure. Show all posts
Showing posts with label Oracle Cloud Infrastructure. Show all posts

Saturday, February 9, 2019

Oracle Certified Professional―How to Get Certified for Oracle Cloud Infrastructure


Was very happy to be certified as Oracle Cloud Infrastructure 2018 Certified Architect Associate.  Below I want to share my own experience on:
  • How to prepare for the certification exam (i.e. 1Z0-932)
  • How to register
    • Oracle has partnered with an external testing provider PearsonVue
  • What to expect afterwards

How to Prepare 


After working on Oracle Cloud Infrastructure (OCI) for the past four years, I have lots of hands-on experience with it.  But, based on my previous certification experience with Oracle Database and Java, I know passing the certification exam is non-trivial.

After reviewing Exam Topics (see below), I have picked up my old practice of documenting what I read like before.  Here are the list of them on this blogger:
  • Duration:  105 mins
    • I had almost run out of time.  So, don't spend too much time on any specific question which you don't have confidence with.
      • You can mark questions for later review.
  • Number of Questions: 66
    • Some of them will NOT be counted into your score.
    • Half of the exam asks questions on how to provide solutions or troubleshoot issues given very detailed scenarios
      • You need to put on thinking hat on the level of understanding similar to the above whitepapers, not just basic concepts.
  • Passing Score: 65 %

How to Register


If you're ready to take your exam, schedule it now and pay directly with a credit card, or redeem a voucher you’ve purchased from Oracle. Either way, you'll schedule it through Oracle's external testing provider, PearsonVue.

If you're an Oracle Employee, you may also get a 30% discount voucher (internal link).

What to Expect After the Exam


Within 30 mins, you should be able to find out if you pass or fail the exam from CertView.  If you pass the certification exam, you will also receive an email from Acclaim (note that you need to create a new account with it) like below:

You've earned a badge from Oracle

Oracle Cloud Infrastructure 2018 Certified Architect Associate
Issuer: Oracle
or accept your badge by clicking:
https://www.youracclaim.com/go/M6sEXm688474N984KVaYOw


Exam Topics


Identity and Access Management (IAM)

Apply core Identity and Access Management (IAM) component
Describe resource location
Design federation with various identity providers
Apply IAM, governance, and security best practices

Database

Describe OCI Database options
Explain OCI Database Operations
Architect HA and DR solutions
Managing Autonomous Database

Storage

Understand OCI Storage options
Designing storage solutions for applications and database

Compute

Understand compute and sizing
Troubleshoot options using console connections and boot volume
Architect High Availability and Disaster Recovery solutions
Describe image options

Network

Apply design concepts related to VCN components
Describe Public and Private IP addresses and virtual NICs
Apply VCN connectivity options
Understand remote network connectivity
Apply OCI Load Balancer concepts
Understand OCI Edge services
Apply OCI networking best practices

More Reading Materials


New Book:

White Papers:

Friday, January 25, 2019

OCI―Knowing Gateway Basics

An Oracle Cloud Infrastructure (OCIVirtual Cloud Network (VCN)  is a virtual version of a traditional network—including subnets, route tables, and gateways—on which your instances run.

Video 1. OCI Level 100 - Connectivity (Demo starts at 20:00; YouTube link)


Figure 1.  Sample OAC Architecture Diagram (Source: [3])

There are different kinds of gateways supported in OCI for different purposes as shown in Table 1.  Before we start, read this companion article first:
OCI―Knowing Virtual Cloud Network Basics


Gateway1 Usage
Internet Gateway
(IGW)
Public VCN <-----> Internet Gateway (Public IP address) <-------> Internet
Dynamic Routing Gateway (DRG)
On-premises network <----DRG---> Private VCN
Private VCN (region A) <---DRG---> Private VCN (region B)
NAT Gateway
Private VCN -----> NAT Gateway (Public IP address) <-------> Internet

VCN ---OK---> Internet
VCN <---NO--- Internet
Service Gateway Private VCN <-----> Service Gateway <-------> Public OCI Service (e.g. Object Storage)

No need for Public IP address on VCN or access to Internet

Local Peering Gateway2 Private VCN (region A) <-----> Private VCN (region A)

With Private IP address and Private network traffic

Table 1.  Gateways supported in OCI

Notes:
  1. Traffic between a given VCN and gateway is controlled by the VCN's route table and security lists.
    • After creating an IGW or attaching a DRG, you must add a route for the IGW/DRG in the VCN's route table to enable traffic flow.   You can watch video above for more information.
  2. Without peering, a given VCN would need an internet gateway and public IP addresses for the instances that need to communicate with another VCN.

Public IP vs Private IP


Instances use IP addresses for communication. Each instance has at least one private IP address and at least one optional public IP address:
  • Private IP address
    • Enables the instance to communicate with other instances inside the VCN, or with hosts in your on-premises network (via an IPSec VPN or Oracle Cloud Infrastructure FastConnect). 
    • Each instance receives a primary private IP object during launch. 
    • The private IP object is terminated when the instance is terminated.
  • Public IP address (optional)
    • Enables the instance to communicate with hosts on the internet.
    • A private IP can have a public IP assigned to it at your discretion.

Public Subnet vs Private Subnet


Virtual Cloud Network (VCN) is a virtual cloud network that you set up in Oracle data centers and it's private.

A subnet is a subdivision of a VCN and it can be designated as either Public or Private.  You choose this during subnet creation, and you can't change it later.
  • Public Subnet (default)
    • Instances in that subnet are allowed to have public IP addresses
  • Private Subnet 
    • Instances in the subnet have no internet access
    • Instances in the subnet are prohibited from having public IP addresses

Figure 2.  Internet Gateway (IGW) and Dynamic Routing Gateway (DRG)


Figure 3. IPSec VPN Overview

Gateways


Gateways are virtual routers which provide controlled entry points for traffic.  There are different kinds of gateways supported  in OCI and some of them are listed below: 
  • Internet Gateway (IGW)
    • Provides a path for network traffic between your VCN and the Internet
  • Dynamic Routing Gateway (DRG)
    • Provides a path for private traffic (that is, traffic that uses private IPv4 addresses) between your VCN and networks outside the VCN's region.
      • Provides a single point of entry for remote network paths coming into a VCN
    • Is a standalone object
      • To use it, you must attach it to a VCN
      • A VCN can be attached to only one DRG at a time, and a DRG can be attached to only one VCN at a time
    • You can use it to 
      • Connect a VCN to your on-premises network through
      • Peer your VCN with a VCN in another region
  • NAT Gateway
    • Gives instances in a private subnet access to the internet
      • Instances in a private subnet don't have public IP addresses. With the NAT gateway, they can initiate connections to the internet and receive responses, but not receive inbound connections initiated from the internet.
    • Are highly available and support TCP, UDP, and ICMP ping traffic.
    • Is automatically always attached to only one VCN of your choice.
  • Service Gateway
    • Used for subnets that need private access to a public OCI service such as Object Storage.
      • For example, DB Systems in a private subnet in your VCN can back up data to Object Storage without needing public IP addresses or access to the internet.
  • Local Peering Gateway (LPG)
    • Used for subnets that need private access to a peered VCN in the same region.
    • Allows VCNs to communicate using private IP addresses, without the traffic traversing the internet or routing through your on-premises network.
    • A given VCN must have a separate LPG for each peering it establishes.

References



Monday, January 21, 2019

OCI―Knowing Database Service Basics

Video 1.  OCI Level 100 - Database (Demo starts at 30:20; YouTube link)

The Oracle Cloud Infrastructure (OCI) Database service (DS) offers autonomous and user-managed Oracle Database solutions:
  • Fully-managed 
    • Autonomous databases are preconfigured, fully-managed environments that are suitable for either transaction processing or for data warehouse workloads. 
    • See OCI―Knowing Autonomous Database Basics for more information
  • User-managed
    • User-managed solutions are bare metal (BM), virtual machine (VM), and Exadata DB systems that you can customize with the resources and settings that meet your needs.
You can quickly provision a user-managed DB system or autonomous database. You have full access to the features and operations available with the database, but Oracle owns and manages the infrastructure:

In this article, we will cover mainly on Oracle provided user-managed solutions and use DS to mean either DB System or Database Service.



Virtual Machine (VM)Bare Metal (BM)Exadata
ScalingStorage (number of
CPU cores on VM DB
cannot be changed)
CPU (amount of available
storage cannot be
changed)
CPU can be scaled within
¼½ and Full rack.
Storage cannot be scaled
Multiple
Homes/Databases
No, single DB and Home onlyYes (one edition, but
different versions
possible)
Yes
StorageBlock StorageLocal NVMe disksLocal spinning disks and NVMe flash cards.
Real Application Clusters (RAC)Available (2-node)Not AvailableAvailable
Data GuardNot AvailableAvailable*Available*

*: You can manually configure Data Guard on Exadata DB systems using native Oracle Database Utilities and commands.  dbcli is not available on Exadata Data systems.

Figure 1.  Exadata Database System with the Maximum Availability Architecture:

DS Features


OCI Database Service has the following features:
  • Comprehensive offerings to cover all enterprise database needs
    • 3 Shape Types:
      • Exadata, Bare Metal, Virtual Machine 
      • Each type with different shapes 
    • Supports various Oracle database software editions, license types, database versions, and database workloads (OLTP vs DSS)
  • Lifecycle Automation
    • Provisioning, Patching, Backup & Restore
  • High Availability 
  • Scalability
    • Dynamic CPU and Storage scaling
  • Security
    • Infrastructure (IAM, Security Lists, Audit logs)
    • Database (TDE, RMAN backup/Block volume encryption)
  • OCI Platform integration
    • Tagging, Limits and Usage Integration
  • License Type
    • License Included with OCI provisioning
    • Bring Your Own License (BYOL)
With Exadata DS, all types of failures are protected against, including disk, server, network and data.

Managing DS


You can use the console to perform the following tasks:
  • Launch DS 
    • Which also create a database system
  • Start, stop or reboot DS
    • Billing continues in stop state for BM DB Systems because its attached local NVMe, but not for VM 
  • Scale CPU cores (except for VM)
  • Scale up storage (VM only)
  • Terminate
    • When you terminate a DB system or a database, all of its resources are deleted, along with any automatic backups
    • Full backups remain in Object Storage as standalone backups
      • You can use a standalone backup to create a new database.
      Figure 2.  Db System patch (upper) vs Database patch (lower)

Patching DS


Because patching a system requires a reboot, plan to run the operations at a time when they will have minimal impact on users. To avoid system interruption, consider implementing a high availability strategy such as Oracle Data Guard.

Using the Console, API, or the database CLI (dbcli), you can perform below tasks:
  • Managed/On-Demand Patching
    • Automated applicable patch discovery and pre-flight checks/tests
  • On Demand Patching
    • N-1 patching (previous patch is available if it hasn't been applied), pre-check and patching at the click of a button
  • Availability during Patching 
    • For Exadata and RAC shapes, patches are rolling.
    • For single node systems, Active Data Guard can be leveraged by the patch service if it is configured
  • 2-Step Process
    • Patching is a 2 step process.  To perform a patch operation on a
      1. DB System
      2. Database
  • Identity and Access Controls
    • Controls who can list patches, apply them, etc

Backup / Restore


If you plan to back up your DB system to Object Storage, you can use a service gateway with a private subnet or an internet gateway with a public subnet.  To recover a database from Object Storage, you can use the Console, API, or by using RMAN.[2]

For backup and restore, OCI Database Service supports:

Manged Backups vs. Unmanaged Backups

Automatic Backups (Incremental)
  • Default Policy 
    • Not changeable at this time
    • Are written to Oracle owned object storage (not visible to customers)
    • Backup window is defined by Oracle
      • New backup window time will be between midnight and 6 AM in the time zone of the DS's region
      • To migrate yours to the new behavior, contact Oracle Support 
    • All backups are encrypted with the same master key used for Transparent Data Encryption (TDE) wallet encryption.  
  • Automatically retried
    • Oracle will get notified if the job is stuck

High Availability (HA)

  • Cloud Infrastructure HA
    • Region with 3 Availability Domain architecture
      • While the availability domains provide the facility for high availability, regions provide the basis for disaster recovery
    • Fully redundant and non-blocking Networking Fabric
  • Database HA
    • Disk Redundancy
      • Normal (2-way mirroring) vs High (3-way mirroring―recommended for production) 
    • Database RAC option
    • Automated Data Guard within and across ADs
Read Oracle's whitepaper on HA for more information.

Scalability

  • Exadata 
    • Two kinds of scaling operations are supported for an Exadata DB system:
      • Scaling within an Exadata DS lets you modify compute node processing power within the system.
      • Scaling across Exadata DS configurations lets you move to a different configuration, for example, from a  ¼  to a ½ rack.
    • To learn how to scale an Exadata DS, see To scale an Exadata DB system.
  • Bare Metal 
    • # of CPU cores can be scaled
    • Total raw storage is fixed based on a chosen shape
      • However, the amount of usable storage on the BM DS can be affected by options like 2- or 3-way mirroring and the space allocated for data files.
  • Virtual Machine 
    • 1-node or 2-node RAC 
    • Storage can be scaled
      • For 2-node RAC VM DB systems, storage capacity is shared between the nodes.
    • # of CPU cores on an existing VM DS cannot be changed.

References

  1. Overview of Database Service (OCI)
  2. Recovering a Database from Object Storage
  3. Developer Tools (OCI)
  4. Updating a DB System (OCI)
    • Includes information and instructions on how to update the OS of a bare metal or virtual machine DB system.
  5. Updating an Exadata DB System (OCI)
  6. Securing Database (OCI)
    • Includes information on security best practices for databases in Oracle Cloud Infrastructure.
  7. OCI Database Service Troubleshooting 
  8. Oracle Cloud Infrastructure Object Storage FAQ
  9. Oracle Database CLI Reference (dbcli)
  10. Standalone Backups (OCI)
  11. Backing Up to Oracle Cloud Infrastructure Object  (OCI)
  12. Migrating Databases to the Cloud (OCI)
  13. Developer Tools (OCI)
  14. Introduction to Oracle Automatic Storage Management (ASM)
  15. Best Practices for Deploying High Availability Architecture on Oracle Cloud Infrastructure (must read)
  16. OCI API Documentation 

Friday, January 18, 2019

OCI―Knowing File Storage Service Basics

Video 1.  OCI Level 100 - File Storage (Demo starts at 23:00)


Oracle Cloud Infrastructure (OCIFile Storage Service (FSS) is a managed file storage service that
  • Provides a durable, scalable, distributed, enterprise-grade network file system.
    • Using industry-standard Network File System (NFSv3) file access protocols and file system semantics
    • You can start with a file system that contains only a few kilobytes (KB) of data and scale to exabytes (EB) of data without upfront provisioning. 
    • It protects your data by maintaining multiple replicas, providing transparent encryption, and enabling frequent snapshots.
  • Can be accessed concurrently by thousands of compute instances
    • You can connect to a FSS file system from any bare metal, virtual machine, or container instance in your Virtual Cloud Network (VCN)
    • You can also access a file system from outside the VCN using Oracle Cloud Infrastructure FastConnect and Internet Protocol security (IPSec) virtual private network (VPN)


FSS Security


You create users and groups in OCI. Then, you can use policies to specify which users and groups can create, access, or modify resources such as file systems, mount targets, and export options.

There are four distinct and separate layers of security to consider when using the FSS. Each layer has its own authorization entities and methods which are separate from the other layers.

This security layer...Uses these...To control actions like...
IAM ServiceOCI Users and policiesCreating instances (NFS clients) and VCNs. Creating, listing, and associating file systems and mount targets.
Network SecurityIP addresses, CIDR blocks, security listsConnecting the client instance to the mount target. This is on an ‘all or nothing’ basis - the client either can or cannot access the mount target, and therefore all file systems associated with it.
NFS export optionsFile system exports, IP addresses, Unix usersApplying access control per-file system based on source IP CIDR blocks that bridges the Security Lists layer and the NFS v.3 Unix Security layer. See Working with NFS Export Options to specify granular controls on a per-file system basis.
NFS v.3 Unix securityUnix users, file mode bitsMounting file systems, reading and writing files.

Unix User ≠ OCI User

Remember that users in UNIX aren’t the same as users in OCI - they’re not linked or associated in any way. The OCI policy layer doesn’t govern anything that happens inside the file system, the UNIX security layer does. Conversely, the UNIX security layer doesn’t govern creating file systems or mount targets in OCI.

Mount Target


Mount Target is an NFS endpoint that lives in a subnet.  It has the following features:
  • Must be in the same availability domain as the file system.
    • When you create a file system, you can create a mount target or use an existing one.
  • Each mount target has an export set
    • A collection of one or more exports that control what file systems the mount target exports using NFSv3 protocol and how those file systems are found using the NFS mount protocol. 
    • The information stored in an export includes the file system OCID, export path, and export options. For more information, see Working with NFS Export Options.
    • Exports and export sets are managed through the Console by the FSS. More advanced configuration options for exports and export sets are available in the Command Line Interface (CLI) and API.
  • Provides the IP address or DNS name that is used in the mount command when connecting NFS clients to the FSS. 
  • Requires three private IP addresses in the subnet (don't use /30 or smaller subnets for the FSS)
  • Should be placed in its own subnet
    • Placing NFS clients and mount target in the same subnet can result in IP conflicts, as users are not shown which private IP;s are used for mount target.
  • Mount Target Limits
    • By default, you can create two mount targets per account per availability domain.

File System


File System is a way that your Compute instances use to organize files on your storage.  You can create a shared file system in the cloud using the FSS.  To access your file systems, you need to create a new (or use an existing) mount target.

When you use the Cloud Console, creating a file system also creates a mount target that your Compute instances use to access and write to the file system.   Once set up, file systems can be accessed from any OCI BM/VM instance in the same or other regions.  They can also be accessed from your on-premise environment using FastConnect or IPSec VPN.[3]

1 Mount Target : N File systems

Using the API or the Command Line Interface (CLI), you can create file systems and mount targets independently of each other.  Both file systems and mount targets are associated with an availability domain.

Once a mount target is created, multiple file systems can be associated with it. You can create up to 100 file systems per mount target.  However, no two file systems associated with the same mount target can have overlapping export path (e.g., FS paths like /example and /example/path are not allowed)

Paths in File Systems


In the discussions below, we will use this mount command example:
sudo mount 10.0.0.6:/example/path /mnt/mountpointA 
where  
10.0.0.6 is the mount target IP address and /example/path is the export path
There are three kinds of paths that are used in the FSS:
  • Export Paths
    • Specified when a file system is associated with a mount target
    • Appended to the mount target IP address, and used to mount (logically attach) to the file system
    • Used only to distinguish one file system from another within a single mount target
    • Syntax Rules
      • Must start with a slash (/) followed by a sequence of zero or more slash-separated elements.
      • Cannot end in a slash
      • Cannot be a period (.) or two periods in sequence (..)
      • Cannot exceed 255 bytes
  • Mount Point Paths
    • Are paths within a client instance to a locally accessible directory to which the remote file system is mounted
    • /mnt/mountpointA is the path to the directory on the client instance on which the external file system is mounted.
  • File System Paths
    • Are paths to directories within the file system, and contain the contents of the file system. 
    • For example, snapshots of the file system can be accessed using the file system path, under the file system's root directory at .snapshot/name.
      • The following example shows the path to a snapshot called 'January 1' when navigating from the instance:
        • /mnt/mountpointA/.snapshot/January1

Creating a File System


Follow these steps to create a File System on OCI:
  1. From the Core Infrastructure, select File Storage
  2. Choose a compartment in which you have permission to work. 
  3. Click Create File System. 
  4. In the Create File System dialog box, provide the following information: 
    • Enter a name for the File System. 
    • Choose an availability domain. 
    • Choose Edit Details for Mount Target
      • Choose CREATE MOUNT TARGET (or you can SELECT AN EXISTING MOUNT TARGET)
        • Enter a name for the Mount Target 
        • Choose a VCN for Mount Target
        • Choose a subnet for Mount Target (e.g., FSS-subnet as in the video)
      • Click Show Advanced Options
        • Before you can mount this file system, you must configure security rules to allow traffic to subnet FSS-subnet.  
        • Choose IP ADDRESS
        • Choose HOSTNAME
        • Choose PATH
          • Path name cannot be currently in use in the Mount Target
        • Choose MAXIMUM FREE SPACE (IN GiB)
  5. Click Create File System.

Configuration Details
  • File System Information
  • Mount Target Information
    • File systems must be associated with a mount target in order to be mounted by any instance.
    • By default, the mount target is created in your current compartment.
    • The mount target must be in the same availability domain as the file system. You cannot change the availability domain.
    • Virtual Cloud Network
      • The first VCN listed in the selected compartment is used as default.
    • Subnet
      • The first subnet listed in the selected availability domain is used as default.
      • FSS requires ingress TCP ports 111, 2048,2049, and 2050, in addition to standard ingress UDP ports 111 and 2048.  Opening these ports enables traffic from Solaris, Linux, and Windows instances.  Read Configuring VCN Security List Rules for File Storage for more information.
      • Don't place NFS client(s) and mount target in the same subnet
    • IP Address (Optional)
      • You can specify an unused, local, private IP address, for example, between 10.0.0.2 and 10.0.0.254 for the new mount target.
    • Hostname (Optional)
      • You can specify a hostname you want to assign to the mount target.
      • Which will be used to created a fully qualified domain name (FQDN) which cannot be changed in this dialog.
    • Path Name (Optional)
      • You can replace the default export path (default path using new file system's name) with a new one.
    • Maximum Free Space (in GiB; Optional)
      • Specifies the maximum free space (default: 8 exabytes) reported to applications by the FSS.
        • Some applications fail to install because a capacity check reports too much available capacity (i.e. the default 8 exabytes). 
        • Setting the Maximum Free Space reported as available to a value acceptable by your application prevents this issue. 
      • Setting the maximum free space affects each file system associated with the mount target. 
      • Setting the maximum free space does not limit the amount of data you can store.
    • Export Options (Important)

Summary


File Storage Service is an AD-local service, available in all OCI regions and Availability Domains, which supports
  • NFS v.3
  • Network Lock Management (NLM) for file locking
  • Full POSIX semantics
  • Data Protection
    • Snapshot capabilities; 10,000 snapshots per file system
  • Security
    • 128-bit, data-at-rest encryption for all file systems & metadata
  • Management Options
You can create 100 file systems and 2 mount targets per AD per account.  But you can request an increase. See Service Limits for a list of applicable limits and instructions for requesting a limit increase.

Tuesday, January 15, 2019

OCI―Knowing Compute Service Basics

Video 1.  OCI Core 100 - Compute (Demo starts at 24:00)

Oracle Cloud Infrastructure (OCI) Compute Service lets you provision and manage compute hosts,  known as instances.  

Instance Type


OCI offers two types of instances:
  • Bare Metal
    • Gives you dedicated physical server access (single-tenant model) for highest performance and strong isolation
    • Allows direct hardware access with all the security, capabilities, elasticity and scalability of OCI
  • Virtual Machine
    • A hypervisor to virtualize the underlying Bare Metal server into smaller VMs (multi-tenant model)
      • The virtualization makes it possible to run multiple VMs that are isolated from each other
      • VMs are ideal for running applications that do not require the performance and resources (CPU, memory, network bandwidth, storage) of an entire physical machine
Both types of instances are run on the same OCI stacks.


Figure 1.  Bare Metal Instances
Figure 2.  VM Standard Instances (Intel X7 & AMD)
Figure 3.  VM Dense I/O Instances
Figure 4.  GPU Instances (BM and VM)

Instance Shape


A shape is a template that determines the number of CPUs, amount of memory, and other resources allocated to a newly created instance.  OCI Compute Service enables you to select from a range of predefined shapes for both Bare Metal (BM) and Virtual Machine (VM) instances (see Figure 1-4):
  • Compute Standard E2 is based on AMD EPYCTM processor
  • 2 x 25 Gbps implies two NIC cards with 25 Gbps bandwidth
  • Network bandwidth is based on expected bandwidth for traffic within a VCN
  • Max vNICs numbers are for Linux
  • GPU (Nvdia)[2]
    • Volta is based on Tesla Volta GPUs
    • Pascal is based on Tesla Pascal GPUs
  • VM standard vs VM Dense IO shapes
    • VM Dense IO will provide NVMe drivers and VM Standard will provide block storage only

Figure 5.  Image Tab for Selecting the Image Build (highlighted: Oracle Images)

Instance Image


An image is a template of a virtual hard drive. The image determines the operating system and other software for an instance. 

On the Image tab (see Figure 5) you can optionally change the image build. By default, the latest build of the image is used to create the instance. You can select an older build of the image that is compatible with the shape you selected. Only compatible image builds are displayed in the list. You need to select a shape before you can change the image build.

The following images of different categories can be browsed on OCI Console:
  • Platform Images
    • Pre-built images for Oracle Linux, Microsoft Windows, Ubuntu and CentOS
      • Linux Images
        • Default set of firewall rules allow only SSH access (port 22)
          • Users (e.g. opc for Oracle/CentOS or ubuntu for Ubuntu) with sudo privileges are created automatically for instances and are configured for remote access over the SSH v2
        • Provide a startup script using cloud-init
      • Windows Images
        • User name opc created automatically with an one-time password
        • Include the Windows Update utility to get the latest Windows updates from Microsoft
    • See Oracle-provided images for more information
  • Oracle Images
    • Pre-built Oracle enterprise images and solutions enabled for OCI
  • Partner Images
    • Trusted third-party images published by Oracle partners
  • Custom Images
    • Custom images created (from an instance's boot disk) or imported into your OCI environment.  
      • When you create an image of a running instance, the instance shuts down and remains unavailable for several minutes. When the process is complete, the instance restarts.
      • Instances you launch from your custom image include customization, configuration, and software installed when you create the image
      • Custom images do not include the data from any attached block volumes
      • A custom image cannot exceed 300 GB
    • See Managing Custom Images for more details.
  • Boot Volumes
  • Image OCID
Image Import/Export
Read this Oracle whitepaper for more details.

Creating an Instance from a Custom Image


Follow these steps to launch a virtual machine instance on OCI by using a previously created custom image:
  1. From the Compute tab, select Instances
  2. Choose a compartment in which you have permission to work. 
  3. Click Create Instance. 
  4. In the Create Instance dialog box, provide the following information: 
    • Enter a name for the instance. 
    • Choose an availability domain. 
    • Choose Change Image Source
    • Choose Custom Image as the boot volume. 
    • Choose the custom image to use. 
    • Choose Virtual Machine as the instance type.
    • Choose a shape (only compatible shapes are available). 
    • Configure Boot Volume
      • You can change boot volume size and/or choose a key from Key Management to encrypt this volume
    • Choose to upload or paste SSH keys (public keys). 
    • Choose a VCN
    • Choose a subnet. 
  5. Click Create Instance.

Configuration Details
  • Name
    • You can add or change instance name later. The name doesn't need to be unique; an Oracle Cloud Identifier (OCID) uniquely identifies the instance.
  • Availability domain 
  • Image Source
    • When you click Change Image Source, the Browse All Images dialog opens with the operating system or image source options. The following options are available:
      • Platform Images, Partner Images, Oracle Images, Custom Images, Boot Volumes, Image OCID
  • Instance Type
    • Select Virtual Machine or Bare Metal Machine.
  • Instance Shape
    • When you click Change Shape, the Browse All Shapes dialog opens and is populated with the list of available VM or bare metal shapes based on what you selected for instance type.
    • See Compute Shapes for a list of the available bare metal and VM shapes. 
  • Boot Volume Size
    • The specified size must be larger than the selected image's default boot volume size.
    • See Custom Boot Volume Sizes for more information.
  • Encryption
    • Boot volumes are encrypted by default but you can optionally encrypt the data in this volume using your own Key Management encryption key. 
    • See Overview of Key Management for more information.
  • SSH key
    • The public key portion of the key pair you want to use for SSH access to the instance. 
  • Virtual Cloud Network Compartment
    • The compartment containing the network in which to create the instance.
  • Virtual Cloud Network
    • The network in which to create the instance.
  • Subnet Compartment
    • The compartment containing a subnet within the cloud network to attach the instance to.
  • Subnet
    • A subnet within the cloud network to attach the instance to. 
    • The subnets are either public or private
      • Private means the instances in that subnet can't have public IP addresses. 
    • For more information, see Access to the Internet.
  • Fault Domain (Advanced Options)
    • If you do not specify the fault domain, the system selects one for you. 
    • Once the instance has been created, if you want to change the fault domain you need to terminate the instance and launch a new instance in the preferred fault domain. 
    • For more information, see Fault Domains and Best Practices for Your Compute Instance
  • User Data (Advanced Options)
    • Data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. 
    • The file or script does not need to be base64-encoded, as the Console performs this encoding when the information is submitted. For information about how to take advantage of user data, see the Cloud-Init Documentation.
  • Tags (Optional)
    • To apply a defined tag, you must have permissions to use the tag namespace. 
    • For more information about tagging, see Resource Tags
  • Instance Configuration(Optional)[5]
    • Instance configurations allow you to define the configuration to use when creating Compute instances as part of an instance pool.
    • See Managing Compute Instances for more information.
  • VNIC (Optional)
    • A VNIC enables an instance to connect to a VCN and determines how the instance connects with endpoints inside and outside the VCN. 
    • Each instance automatically comes with a primary VNIC, and you can add secondary ones.
    • See Virtual Network Interface Cards (VNICs) for more information.
  • Console Connection (Optional)
  • Attached Block Volume (Optional)
    • You can attach  a block volume to an instance in order to expand the available storage on the instance. 
    • See Attaching a Volume for more information.

References

  1. Compute Service (OCI)
  2. General Availability of Virtual Machines with NVIDIA GPUs on Oracle Cloud Infrastructure
  3. Deploying Custom Operating System Images onOracle Cloud Infrastructure
  4. Oracle Cloud Infrastructure―OCI Key Management Basics
  5. Creating an Instance Configuration (OCI)
  6. Fault Domains (OCI)
  7. Best Practices for Your Compute Instance (OCI)
  8. Cloud-Init Documentation (OCI)

© Travel for Life Guide. All Rights Reserved.

Analytical Insights on Health, Culture, and Security.