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.
- You have created a cloud network and public subnet. See Creating a Virtual Cloud Network.
- You have an SSH key pair. See Creating a Key Pair.
Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.
- Click Create Instance.
- On the Create Instance page, enter the following:
- Name your instance: Enter a name, for example: <your initials>_Instance. Avoid entering confidential information.
- availability domain: Accept the default.
Instance Type: Accept the default, Virtual Machine.
Instance Shape: Accept the default, VM.Standard.E2.1.Micro (1 OCPU, 1 GB RAM).
The shape defines the number of CPUs and amount of memory allocated to the instance.
In the Configure networking section, do the following:
- 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 option cleared.
- To create a public IP address for the instance, select the Assign a public IP address option.
- Boot volume: Leave all the options cleared.
Add SSH Key: Select Choose SSH key file. Click Choose Files, navigate to the location where you saved the public key portion (.pub) of the SSH key file that you created, select the file and click Open.
- 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.
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 is displayed on the details page under Primary VNIC Information, 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.