OCI LiveLab

guides
Published

February 17, 2025

SSH Keys

cd .ssh
ssh-keygen -b 2048 -t rsa -f <<sshkeyname>>

IAM

  1. Created a compartment named “demo”
  2. Crated a domain within demo called “LiveLab”
  3. Created a group within that domain called “oci-group”
  4. create user “TestUser” to be part of “oci-group”

VCN

  1. Created a VCN through wizard called “OCI_HOL_VCN”
  • IP RANGE: 10.0.0.0/16, Public 10.0.1.0/24, Private 10.0.2.0/24
  1. Created a Security group that allows SSH and TCP Traffic

COMPUTE

  1. Created a Compute Instance
  2. Updated Yum and installed HTTP
  3. Configured Apache
sudo yum install httpd -y
sudo apachectl start
sudo systemctl enable httpd
sudo apachectl configtest
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload
sudo bash -c 'echo This is my Web-Server running on Oracle Cloud Infrastructure >> /var/www/html/index.html'
  1. SG already allowed TCP

Block Volume

  1. block volume is created
  2. attached to instance
  3. Run iSCSI commands
  4. mount drive
ls -l /dev/oracleoci/oraclevd*
sudo mkfs -t ext4 /dev/oracleoci/oraclevdb
sudo mkdir /mnt/disk1
sudo mount /dev/oracleoci/oraclevdb /mnt/disk1
df -h

Object Storage

  1. created object storage
  2. uploaded file
  3. link: link