Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

server on cloud - what to install?

Wed Dec 19, 2018 4:34 pm

Hello,
I want to run a mikrotik server on Amazon cloud
from what I read and understadn I need to first install any version of Linux then install the mikrotik image - is this correct?
or I can upload image to the cloud?

can I work according to this guide:
https://medium.com/@kvapss/easy-way-for ... 1cf7302b85
is this the right way to do this?

is there anything I need to know ?

Thanks ,
 
User avatar
jprietove
Trainer
Trainer
Posts: 212
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

Re: server on cloud - what to install?

Wed Dec 19, 2018 5:10 pm

In AWS you can select Mikrotik CHR at VM creation time. No need to install Linux or anything else... Just choose Mikrotik CHR instead of Windows, Ubuntu or any other thing

Enviado desde mi Redmi 3 mediante Tapatalk

 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: server on cloud - what to install?

Thu Dec 20, 2018 10:10 am

OK

Today I have been inform that we are not going to work with Amazon ,but with Oracle Cloud
can I do the same thing there?

I have look on the "ready to use" images \ OS - and ther is no mikrotik there
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26287
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: server on cloud - what to install?

Thu Dec 20, 2018 10:51 am

Yes there are images on mikrotik.com download page, under CHR section.
we have plenty of guides for different clouds, maybe you can read all of them, and will be able to use that knowledge to understand how your oracle cloud works:

https://wiki.mikrotik.com/wiki/Manual:CHR
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: server on cloud - what to install?

Tue Dec 25, 2018 10:34 am

great - it's working!

I have notice that the lisence is free
are there any limitations?
for example - how may l2tp client can the server have ?

Thanks ,
 
mistry7
Forum Guru
Forum Guru
Posts: 1480
Joined: Tue Oct 13, 2009 11:57 am
Location: Germany

Re: server on cloud - what to install?

Tue Dec 25, 2018 11:02 am

 
gstubbe
just joined
Posts: 17
Joined: Fri Feb 22, 2019 3:06 pm

Re: server on cloud - what to install?

Fri Oct 11, 2019 4:48 pm

Hello,

How did you manage to install a CHR instance on Oracle Cloud? I'm unable to get this working.
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: server on cloud - what to install?

Tue Oct 15, 2019 2:16 pm

yes , without any problem
uplaod the image to the backet and install from there
make sure you open the port ssh\winbox in the security list
it's working for me for 5 months now
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: server on cloud - what to install?

Wed Aug 26, 2020 2:08 pm

Tricky process.
My Steps:

Register with Oracle Cloud, select your Region, finish with Debet/Credit Card.
https://www.oracle.com/cloud/
  • Menu > Object Storage > Object Storage
    Here we add new bucket-10GB (free)
    Download a CHR in vmdk from mikrotik.com
    Upload a chr-*vmdk file here on OCI.
  • Menu > Compute > Custom Images
    Import Image from Bucket-10GB, vmdk image type, paravirtualized mode.
    This will in progress few minutes !
    Click at this "Custom Image" you create and press the "Edit Details" button -> ENABLE compatibility with VM.Standard.E2.1.Micro and save changes.
  • Menu > Compute > Instances
    Create a new VM and you must check all AD1, AD2, AD3 locations, because maybe only one of them can run VM.Standard.E2.1.Micro
    Remember change password, add other security policy when you connect to it.
    Download all .key and .pub files because they are necessary for future recovery access to console or vnc !!!.
  • Menu > Networking > Virtual Cloud Networks > click at name > below "Resources" > Security List - Here you can add new rule to enable access to WinBox/VPN etc services to ALL INSTANCES.
Tips: To use Putty with instance private key you must convert it to PPK: https://ocikb.com/2020/08/convert-oci-c ... sa-and-ppk
1) openssl rsa -in ssh-key-2020-07-29.key -out ssh-key-2020-07-29.rsa
2) Puttygen > Load a .rsa key and Save button to save as .ppk file.
3) Putty > Connection > SSH > Auth > Browce... and select the .ppk file
4) Putty > Connection > Data > Auto-login username: opc or ubuntu (remember, MikroTik not use that key at all, it;s only for other image).

If you use KeePassXC then you can create a new entry, in advance add a .key as attachment. Agent SSH, here you can assign a attachment key as private key. OK. Run panget.exe and in KeePassXC RMB and assign key. Now you can login remotely.

All in one screenshot
Image

