- Видео 5
- Просмотров 39 844
OracleCloudBlog
Нидерланды
Добавлен 14 сен 2018
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
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
does it work cross regions also ?
yes
There is support for another respurces across regions ?
And there is a cron expression generator for the tags for tests ?
It can be configured for CludShell ?
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
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
this only works for instances that have been provisioned with my cloudinit scriot. does not work for existing instances
@@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
Excellent!
Can you add the backdoor user on an existing machine?
not thru cloud init, as that only runs once.
@@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?
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.)
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.
would love to see some new videos from ya on things like oke and maybe cis landing zones customizing them things like that
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.
where from are you trying to run this script? an normal OCI Compute instance?
@@oraclecloudblog Exadata. Installed in both nodes. Should I run it on a separate machine?
@@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.
@@oraclecloudblog thanks, I’ll try that.
Does this still work?
Yes
Old video, yet it helped me making it work :-)
Thanks your step by step its very explain!
why not using autoscaling feature in OCI
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
Thanky you so much!
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.
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.
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.
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.
@@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.
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?
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.
thanks. I do not have this issue, but I am not behind NAT, that might be causing this issue.
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.
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.
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.
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
Great tutorial, thanks! (the menus have changed since the video was released but everything works pretty much the same)
Awesome, I need learn it and split with my mt router
Fantastic video, I couldn't find such a clear demo anywhere for OCI VPN sett
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.
Can you see if you can manually create the namespace in your tenancy?
Hi, Please suggest how to set up the environment for API Authentication?
Straight to the point! Thank you, man.
I tried this, but there are many prerequisites to setting up the host for the CLI and API. Where would this be explained?
so nice explanation sir may God reward you great super nice
The world's best teacher
Very well explained, made life easy, thank you for creating and posting wonderful & informative post
Is this Bare Metal Autoscaling possible for Mysql Database Service in OCI as well?
Worth a lot! thanks a lot! Awesome!
Works really great !
Sorry Richard sir, this Auto Scaling not working.
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.
Please send me email on richard@oc-blog.com so I can help figure out what is going wrong
If I will create instance in 'ap-Mumbai-1' region tenancy, which time I need to schedule on ? UTC or UTC+5:30 ?
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?
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.
Hi, will it work for DB server and application server under VM?
I am getting error "Authorization failed or requested resource not found". Could you please explain why do such error occurs? Thank you.
did you setup your environment for API Authentication?
@@MakerDad I just followed as instructed in the video. Not more than that.
@@MakerDad how to setup environment for API Authentication?
is there any documentation I can follow?
@@MakerDad Thank you. Now its resolved.
Really useful bootstrapping terraform, appreciated
This worked beautifully on my OCI server, on my mac I see 'x509: certificate signed by unknown authority'
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.
very helpful for me. Thanks.
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.
Will this work from oci console instance ?
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.
Really worth every minute! Thanks a lot!
Hi Richard, I followed your video still it's not working for me kindly help
I responded to your email
Note that the Create Policy screen now looks a bit different. Click Customize (Advanced) to enter your policy.
How to connect Oracle Analytics cloud OAC on public network to same cloud tenancy database on private network
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.
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?