Skip to content

Oracle Cloud

Oracle Cloud is a cloud computing service offered by Oracle Corporation providing servers, storage, network, applications and services through a global network of Oracle Corporation managed data centers. The company allows these services to be provisioned on demand over the Internet.

Oracle Cloud provides Infrastructure as a Service (IaaS), Platform as a Service (PaaS), Software as a Service (SaaS), and Data as a Service (DaaS). These services are used to build, deploy, integrate, and extend applications in the cloud. This platform supports numerous open standards (SQL, HTML5, REST, etc.), open-source applications (Kubernetes, Hadoop, Kafka, etc.), and a variety of programming languages, databases, tools, and frameworks including Oracle-specific, Open Source, and third-party software and systems.

로그인 방법

"Oracle Cloud" 사이트 접속 방법.

오라클 클라우드 로그인 페이지에 접속하면 다음과 같이 출력된다.

Oracle_cloud_login_-_kr.png

내아이디(테넌시) 입렵한 후 "Oracle Cloud" 사이트로 접속하면 된다.

참고로 Identity domain: Default 이다.

Oracle Cloud Free Tier

Oracle Cloud에서 무료로 애플리케이션을 개발하고, 테스트하고, 배포합니다. 한 번 가입으로 무료 서비스 2개에 액세스할 수 있습니다.

새로운 상시 무료

서비스로 시간 제한 없이 사용할 수 있습니다.

  • Oracle APEX(Application Express), Oracle SQL Developer 같은 강력한 도구와 함께 Oracle Autonomous Database 2개 제공
  • Oracle Cloud Infrastructure Compute VM 2개 / Block, Object 및 Archive Storage / Load Balancer 및 data egress / Monitoring 및 Notifications

웹 콘솔 접속 방법

Instances_Oracle_Cloud_Infrastructure.jpg

Free Tier

"매월 OCPU 3,000시간 및 18,000GB 시간 제공" 의 의미

  • 4 cpus x 31.25days x 24hours = 3000 OCPU hours.
  • 24GB ram x 31.25days x 24 hours = 18000 GB hours.

결국, 4cpu + 24GB 를 매일 365일 사용해도 무료라는 뜻입니다.

"아웃바운드 데이터 전송: 매월 10TB." 의 의미

  • 10TB = 10,000GB
  • 330GB / 일
  • 13GB / 시간

우분투 이미지 설치 직후 접속 할 일

접속한 후 필요한 몇 가지 지침을 정리한다. 참고로 우분투 이미지는 기본 접속 아이디가 "ubuntu" 이다.

rootubuntu 사용자 비밀번호 바꾸기:

sudo -s  ## 안하면 해당 사용자의 기존 비밀번호를 물어본다.
passwd ubuntu
passwd root

사용자 ID 바꾸기:

  • SSH로 접속하면 root로 접속하지 말라한다.
  • 클라우드 쉘에서 "root"로 접속하거나 (가장 추천)
  • 따라서 새로운 아이디를 만들어 접속하거나
  • 잠시 sshd 설정(/etc/ssh/sshd_config)에서 root 접속 가능하도록 풀자(PermitRootLogin yes)
sudo -s
usermod -l yourid ubuntu
groupmod -n yourid ubuntu
usermod -d /home/yourid -m yourid

(필요하다면) 스왑 메모리 추가:

  • 참고로 VM.Standard.E2.1.Micro (AMD 무료 인스턴스) 는 초기 스왑 설정이 없고, 메모리도 1G 이다. 그래서 2G 스왑 메모리 추천
fallocate -l 2GB /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
echo "/swapfile    none    swap    sw    0    0" >> /etc/fstab

가상 클라우드 네트워크

네트워크 보안 설정시 주의사항

소스 포트 / 대상 포트 설정시, 소스 포트를 "모두" (입력란 공란)으로 해야 된다.

모두 443/443 으로 했다가 접속 안되더라...

(내꺼) 수신 규칙

List of ingress rules

Stateless

소스

IP 프로토콜

소스 포트 범위

대상 포트 범위

유형 및 코드

허용

설명

아니오

0.0.0.0/0

TCP

모두

22

포트 22 SSH Remote Login Protocol에 대한 TCP 트래픽입니다.

아니오

0.0.0.0/0

ICMP

3, 4

3, 4 대상에 연결할 수 없음: 단편화 필요 및 단편화 안함이 설정됨에 대한 ICMP 트래픽입니다.

아니오

10.0.0.0/16

ICMP

3

3 대상에 연결할 수 없음에 대한 ICMP 트래픽입니다.

아니오

0.0.0.0/0

TCP

모두

443

포트 443 HTTPS에 대한 TCP 트래픽입니다.

아니오

0.0.0.0/0

UDP

모두

4242

포트 4242 에 대한 UDP 트래픽입니다.

Nebula Lighthouse

iptables settings

Osom.run#Iptables 항목 참조.

Troubleshooting

Oracle Cloud Ubuntu 22.04 Upgrade Issue

sudo apt upgrade 도중 다음과 같은 내용이 출력되더라.

Pending kernel upgrade
----------------------

Newer kernel available

The currently running kernel version is 5.15.0-1030-oracle which is not the expected kernel version 5.15.0-1033-oracle.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.


Restarting services...
Daemons using outdated libraries
--------------------------------

  1. dbus.service          4. networkd-dispatcher.service  7. ssh.service             10. unattended-upgrades.service
  2. iscsid.service        5. polkit.service               8. systemd-logind.service  11. [email protected]
  3. ModemManager.service  6. rpcbind.service              9. udisks2.service         12. none of the above

(Enter the items or ranges you want to select, separated by spaces.)

Which services should be restarted?

Service restarts being deferred:
 systemctl restart ModemManager.service
 /etc/needrestart/restart.d/dbus.service
 systemctl restart iscsid.service
 systemctl restart networkd-dispatcher.service
 systemctl restart polkit.service
 systemctl restart rpcbind.service
 systemctl restart ssh.service
 systemctl restart systemd-logind.service
 systemctl restart udisks2.service
 systemctl restart unattended-upgrades.service
 systemctl restart [email protected]

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

일단 재부팅했다.

갑자기 인스턴스가 접속도 안되고 동작도 멈췄다!

Free Tier 는 문의도 못하는갑돠... 네트워크와 인스턴스 모두 문제인듯... (정확한 원인 모름)

그냥 관련 인스턴스 모두 종료 및 볼륨 연결 해제, VNIC, VNET 모두 제거하고 연결 해제된 볼륨으로 인스턴스 새로 만들어서 접속하니 되더라..

See also

Favorite site