Page 1 of 1

How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Wed Aug 31, 2022 12:37 pm
by AlexT
Hello!
Please help installing CHR or x86 image on Oracle Cloud which no longer has the ability to create custom disks/images (30 days have passed).

After the following procedure:
  • unzip install-image-7.4.1.zip
  • dd if=install-image-7.4.1.img of=/dev/sda
  • echo 1 > /proc/sys/kernel/sysrq
  • echo b > /proc/sysrq-trigger

I am stuck at this step:
1.png
After selecting the highlighted item above (Boot Install...), the process stops on the next:
2.png

Perhaps there is another way to install on Oracle Cloud?

Re: How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Fri Sep 09, 2022 7:49 am
by poisons
I hope you download the chr image to ramdisk? If not there is a possibility that you overwrite your chr image with chr image.

Re: How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Sun May 14, 2023 10:06 am
by p4t
Hi!

Custom images are not an option for Oracle Always Free tier after the trial period expires.
So you can install the image from inside the vm.
If anyone interested, here's a way to do it.

1) Create instance. Under "Image and shape" choose "Rocky Linux 9.1 - Free (x86_64)". Save Private key. Create.
2) Open puttygen, "Load" the private key, "Save private key" as mikrotik.ppk
3) Open putty, "Connection->SSH->Auth->Credentials", browse for ppk on the first and private key on the second.
Return on Session and enter rocky@(your vm's public address) on "Host Name (or IP address)" box and open.
4) Execute
sudo -i
yum install unzip
umount -l /dev/sda1
curl -L https://download.mikrotik.com/routeros/ ... .9.img.zip | funzip | dd of=/dev/sda bs=1M
sync
reboot
(you may need to force reboot it from the console)
5) Firstly check the console's firewall (Networking->Virtual cloud networks->yourvcn->Security Lists)
and the connect through the public ip and secure RouterOS from inside.

Re: How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Mon Jan 22, 2024 4:05 pm
by kovalr
Hi!

Custom images are not an option for Oracle Always Free tier after the trial period expires.
So you can install the image from inside the vm.
If anyone interested, here's a way to do it.

1) Create instance. Under "Image and shape" choose "Rocky Linux 9.1 - Free (x86_64)". Save Private key. Create.
2) Open puttygen, "Load" the private key, "Save private key" as mikrotik.ppk
3) Open putty, "Connection->SSH->Auth->Credentials", browse for ppk on the first and private key on the second.
Return on Session and enter rocky@(your vm's public address) on "Host Name (or IP address)" box and open.
4) Execute
sudo -i
yum install unzip
umount -l /dev/sda1
curl -L https://download.mikrotik.com/routeros/ ... .9.img.zip | funzip | dd of=/dev/sda bs=1M
sync
reboot
(you may need to force reboot it from the console)
5) Firstly check the console's firewall (Networking->Virtual cloud networks->yourvcn->Security Lists)
and the connect through the public ip and secure RouterOS from inside.
Has anyone tried this procedure?

Re: How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Tue Feb 06, 2024 3:52 pm
by gammy69er
Has anyone tried this procedure?
I did... Failed for me.

But anything more than a Linux instance is failing for me

https://youtu.be/Wlns9J9a2K8?si=_v0IAbzl7dHz75b_

This video has a solid guide, but I was still unable to get my instances working at all.

Maybe you'll have more luck

Re: How to install Mikrotik CHR on Oracle Cloud always free instance?

Posted: Sat Mar 23, 2024 9:48 am
by p4t
I'm sorry that it didn't work for you.
But I've done it multiple times and it does work.

The video you are referring to, needs an account that CAN upload custom images,
but when trial expires, this is not the case.

I'm actively using them and their awesome for their free-ness.
The only downside is the 50mbps network limit,
but it's very easy to use ipsec through the console to overcome it.