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
Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.
- Click Create Instance.
- Enter a name for the instance, for example: <your initials>_Instance. Avoid entering confidential information.
- In the Image or operating system section, accept the default, Oracle Linux 7.x.
- Click Show Shape, Network and Storage Options.
- Accept the default Availability domain.
In the Shape section, click Change Shape. Then, do the following:
- For Instance type, accept the default, Virtual Machine.
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.
- Click Select Shape.
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.
- In the Boot volume section, leave all the options cleared.
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.
- 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:
- Click the instance name to see its details.
The Public IP Address and Username are displayed on the details page under Instance Access, as shown in the following image:
- Make a note of the Public IP Address before you continue.
Now use the IP address and your SSH key to connect. See Connecting to Your Instance.