Launching a Linux Instance

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

Before You Begin

Launching an Instance

  1. Open the navigation menu and click Compute. Under Compute, 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 Placement section, accept the default Availability domain.
  5. In the Image and shape section, make the following selections:

    1. In the Image section, accept the default, Oracle Linux.


      If you're creating an Arm-based Ampere A1 Compute instance, select the Oracle Linux Cloud Developer image. Oracle Linux Cloud Developer provides the latest development tools, languages and Oracle Cloud Infrastructure software development kits (SDKs) to rapidly launch a comprehensive development environment. The Oracle Linux Cloud Developer image requires at least 8 GB of memory.
    2. 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 one of the following options:

        • If you don't have a preference for the processor type, select AMD, and then choose the VM.Standard.E4.Flex shape or the VM.Standard.E3.Flex shape (it doesn't matter which). The shapes are flexible shapes. Accept the default values for OCPUs and memory.
        • To create an Always Free-eligible Ampere A1 Compute instance using an Arm processor, select Ampere, and then choose the VM.Standard.A1.Flex flexible shape. Accept the default value for OCPUs (1 OCPU). If you selected the Oracle Linux Cloud Developer image, for Amount of memory (GB), drag the slider to allocate 8 GB of memory to the instance; otherwise, accept the default (6 GB RAM).
        • To create an instance using the Always Free-eligible AMD processor, select Specialty and previous generation, and then choose the VM.Standard.E2.1.Micro shape.
      3. Click Select shape.
  6. In the Networking section, configure the network details for the instance:

    • For Primary network, leave Select existing virtual cloud network selected.
    • Virtual cloud network in <compartment_name>: Select the cloud network that you created. If necessary, click Change compartment to switch to the compartment containing the cloud network that you created.
    • For Subnet, leave Select existing subnet selected.
    • Subnet in <compartment_name>: Select the public subnet that was created with your cloud network. If necessary, click Change compartment to switch to the compartment containing the correct subnet.
    • Select the Assign a public IPv4 address option. This creates a public IP address for the instance, which you 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.


      All tenancies get two public IPv4 addresses for Always Free compute instances. If you want to create more than two Always Free instances, you can create the instances without assigning public IP addresses.
  7. In the Add SSH keys section, generate an SSH key pair or upload your own public key. Select one of the following options:
    • Generate a key pair for me: Oracle Cloud Infrastructure generates an RSA key pair for the instance. Click Save Private Key, and then save the private key on your computer. Optionally, click Save Public Key and then save the public key.


      Anyone who has access to the private key can connect to the instance. Store the private key in a secure location.

      To use a key pair that is generated by Oracle Cloud Infrastructure, you must access the instance from a system that has OpenSSH installed. UNIX-based systems (including Linux and OS X), Windows 10, and Windows Server 2019 should have OpenSSH. For more information, see Managing Key Pairs on Linux Instances.
    • Upload public key files (.pub): Upload the public key portion of your key pair. Either browse to the key file that you want to upload, or drag and drop the file into the box. To provide multiple keys, press and hold down the Command key (on Mac) or the Ctrl key (on Windows) while selecting files.
    • Paste public keys: Paste the public key portion of your key pair in the box.
    • No SSH keys: Select this option only if you do not want to connect to the instance using SSH. You can't provide a public key or save the key pair that is generated by Oracle Cloud Infrastructure after the instance is created.
  8. In the Boot volume section, leave all the options cleared.
  9. 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.