Creating Virtual Machine and Bare Metal Instances Using Oracle Cloud Infrastructure Compute
Before You Begin
This tutorial shows you how to create Virtual Machine and Bare Metal instances using Oracle Cloud Infrastructure Compute Service. This tutorial takes
approximately 15 minutes to complete.
Background
Oracle Cloud Infrastructure Compute Service lets you create Virtual Machine and Bare Metal instances on which you can run your mission-critical applications with high availability.
What Do You Need?
Access to an instance of Oracle Cloud Infrastructure Compute Service
After logging in to your Oracle Cloud Infrastructure tenancy, you can create and launch a Virtual Machine or Bare Metal instance by completing the following steps:
Log in to Oracle Cloud Infrastructure. Enter your account credentials from your welcome email in the Cloud Tenant, User Name, and Password fields.
Select the compartment in which to create the Virtual Machine or Bare Metal instance from the Compartment section. In this tutorial, we'll use the root compartment.
Description of the illustration selectcompartment.png
In the Name field, enter a name for the instance. For example, SalesVM.
Oracle Cloud Infrastructure is hosted in Regions, which are localized geographic areas. Each Region contains three Availability Domains which are isolated and fault-tolerant data centers that can be used to ensure high availability. In the Availability Domain field, select the Availability Domain in which you want to run the instance. For example, scul:PHX-AD-1.
From the list of options in the Image pull-down, choose an operating system to use. This can be an Oracle-provided image, of which there are multiple Linux and Windows options, or you can choose a custom image that you created. For example, Oracle-Linux-7.4-2017.08.25-0.
The shape of an instance determines the number of CPUs, the amount of memory, and how much local storage an instance will have. Shape types with names that start with VM are Virtual Machines, while shape types with names that start with BM are Bare Metal instances. Choose the appropriate shape for your Virtual Machine instance in the Shape field. For example, VM.Standard1.4.
In the Virtual Cloud Network field, select the Virtual Cloud Network for the instance. For example, QA_VCN. This is a software-defined version of a traditional on-premises network in the cloud. It includes subnets, route tables, and gateways in which your instances run. You must create a Virtual Cloud Network in a compartment before you can add an instance to that compartment.
In the Subnet field, select the subnet to which to add the instance. For example, the public subnet scul:PHX-AD-1.
You can optionally enter a private IP address in the Private IP Address field. For example, 10.0.0.50.
Select Assign IP Address to make the instance publically accessible. Otherwise, deselect this option.
You can optionally enter a hostname in the Hostname field. For example, sales-server.
If you set a value for Hostname, then that name sets a read-only Fully Qualified Domain Name (FQDN) in the Fully Qualified Domain Name field. For example, sales-server.sub08242009230.qavcn.oraclevcn.com.
If the operating system image for your instance uses SSH keys for authentication (for example, Linux instances), then you must provide an SSH public key. To choose a public key file, ensure that Choose SSH Key Files is selected, then click Browse.
Description
of the illustration browsesshkeys.png
Choose the public key to upload (for example, id_rsa.pub), then click Open. Note: some operating systems may use a different interface for file selection.
Description of the illustration opensshkey.png
Alternatively, select Paste SSH Keys and then copy and paste your SSH public key into the field. For example, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVNPh09u35ejTZun3FNEGhrjL/CovPsHAh79pN0QVprxEJaW2zjmaBZF1Q6lkuyTRvraomIlduCYxrlnwCe8oyER5dY1zuJATWm7ZiqgsvIkhj8L+ea9dBZRvFvcnFsNFnt4ALZYkW2nB2EeTdvqVMHERjFKfbRMCcO0dusmBUEsvaaqLtrvVuHBjwoXIDKkT/PFkix4DWRZRkZIjmZ/y9kwrHO4W1FYsFi4LP1xIB1c9y2H4w0SBXAMv4NCSFEIgWPQly2NywMsgEbddjW+zPz+7YjYqjWfz5Fgchu7+N1gejsIdzg1/aLvDpze6TN9xLcZx5gt04jA3TR+xfs2Ab Tim@Corsair".
Description of the illustration pastesshkey.png
To launch a Bare Metal instance, follow the steps from Launch a Virtual Machine Instance. However, in the Shape field,
choose a shape type whose name starts with BM. For example, BM.Standard1.36. Choosing a shape type whose name starts with BM creates a Bare Metal instance, rather than a Virtual Machine instance (whose shape types begin
with VM).