Create an Always Free Compute VM on the Oracle Cloud

You’ve signed up for an Oracle Cloud Free Tier at and now you want to deploy an app to a virtual machine compute instance.


You will need an SSH key pair.  You can use an existing key or you can generate a new one.

Create a new Compute instance

After you log into your Oracle Cloud Dashboard.

  1. Click on the “Create a VM instance” box
  2. In the form that opens, you can give your new instance a name that makes sense for your project or use the default name
  3. Click “Show Shape, Network and Storage Options”
  4. Make sure that the Always Free options are selected for:
    1. Availability Domain
    2. Instance Type
    3. Instance Shape
  5. Choose the compartment you want to use for your cloud network objects for both:
    (If you have not created a Virtual cloud network in your selected compartment, the system will create it for you.)

    1. Virtual cloud network compartment
    2. Subnet compartment
  6. If you would like a public IP assigned when the instance is created select the option “Assign a public IP address”
  7. In the “Add SSH key” section you can add your SSH public key using one of these methods:
    1. Uploading the file with the “Choose File” button
    2. Copying and pasting the key into the text field
    3. Drag the public key file into the “Drop Files Here” box
  8. Click “Show Advanced Options”
  9. Select the Compartment you would like to use for your new Compute instance
  10. Click the “Create” button

Your new Compute instance will be provisioned.  The Orange box will turn Green when it has been provisioned and is available to use.

Look in the “Instance Information” tab, in the “Primary VNIC Information” section and get your assigned “Public IP Address”.

Test with SSH

You will want to look up the best way to open an SSH connection for your operating system.

The default user that you will connect as is “OPC”.

On Linux you can test your connection using the following command:

You should see the following question asking if you are sure you want to connect to this new instance.  This should only happen the first time you establish a connection to this instance from this machine.

Type “yes” and hit enter.

You should now be connected to your new instance and can start setting it up to deploy your application.

2 thoughts on “Create an Always Free Compute VM on the Oracle Cloud”

  1. I’ve been trying, in Brazil (Saõ Paulo), but the host capacity is always exhausted in all fault domains. Doc ID 2416409.1 suggests this should be a transient condition, but it isn’t. 😾

    Instead I’m currently using VM.Standard.2.1 instances, which are of course much nicer, having 15GB of RAM; but they won’t be if they’re removed.

    (Of course, I heard there was a mass removal of the Always-Free VMs yesterday, so maybe I dodged a bullet…)

Leave a Reply