OracleCloudBlog
OracleCloudBlog
  • Видео 5
  • Просмотров 39 844
Connect to any OCI Instance directly from the OCI Console
A demonstration of how you can use the OCI build-in Console Connection session (using cloud shell) to connect and login to any of your Windows and Linux Compute Instances.
IMPORTANT: These Cloud-init scripts need to be added to your instances at creation!
Cloud-init for console connection to your Linux Instances:
oc-blog.com/2021/10/06/direct-console-access-to-your-linux-instances-from-the-oci-console/
Cloud-init for console connection to your Windows Instances:
oc-blog.com/2021/10/07/direct-console-access-to-your-windows-instances-from-the-oci-console/
#oraclecloudinfrastructure #oraclecloud #oci #CloudShell #console
Просмотров: 3 872

Видео

Setup time based Auto Scaling for OCI in under 5 minutes!
Просмотров 8 тыс.4 года назад
I know the video is longer then 5 minutes :-) But the actual setup is really less then 5 minutes. Follow these instructions if you want to have Scheduled Based Autoscaling features in #OCI for Compute VMs, Instance Pools, Autonomous Databases, Analytics Cloud, Integration Cloud and Digital Assistant. You can find the script resource here: github.com/AnykeyNL/OCI-AutoScale More info about my wor...
Create Terraform recipes for OCI in minutes!
Просмотров 5 тыс.4 года назад
Want to automate your Oracle Cloud Infrastructure with Terraform, but not want to write complex recipes by hand? No Worry, use the OCI terraform Resource Discovery service to create all the recipes for you! Download the OCI Terraform Provider module: releases.hashicorp.com/terraform-provider-oci/ My blog: www.oc-blog.com
OCI - Setting up a VPN connection with on premise pfsense firewall
Просмотров 21 тыс.6 лет назад
This video explains and demonstrates how to configure an OCI environment to connect with your on premise environment using a VPN connection. In this case, we are using on premise a pfsense firewall virtual machine appliance. For more information, pleaase check out: www.oc-blog.com
Oraclo Cloud - OCI Bare Metal Database - Autoscaling
Просмотров 1,2 тыс.6 лет назад
Example how to schedule you scale up and down of your Oracle Database running on OCI on a Bare Metal Instance. For more info check: www.oc-blog.com/oci-autoscale/ You can download the script here: github.com/AnykeyNL/OCI-AutoScale

