Instance Creation in Oracle Cloud

     To launch a free Linux Server in Oracle Cloud 

    1. Create a Virtual Cloud Network (VCN) 

    2. An Internet Gateway 

    3. Security Rules 

    4. A Public Subnet  & 

    5. Compute Instance 

1. Virtual Cloud Network (VCN)

  • Open the Hamburger Menu -> Networking -> Virtual Cloud Networks.
  • Click Create VCN 
  • Give  Name (zyn-vcn).
  • Under IPv4 CIDR Blocks, enter: 10.0.0.0/16.
  • Scroll to the bottom and click Create VCN

  •  2. An Internet Gateway 

    The internet gateway acts as the bridge connecting your private VCN to the public internet. 
    1. Click on zyn-vcn VCN -> Gateway -> Internet Gateways -> Create Internet Gateway.
    2. Name (zyn-internet-gateway).
    3. Click Create Internet Gateway.
    Add Route rules for Internet Gateway
        1. zyn-vcn -> Routing ->  Route table -> Default route table for zyn-vcn 
        2. Route Rules -> Add Route Rules
    • Target Type: Internet Gateway
    • Destination CIDR Block: 0.0.0.0/0 
    • Target Internet Gateway: zyn-internet-gateway 
        3. Click Add Route Rules.

     3. Security Rules 

     Security lists hold firewall rules. Explicitly allow traffic to reach the server.
    1. zyn-vcn -> security -> Security Lists (Default Security List for zyn-vcn)
    2. Security Rules -> Add Ingress Rules
    3. Create the SSH Rule (to log into your server):
      • Source Type: CIDR
      • Source CIDR: 0.0.0.0/0
      • IP Protocol: TCP
      • Destination Port Range: 22 [1, 2, 3]
    4. Click Add Ingress Rules.
      Optional: Repeat this step using port 80 (HTTP) or 443 (HTTPS) for unsecure/secure website 

     4. A Public Subnet 

    A subnet is a smaller piece of VCN.
    1. zyn-vcn -> Subnets -> Create Subnets 
    2. Name: zyn-public-subnet
    3. Subnet Type: Regional 
    4. IPv4 CIDR Block: 10.0.1.0/24 
    5. Subnet Access: Public Subnet.
    6. Default Route Table for zyn-vcn 
    7. Default Security List for zyn-vcn 
    8. Create Subnet.

     5. The Compute Instance

  • Hamburger Menu -> Compute ->  Instances -> Create Instance
  • Name: server1
  • Image and shape -> Always Free-eligible Linux OS and hardware shape 
  • Networking: 
    • Virtual cloud network -> select virtual cloud network -> zyn-vcn
    • Subnet: zyn-public-subnet
    • Public IP Address: Assign a public IPv4 address
  • Under SSH keys:
    • Generate a key pair for me.
    • Download private key 
  • Click Create at the bottom of the page

    1. Comments

      Popular posts from this blog

      Database Network : Configuration Parameters

      Undo Segments : Drop Problematic Undo Segments