Creating a Virtual Machine

Create a virtual machine (VM) in Oracle Cloud.

You must already have signed up for an Oracle Cloud account, have an associated tenancy and have created a Virtual Cloud Network (VCN) in a region that is geographically close to your users. The VCN should have a subnet associated to each of the region's availability domains. If you have not created a VCN see Create a Virtual Cloud Network.

Virtual machines are hosted in availability domains (data centers) located in a region and are based on predefined VM shapes. Before proceeding, determine the VM shape that your site requires for cloud scaling based on the number of CPUs, memory, disk space, network bandwidth, and virtual network interface cards. While selecting the shape for a VM, consider the nature of the applications that you plan to deploy on the instance, the number of users that you expect to use the applications, and also how you expect the load to scale in the future. Remember to also factor in the CPU and memory resources that are necessary for the operating system.

Next, verify that your Oracle tenancy has the appropriate service limits for the VM shape and the region's availability domains Check Tenancy Service Limits.

  1. Login to the Oracle Cloud Infrastructure console.
  2. Click located in the upper left-hand corner of the web page.
  3. Click Compute > Instances.
  4. Choose the region where the previously created VCN is hosted.
    Figure 1. Select a Region

    Select a Region
  5. For COMPARTMENT, select the compartment allocated to you.
    Figure 2. Choose Compartment

    Choose Compartment
  6. Click Create Instance.
  7. Enter the following to create a virtual machine:
    1. For NAME, enter a name for the VM.
      The name can be anything meaningful to your organization, e.g., scaling_vm.
    2. For AVAILABILITY DOMAIN, choose one of the region's availability domains.

      The virtual machine is hosted in the chosen availability domain (data center). Choose the availability domain that best suits your site's cloud scaling requirements based on the machine type of the virtual machine (VM shape) and service limits.

    3. For BOOT VOLUME, enable ORACLE-PROVIDED OS IMAGE.
    4. For IMAGE OPERATING SYSTEM, choose an OS that supports cloud-init and is supported by your workload manager..
    5. For SHAPE TYPE, enable VIRTUAL MACHINE.
    6. For SHAPE, select a VM shape.
      Choose the VM shape that best suits your site's cloud scaling requirements based on number of CPUs, memory, disk space, and network bandwidth.
    7. For IMAGE VERSION, select the latest available one.
    8. For BOOT VOLUME CONFIGURATION, enable CUSTOM BOOT VOLUME SIZE and enter a boot volume size in GBs.
    9. Enable PASTE SSH KEYS and copy the SSH public key (i.e., id_rsa.pub) of a user account that exists on your site's PBS Server and paste it.
      This user will have sudo rights and will be able to SSH into the VM to install the PBS MoM.
    10. For VIRTUAL CLOUD NETWORK, choose the VCN that was created for cloud scaling.
    11. For SUBNET, choose the subnet associated with the previously chosen availability domain.
  8. Click Create Instance.
    Creating the virtual machine may take some time. It is done when the state is "Running".
    Figure 3. Running Virtual Machine

    Running Virtual Machine