This blog post outlines the 10 simple steps necessary to provision, and connect to, a VM on Oracle Cloud Infrastructure (OCI).
-
-
-
-
- Confirm you have an SSH Public Key on your laptop or localhost.
$ cd ~/.ssh
— check if you have an existing if you have a key already
$ ls
id_rsa id_rsa.pub known_hosts
You’re looking for a file named either id_dsa or id_rsa and a matching file with a .pub extension. The .pub file is your public key, and the other file is the corresponding private key. If you don’t have these files or you don’t remember your passphrase, you will need to complete the steps outlined here.NOTE: You can’t move on unless you have your SSH Public key. - Connect to the OCI console to begin the provisioning process.
From the hamburger menu in the upper left-hand corner select, the Compute menu item followed by the Instances option.
- On the Instances page, click the Create Instance button.
- Specify a unique name for your instance and accept the default Oracle Linux image.
- Scroll down and click on the Change Shape button.
- To run my demos I typically use Swingbench, which needs a minimum of 2 OCPUs (4 OCPUs if you use the JSON workload). So, I select a Virtual Machine with Intel Skylake processors and 2 OCPUs. Then click the Select Shape button.
- I use the automatic defaults in the Configure Networking and Boot Volume sections and move on to the SSH Key section. Here I select Paste SSH Keys and cut and paste my public key from my .ssh directory into the window provided.
- Finally hit the Create button at the end of the page.
- Instantly you will see a new VM is being provisioned for you. Once available, you can connect to the machine using the public IP address and the user OPC. You will find the IP address, on the main Instance console page.
- Simply ssh into the machine from your laptop using the supplied OPC user.
$ ssh opc@XXX.XXX.XX.XXX
Enter passphrase for key '/Users/sqlmaria/.ssh/id_rsa':
Last login: Tue Jul 28 16:39:35 2020 from XXXXX
- Confirm you have an SSH Public Key on your laptop or localhost.
-
-
-