Oracle’s Infrastructure as a Service (IaaS) public cloud provides raw compute and storage capabilities that can be used for almost any workload.  This blog series will outline the process used to migrate existing workload from our on-premises data center to instances running on Oracle IaaS public cloud compute and storage services.  The first part of this series will cover the process to manually create the components needed to start an instance using Oracle provided Enterprise Linux image on the Oracle public cloud.

The basic process to provision an instance on the IaaS public cloud is as follows:

  • Generate an SSH key pair
  • Upload the SSH public key to the compute cloud service
  • Reserve a public IP address
  • Create a bootable storage volume using an Oracle provided OS image
  • Create the instance, associating it to the public IP address, bootable storage volume, and SSH public key

Generate SSH key pair

On an on-premise linux server, use the ssh-keygen command to generate a public and private key pair:

ssh-keygen -b 2048 -t rsa

When prompted, enter the path to the file to save the key:

/home/oracle/.ssh/id_rsa

Enter the passphrase and confirm it by entering it again.

There will now be two files generated:

/home/oracle/.ssh/id_rsa     ß SSH private key

/home/oracle/.ssh/id_rsa.pub     ß SSH public key

*** Note: make sure these files are stored securely to prevent exposing your cloud instances.

Upload the SSH public key

Sign in in to the Oracle Cloud My Services application for the security domain containing your Oracle Compute and Storage Cloud Services. 

Click on the Service Console link in the Oracle Compute Cloud Service tile.

In the overview tile, select the Menu drop down and select Manage SSH keys:

1

From the SSH Public Keys tile, click on the Add SSH Public Key button:

2

Provide a name for your public key and paste the contents of your SSH public key file generated in the previous step:

3

Reserve a public IP Address

Click on the Network link in the Oracle Compute Cloud Services overview box:

4

Click on the IP Reservations tile and Click on the Create IP Reservation button:

5

Provide a Name (for clarity, the recommendation is to use the name of the target instance as the name), leave the For Instance set to None, and click Create:

6

Create a bootable storage volume

Click on the Overview link in the Oracle Compute Cloud Services overview box, click on the Storage tile, and click on the Create Storage Volume button:

7

Enter the name of the storage volume.  To make it easier, name the volume to be similar or match the name of the target instance.

Enter a Size (minimum has to be the size of the boot image, but it can be larger).

Select a boot image from the drop down list that is closest to the use of the target instance.  This example is using a generic OEL 6.4 60GB image with no additional software on it.

For storage property, select the Default storage property.

Select None for the Attach Instance, and then click Next.

8

If everything looks correct on the review page, click on Create:

9

In the list of Storage volumes, you see the newly created storage volume in the list under a status of Initializing.

10

The storage volume is not usable until the status is Online.

Create an Instance

Select the Instances tile and select the Create Instance button:

11

Enter the Name and Label of the instance.

Select image to use for the instance from the dropdown.  This should be the same image selected on the building of the storage volume.

Select the Shape (which assigns the CPUs and memory to the instance), and click Next:

12

Next, assign a DNS Hostname Prefix (for ease of use, I set to the same as the instance name).

Make sure the Configure Instance for Public SSH Access is checked if you want the ability to SSH to the instance.

Select Persistent Public IP Reservation.

Finally, associate the instance to the Public IP address created earlier by selecting the name (IP address) from the drop down and click Next.

13

From the list of Available Storage Volumes shuttle the storage volume created earlier to the Selected Storage Volumes.

Select that same storage volume from the Boot Volume drop down and click Next.

14

Click the Select Existing SSH Public Key(s).

Shuttle the public SSH key uploaded earlier from the Available SSH Public Keys to the Selected SSH Pubic Keys.

Note*** The same public key can be used for multiple servers.

Click Next.

15

If everything is correct on the Review screen, click Create.

16

The instance will now go into a Preparing status.

17

When the status switches to Running, the instance is ready for use.

The steps list above are the basic operations needed to create a functioning Linux instance on the Oracle Iaas Public Cloud.  There are mechanisms to automate the process further and some of those will be covered in future blog posts.  But, this will give the basics for getting started using the Oracle Iaas Public Cloud compute and storage services.

Stay tuned for the next part in this blog series:

Oracle IaaS Public Cloud: Securing Instances

Jim Hardtke

I have over 25 years of broad and deep experience using relational databases, with the last 10 years focused primarily on Oracle. I have held DBA, architecture, and management roles over my career. At Flexagon, I lead the FlexDeploy development for database and cloud related strategies.

More posts by Jim Hardtke
    

1 Trackback or Pingback

Leave a Reply

Your email address will not be published. Required fields are marked *