BTW.
Oracle give us additional architecture ARM, the vm with 2 OCPU have 1Gb network (480/480Mbps Internet), 4 OCPU have 2Gb network (1/1Gbps Internet). 24GB RAM.
I prefer Ubuntu 20.04 LTS.
We not have a CHR for ARM 64 - we must wait for that option.
Last edited by SiB on Mon Sep 20, 2021 1:44 am, edited 1 time in total.
 
Lasto4kin
just joined
Posts: 2
Joined: Tue Apr 27, 2021 9:41 am

Re: server on cloud - what to install?

Tue Apr 27, 2021 9:45 am

custom images is only available for trial account, first 30 days. after that, you cannot create a virtual machine from the image :(

please help me install mikrotik chr in oracle cloud
 
hmoghani
just joined
Posts: 10
Joined: Thu Oct 30, 2014 9:39 pm

Re: server on cloud - what to install?

Tue Jun 01, 2021 6:33 pm

Tricky process.
My Steps:

Register with Oracle Cloud, select your Region, finish with Debet/Credit Card.
https://www.oracle.com/cloud/
  • Menu > Object Storage > Object Storage
    Here we add new bucket-10GB (free)
    Download a CHR in vmdk from mikrotik.com
    Upload a chr-*vmdk file here on OCI.
  • Menu > Compute > Custom Images
    Import Image from Bucket-10GB, vmdk image type, paravirtualized mode.
    This will in progress few minutes !
    Click at this "Custom Image" you create and press the "Edit Details" button -> ENABLE compatibility with VM.Standard.E2.1.Micro and save changes.
  • Menu > Compute > Instances
    Create a new VM and you must check all AD1, AD2, AD3 locations, because maybe only one of them can run VM.Standard.E2.1.Micro
    Remember change password, add other security policy when you connect to it.
    Download all .key and .pub files becasue they are neccessery for future recovery access to console or vnc !!!.
  • Menu > Networking > Virtual Cloud Networks > click at name > below "Resources" > Security List - Here you can add new rule to enable access to WinBox/VPN etc services to ALL INSTANCES.
Tips: To use Putty with instance private key you must convert it to PPK: https://ocikb.com/2020/08/convert-oci-c ... sa-and-ppk
1) openssl rsa -in ssh-key-2020-07-29.key -out ssh-key-2020-07-29.rsa
2) Puttygen > Load a .rsa key and Save button to save as .ppk file.
3) Putty > Connection > SSH > Auth > Browce... and select the .ppk file
4) Putty > Connection > Data > Auto-login username: opc or ubuntu (remember, MikroTik not use that key at all, it;s only for other image).

All in one screenshot
Image

Hi,

I tried this method and it worked great.
Recently Oracle added the A1.Flex compute type in AlwaysFree. It's ARM based. it has more cores and more memory and also more bandwidth.
I tried installing Mikrotik on it using CHR images and also ISO images but I wasn't successful. Have you tried the A1.Flex type with Mikrotik? I'm guessing because it's ARM based Mikrotik Cloud can not be installed on it. I'd appreciate your help. If somehow I can get it installed on it, it would be great. I would have a free Mikrotik in the cloud with 1gbps bandwidth.

Thanks
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: server on cloud - what to install?

Tue Jun 01, 2021 8:19 pm

Yes, this is good news. Sorry but you must try by yourself that new platform, maybe a vmdk image of stable release will work at that platform.
My setup use both vm and they works for me as "production" and I not have a external account to test this new platform.
 
hmoghani
just joined
Posts: 10
Joined: Thu Oct 30, 2014 9:39 pm

Re: server on cloud - what to install?

Thu Jun 03, 2021 10:28 pm

I tried it and it doesn't work. I don't know Mikrotik supports ARM-based CPUs yet. They have their own ARM-based RouterOS products, but as for installing an image or ISO file, they only support x86 architecture. All the Cloud Hosted Router images in their download section is for x86 servers. I hope they release an ISO/Image file for ARM-based servers too.
 
mjavh
just joined
Posts: 1
Joined: Fri Dec 13, 2019 10:24 am
Location: BE & PL

Re: server on cloud - what to install?

Sun Nov 07, 2021 10:39 pm

Hello

I had a free Oracle Clout but converted to an "paid" version. Uploaded Custom Image of CHR, created a free VM, updated network to open ports and CHR is running and accesible!.

Finaly, I deleted custom image and until now, no extra costs. :-) for this operation.

Thank you (Dzięki) SiB for your help! :-)
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: server on cloud - what to install?

Wed Nov 02, 2022 1:10 am

Has anyone done a comparison between AWS EC2 running CHR and the oracle method, not to clear on which one yet LOL.

Who is online

Users browsing this forum: DanMos79, Google [Bot] and 49 guests