Launching a Linux Instance

Now you will launch an instance with the Oracle Linux image and basic shape. More advanced options are available; see Overview of the Compute Service for more information.

Before You Begin

Launching an Instance

  1. Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.
  2. Click Create Instance.
  3. Enter a name for the instance, for example: <your initials>_Instance. Avoid entering confidential information.
  4. In the Image or operating system section, accept the default, Oracle Linux 7.x.
  5. Click Show Shape, Network and Storage Options.
  6. Accept the default Availability domain.
  7. In the Shape section, click Change Shape. Then, do the following:

    1. For Instance type, accept the default, Virtual Machine.
    2. For Shape series, select Intel Skylake, and then choose the VM.Standard2.1 shape (1 OCPU, 15 GB RAM).

      Tip

      To create an instance using the Always Free-eligible VM.Standard.E2.1.Micro shape, select Specialty and Legacy, and then choose the VM.Standard.E2.1.Micro shape. If the Micro shape is disabled, cancel out of the shape selection page, select a different availability domain, and then try again.

      The shape defines the number of CPUs and amount of memory allocated to the instance.

    3. Click Select Shape.
  8. In the Configure networking section, select the following options:

    • Virtual cloud network compartment: Select the compartment containing the cloud network that you created.
    • Virtual cloud network: Select the cloud network that you created.
    • Subnet compartment: Select the compartment containing the public subnet that was created with your cloud network.
    • Subnet: Select the public subnet that was created with your cloud network.
    • Leave the Use network security groups to control traffic check box cleared.
    • Select the Assign a public IP address option. This creates a public IP address for the instance, which you'll need to access the instance. If you have trouble selecting this option, confirm that you selected the public subnet that was created with your VCN, not a private subnet.
  9. In the Boot volume section, leave all the options cleared.
  10. In the Add SSH keys section, select one of the following options:

    • Generate SSH keys: If you will connect to the instance using OpenSSH, select this option. Click Save Private Key and then save the private key on your computer. Optionally, click Save Public Key and then save the public key.

      Warning

      Anyone who has access to the private key can connect to the instance. Store the private key in a secure location.
    • Choose SSH key files: If you will connect to the instance using PuTTY, select this option. To upload the public key (.pub) portion of the key pair that you want to use for SSH access to the instance, browse to the key file that you want to upload, or drag and drop the file into the box.
  11. Click Create.

The instance is displayed in the Console in a provisioning state. Expect provisioning to take several minutes before the state updates to running. Do not refresh the page. After the instance is running, allow another few minutes for the operating system to boot before you attempt to connect.

Getting the Instance Public IP Address

To connect to the instance in the next step, you'll need its public IP address.

To get the instance public IP address:

  1. Click the instance name to see its details.
  2. The Public IP Address and Username are displayed on the details page under Instance Access, as shown in the following image:

    Location of Public IP Address

  3. Make a note of the Public IP Address before you continue.