Комментарии

  • @VincentChu-o9b
    @VincentChu-o9b 2 месяца назад

    does it work cross regions also ?

  • @LeoAsres
    @LeoAsres 2 месяца назад

    There is support for another respurces across regions ?

    • @LeoAsres
      @LeoAsres 2 месяца назад

      And there is a cron expression generator for the tags for tests ?

    • @LeoAsres
      @LeoAsres 2 месяца назад

      It can be configured for CludShell ?

  • @comosaycomosah
    @comosaycomosah 3 месяца назад

    Would love to see a hub and spoke network setup guide with pfsense firewall or even the Oracle network firewall I cant figure out the cost of running Paolo alto or fortinet or Cisco

  • @rebycfa5673
    @rebycfa5673 4 месяца назад

    this did not work for me for some reason. my boot volume is probably corrupted and im trying to login to the instance using your method but did not work for me. it says wrong password

    • @MakerDad
      @MakerDad 4 месяца назад

      this only works for instances that have been provisioned with my cloudinit scriot. does not work for existing instances

    • @rebycfa5673
      @rebycfa5673 4 месяца назад

      @@MakerDad i fixed it, thankfully i made a backup of my boot volume and made a new instance on it. but before that i did make a new instance on the corrupted boot volume and pasted the script but still did not work for me. but i did solve the issue in the end

  • @VladMZ
    @VladMZ 4 месяца назад

    Excellent!

  • @ram.64
    @ram.64 5 месяцев назад

    Can you add the backdoor user on an existing machine?

    • @MakerDad
      @MakerDad 5 месяцев назад

      not thru cloud init, as that only runs once.

    • @ram.64
      @ram.64 5 месяцев назад

      @@MakerDad thanks for the fast reply. I deleted the SSH port in iptables by mistake and now I lost access to my instance. Not sure how to recover it. Any suggestions?

    • @ShahidKhan-er1sw
      @ShahidKhan-er1sw 5 месяцев назад

      Yes, you can let me tell you how I did. I don't have any public key to connect through my ubuntu. So what I did I launch cloud shell connection as mentioned in the video and write my user name e.g. ubuntu you will find the user name below your public ip in compute instance. I just write 'ubuntu' in login and in the password I just enter my ubuntu my password (The password which I've set for ubuntu like we do on our local pcs.)

    • @ShahidKhan-er1sw
      @ShahidKhan-er1sw 5 месяцев назад

      And once I login what I did I create a ssh key on local pc and then add the public key to authorized_keys filie in my server and that's it.

  • @comosaycomosah
    @comosaycomosah 5 месяцев назад

    would love to see some new videos from ya on things like oke and maybe cis landing zones customizing them things like that

  • @dbsql6238
    @dbsql6238 7 месяцев назад

    I am screwed. I installed something from OCI on scaling CPUs on my Exadata on both nodes from Doc ID 2719916.1.. This looks similar to it. Don't understand this setup at all. The tool prompts of things like my userid, fingerprint?, etc. 5 minutes seems like 5 months.

    • @oraclecloudblog
      @oraclecloudblog 7 месяцев назад

      where from are you trying to run this script? an normal OCI Compute instance?

    • @dbsql6238
      @dbsql6238 7 месяцев назад

      @@oraclecloudblog Exadata. Installed in both nodes. Should I run it on a separate machine?

    • @oraclecloudblog
      @oraclecloudblog 7 месяцев назад

      @@dbsql6238Not sure if you can use Instance Principle (Dynamic groups) with the Exa Nodes. So you need to configure the OCI CLI to use API keys for authentication.

    • @dbsql6238
      @dbsql6238 7 месяцев назад

      @@oraclecloudblog thanks, I’ll try that.

  • @brianbennett1028
    @brianbennett1028 8 месяцев назад

    Does this still work?

  • @maybeageek
    @maybeageek 9 месяцев назад

    Old video, yet it helped me making it work :-)

  • @JavierBarria-h7f
    @JavierBarria-h7f Год назад

    Thanks your step by step its very explain!

  • @Arupchakraborty2004
    @Arupchakraborty2004 Год назад

    why not using autoscaling feature in OCI

    • @MakerDad
      @MakerDad Год назад

      you can, but only works with compute instance pools and only scales in and out. This script supports many services and can scale up down compute

  • @gustavoeclis
    @gustavoeclis Год назад

    Thanky you so much!

  • @aduarte034
    @aduarte034 Год назад

    Hi guys, what are the ciphers that OCI uses for phase 1 and 2? Where can I see them? Do we have all the possible ciphers available and used when the remote side initiates the connection? Thanks in advance.

  • @onlinesaidasa9105
    @onlinesaidasa9105 Год назад

    Namaste There are two types of scaling a) Vertical Scaling : This involves adding cores/memory etc. to the same VM (Called Scale Up) or removing cores/memory etc.( Called Scale In) It requires downtime b) Horizontal scaling : Auto scaling is applicable here and we can either add additional VM's (Scale Out) or reduce VM's (Scale In) There is no downtime involved.

  • @Tom_Azin
    @Tom_Azin Год назад

    Thank you for the super video. Very easy to follow along. Is there any way to set this up if a pfSense box has a dynamic public IP, or is it mandatory to have a static public IP? Thank you.

    • @MakerDad
      @MakerDad Год назад

      Session is initiated from on-premise, so from that perspective it is fine that the IP changes. You just need to change to a different identifier in the configuration, not to use the IP as identifier.

    • @Tom_Azin
      @Tom_Azin Год назад

      @@MakerDad Do you mean that you can just specify a dyndns hostname when setting up CPE? In the video at 13:05 the field only says IP Address. I have a dynamic public IP and I have dyndns set up via cloudflare on the pfsense. So can I just put the hostname instead of the IP here? Thanks.

  • @lillyr562
    @lillyr562 Год назад

    I'm not sure how active this still is, but I followed your tutorial, and it was so clear and perfect! Thank you!! I can ping to and from my local network without issue. I can SSH in and everything works fine. My issue is that whenever I run a command like top in a ssh session, it all freezes. The same happens with a vnc/rdp session to the OCI machine from local. I am able to do all of this from the public IP so I know the issues is somewhere between OCI and my network. My pfSense is behind a nat so I am wondering if there are any ports I need to forward, or check are available?

    • @lillyr562
      @lillyr562 Год назад

      For anyone else that comes looking, I had to set the MTU down to 1350 from the default 1400 in advanced settings on my pfSense.

    • @oraclecloudblog
      @oraclecloudblog Год назад

      thanks. I do not have this issue, but I am not behind NAT, that might be causing this issue.

  • @anonimniqt
    @anonimniqt Год назад

    There is no compatible shape for Oracle Autonomous Linux! I need this script, because I run ghost blog on one of my instances, but everyday when I wake up and try to open the blog ghost service is down and instance is unaccesible from ssh and I need to reboot it to work again. Because Im not sure what cause this issue, I want to make automation to stop the instance from 1 hour during night and then start it again.

  • @hayatmohammadkhan6703
    @hayatmohammadkhan6703 Год назад

    Sir, You have solved my confusion of using Site-to-Site VPN connection. I studied many, but this one is very explanatory and with clear example.

  • @JuanAlgabaColera
    @JuanAlgabaColera 2 года назад

    Great video, but you promised that in the description we would find a link to another video for those of us who do not know how to configure CLI. I haven´t been able to find it.

  • @briandocherty618
    @briandocherty618 2 года назад

    Hello. I am really trying to get this running, I previously reported the same issue as Allison Lane, but having read the response I have created the namespace and tags. Upon trying to run the AutoScaleAll.py script I got the following, please could you help? python3 AutoScaleALL.py ########################################################################################## # Running Auto Scale # ########################################################################################## Traceback (most recent call last): File "AutoScaleALL.py", line 1503, in <module> config, signer = OCIFunctions.create_signer(cmd.config_profile, cmd.is_instance_principals, cmd.is_delegation_token) File "/home/opc/OCI-AutoScale/OCIFunctions.py", line 60, in create_signer (config_profile if config_profile else oci.config.DEFAULT_PROFILE) File "/usr/lib/python3.6/site-packages/oci/config.py", line 106, in from_file raise ConfigFileNotFound("Could not find config file at {}, please follow the instructions in the link to setup the config file docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm".format(expanded_file_location)) oci.exceptions.ConfigFileNotFound: Could not find config file at /home/opc/.oci/config, please follow the instructions in the link to setup the config file docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm

  • @nlahmi
    @nlahmi 2 года назад

    Great tutorial, thanks! (the menus have changed since the video was released but everything works pretty much the same)

  • @MaestroDJDaniello
    @MaestroDJDaniello 2 года назад

    Awesome, I need learn it and split with my mt router

  • @newsnetworkz
    @newsnetworkz 2 года назад

    Fantastic video, I couldn't find such a clear demo anywhere for OCI VPN sett

  • @allisonlane6778
    @allisonlane6778 2 года назад

    I am getting the error: oci.exceptions.ServiceError: {'opc-request-id': '922345.....A2A135', 'code': 'NotAuthorizedOrNotFound', 'message': 'Authorization failed or requested resource not found', 'status': 404} when I run the command python3 CreateNameSpaces.py. Please advise.

    • @oraclecloudblog
      @oraclecloudblog 2 года назад

      Can you see if you can manually create the namespace in your tenancy?

  • @harishkumar432
    @harishkumar432 2 года назад

    Hi, Please suggest how to set up the environment for API Authentication?

  • @if0else0
    @if0else0 2 года назад

    Straight to the point! Thank you, man.

  • @antoniolabayen8288
    @antoniolabayen8288 3 года назад

    I tried this, but there are many prerequisites to setting up the host for the CLI and API. Where would this be explained?

  • @kabandajamir9844
    @kabandajamir9844 3 года назад

    so nice explanation sir may God reward you great super nice

  • @kabandajamir9844
    @kabandajamir9844 3 года назад

    The world's best teacher

  • @pcpatel558
    @pcpatel558 3 года назад

    Very well explained, made life easy, thank you for creating and posting wonderful & informative post

  • @rohitashokchaudhari
    @rohitashokchaudhari 3 года назад

    Is this Bare Metal Autoscaling possible for Mysql Database Service in OCI as well?

  • @kasunmagedaragama8762
    @kasunmagedaragama8762 3 года назад

    Worth a lot! thanks a lot! Awesome!

  • @guillaumeneveux3445
    @guillaumeneveux3445 3 года назад

    Works really great !

  • @sankarachari
    @sankarachari 3 года назад

    Sorry Richard sir, this Auto Scaling not working.

  • @sankarachari
    @sankarachari 3 года назад

    AutoSchedule not working. While running the syntax in cmd python3 AutoScaleALL.py its stopping all the resources tagged with. But, on tagged up hour it is not getting ON itself. Is it working only on downsizing? While the time is up to instances or apps should be ON, it is not automatically running those instances or application which are tagged by 1.

    • @MakerDad
      @MakerDad 3 года назад

      Please send me email on richard@oc-blog.com so I can help figure out what is going wrong

  • @sankarachari
    @sankarachari 3 года назад

    If I will create instance in 'ap-Mumbai-1' region tenancy, which time I need to schedule on ? UTC or UTC+5:30 ?

  • @sankarachari
    @sankarachari 3 года назад

    After watching this video 5 times I observed that instance is created in compartment (Autoscale) but the policy created on root compartment. Why so? Any reason for that?

    • @BMAPS
      @BMAPS 2 года назад

      because of CreatingNamespace script its done that way, I have tried to create policy for specific compartment but when I executed CreatingNamespace schedule py file it doesn't work properly. So one needs python knowledge to tackle that issue.

  • @sankarachari
    @sankarachari 3 года назад

    Hi, will it work for DB server and application server under VM?

  • @sankarachari
    @sankarachari 3 года назад

    I am getting error "Authorization failed or requested resource not found". Could you please explain why do such error occurs? Thank you.

    • @MakerDad
      @MakerDad 3 года назад

      did you setup your environment for API Authentication?

    • @sankarachari
      @sankarachari 3 года назад

      @@MakerDad I just followed as instructed in the video. Not more than that.

    • @sankarachari
      @sankarachari 3 года назад

      @@MakerDad how to setup environment for API Authentication?

    • @sankarachari
      @sankarachari 3 года назад

      is there any documentation I can follow?

    • @sankarachari
      @sankarachari 3 года назад

      @@MakerDad Thank you. Now its resolved.

  • @sorenlloyd
    @sorenlloyd 3 года назад

    Really useful bootstrapping terraform, appreciated

    • @sorenlloyd
      @sorenlloyd 3 года назад

      This worked beautifully on my OCI server, on my mac I see 'x509: certificate signed by unknown authority'

  • @sankarachari
    @sankarachari 3 года назад

    Hi this is amazing..! Can you please make a video of connecting OCI with python ? to run shell scripts stored in an instance. I want to call example.sh file stored in an OCI with python. I know we can use os and sys library. but don't know how to connect python to OCI and reaching to the location where the example.sh files is stored.

  • @zarneaung8484
    @zarneaung8484 3 года назад

    very helpful for me. Thanks.

  • @diegoalonsoramirezleon6551
    @diegoalonsoramirezleon6551 3 года назад

    Hi! I would like to apply this solution for my database instance and I have a doubt about that. Does the tags can be applied to the database system or to the database node? My database is in a virtual machine.

  • @TravelChroniclesHD
    @TravelChroniclesHD 3 года назад

    Will this work from oci console instance ?

    • @oraclecloudblog
      @oraclecloudblog 3 года назад

      You could run the script from the oci console, but you would not be able to schedule it there, as that instance is powered off when not being used. You can better just a free-tier instance.

  • @kasunmagedaragama8762
    @kasunmagedaragama8762 3 года назад

    Really worth every minute! Thanks a lot!

  • @bunty12357
    @bunty12357 3 года назад

    Hi Richard, I followed your video still it's not working for me kindly help

    • @MakerDad
      @MakerDad 3 года назад

      I responded to your email

  • @webgeestpaul
    @webgeestpaul 3 года назад

    Note that the Create Policy screen now looks a bit different. Click Customize (Advanced) to enter your policy.

  • @ashsalah1
    @ashsalah1 3 года назад

    How to connect Oracle Analytics cloud OAC on public network to same cloud tenancy database on private network

  • @ChiliJ
    @ChiliJ 4 года назад

    Is there a policy required to run discovery? I have full access to a compartment, but not the tenancy. Getting the following error when doing discovery: [ERROR] could not get tenancy ocid from compartment ocid Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found. http status code: 404.

    • @MakerDad
      @MakerDad 4 года назад

      You can now-a-days run discovery mode directly from the OCI UI in the resource manager. Can you check if you can run discovery from there?