TheKoguryo's Tech Blog

 Version 2024.10.18

Warning

This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.

3.4 Creating a Linux Instance

tip

It is a good idea to proactively check for sufficient resources before creating the instance. A Service Limit lookup is used to determine if there are resources available, particularly CPUs available, before creating an instance.
  1. In the OCI Console, open the navigation menu. Navigate to the Compute > Instances topic.

  2. Verify the Region where you want to create the instance and click Create Instance.

  3. Enter Generation Information

    • Basic Information

      • Name: Enter a name, for example, “ExampleLinuxInstance”
      • Create in compartment: Select the Compartment to be located, select the sandbox that you created above
    • Placement

      Because Seoul and Chuncheon are one AD, Placement is the default. Click Edit to the right to view the detailed options as shown below, and you can also specify Fault Domains within your AD.

      image-20220110131651895

    • Image and Shape

      Click Edit to the right to change the OS image and Shape settings.

      image-20220110132114746

    • Image Change

      You can use the default OS provided by your platform, including Oracle Linux, Ubuntu, CentOS, and Windows, and select pre-built package images provided by Oracle and our partners. Use default selected Oracle Linux here.

      image-20220110132321012

    • Shape Change

      Shape is a template for CPU, Memory. Select VM, Baremetal or not, CPU manufacturer, and available Shape as shown in the figure below. Availability of Shape may vary depending on whether you are a free account, buyer, or region. In this case, select the default selected VM.Standard.E2.1.Micro. As shown in the Always Free-eligible tag, this type is always free within the instances that Always Free offers.

      image-20220110132747768

    • Networking

      Select the Public Subnet of ExampleVCN you created earlier. VMs on a public subnet are given a public IP by default. Edit as needed to make corrections.

      image-20220110133410205

    • Add SSH Keys

      • Enter the public key of the SSH Key used to SSH into the VM. Paste the Public Key you created with SSH-keygen or PuTTY Key Generator in the previous chapter.

        image-20220110133732761

      • Generate a key pair for me: You can also use an automatically generated key if you did not generate an SSH key in advance. If you use this option, download and keep the private keys, public keys.

        image-20220110133942040

    • Boot volume: You can change the size and now accept the default without any setup.

    • Advanced Options

      • You can select the settings below directly from the Advanced Options. Use any default for now.

        • Management: Cloud-init allows you to add custom scripts when creating VMs
        • Available configuration: Live migration
        • Oracle Cloud Agent: Can Change Default Installed Cloud Agent
    • Enter Creation Information and click Create

  4. Created

    Note that the instance will be in the PROVISIONING state after a few minutes and will be in the RUNNING state when the generation is complete.

    image-20220110135445434



As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 10 Jan 2022