Lab
This topic is covered by Lab 7-1: Compute: Create a Web Server on a Compute Instance:
Overview
The Oracle Cloud Infrastructure (OCI) Compute lets you provision and manage compute hosts, known as instances. You can launch instances as needed to meet your compute and application requirements. In this lab, you will create a web server on a compute instance.
In this lab, you will:
- Launch Cloud Shell
- Generate SSH keys
- Create a Virtual Cloud Network and its components
- Create a compute instance
- Install an Apache HTTP server on the instance
Demonstration
From the OCI console:
- Select Instances (pinned by default)
- Click on Create Instance
- On the Create Compute Instance page, enter the following information:
- Name (can be changed later - no need for uniqueness)
- Availability Domain
- Advanced options, on expansion, show:
- Capacity type: one of:
- On-demand (default)
- Preemptible (instance will be terminated if capacity is needed elsewhere)
- Capacity reservation
- Dedicated host for isolation
- Choice of fault domain within an availability domain. Default is to let OCI choose the fault domain.
- Image and shape
- Image is the particular version and patch level of an operating system. Can have pre-configured software.
- Shape is the configuration of the VM image:
- VM or bare metal machine
- CPU type
- number of CPUs
- amount of RAM
- Select or create VCN
- Choose subnet
- Enable public IP address
- Add SSH keys: generated, uploaded public key file, paste public key, or no keys
- Select size of boot volume: 50 GB to 32 TB
- Advanced options:
- Management
- Initialisation script: can be used to install and configure software, configure firewall, etc. The lab uses this to install an Apache web server.
- Availability configuration
- Live migration