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 . 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).
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, 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 status 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.