OCI LiveLab
guides
SSH Keys
cd .ssh
ssh-keygen -b 2048 -t rsa -f <<sshkeyname>>
IAM
- Created a compartment named “demo”
- Crated a domain within demo called “LiveLab”
- Created a group within that domain called “oci-group”
- create user “TestUser” to be part of “oci-group”
VCN
- 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
- Created a Security group that allows SSH and TCP Traffic
COMPUTE
- Created a Compute Instance
- Updated Yum and installed HTTP
- 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'
- SG already allowed TCP
Block Volume
- block volume is created
- attached to instance
- Run iSCSI commands
- 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
- created object storage
- uploaded file
- link: link