Linode allows you to run virtual machines in the cloud. Standard images only include various generic Linux distributions, but it is also possible to run RouterOS CHR images with a little workaround, by going through the recovery boot mode in your linode system, and imaging your disk with the CHR .img file.
Linode disk and profile
- Create new Linode
- Add new disk of any size above 128MB (type RAW)
- In the Linode "Rescue" tab, boot in Rescue mode. Make sure your newly created disk is selected to show up in Rescue mode
- In remote access section, click "Lish via Browser", which should open a popup window with direct access to the Linode console
- Paste this command:
wget --no-check-certificate https://download2.mikrotik.com/routeros/6.42rc11/chr-6.42rc11.img.zipbut make sure to use the latest CHR IMG file from the download page
- To make sure you write to the correct disk, type
fdisk -land find the disk that corresponds to the size you selected in step 2.
- Paste the following
sudo gunzip -c chr-6.42rc11.img.zip | sudo dd of=/dev/sda bs=1M
- In Linode web dashboard click "Shutdown" to turn off the Linode and exit the Recovery mode
- In the Linode main Dashboard, create a new configuration profile, select the following:
- VM mode: full virtualisation
- kernel: direct disk
- Block device assignment: /dev/sda
To boot RouterOS in the main dashboard, click the Boot button to start your RouterOS CHR. Caution! The public device will immediately be attacked by bots, guessing your password, since this is an unsecured public system.
You will have to wait some 20 seconds until the device obtains a DHCP address, then you can ssh from your PC to the RouterOS machine, using the public IP/DNS name that Linode shows in the Remote access section.
Then you can proceed to SSH into your system and set the most basic security settings, for example:
ssh linode12345.members.linode.com /users set 0 name=yourname /users set 0 password=newpassword /ip service set 0,1,2,4,5,6,7 disabled=yes /ip service set ssh port=2299
This will rename your admin user, set a password, disable all services except SSH and set a custom port.
Obtaining a RouterOS CHR license
The system has been booted in unlicensed mode, meaning it is limited to 1Mbit per interface. If this is of no importance, you may use it free of charge. If you wish to run a faster system, you need to obtain a license. To do that, start with a 30 day trial with this command:
/system license> renew account=loginname password=pass level=p1
You must provide your [mikrotik.com] account login here, and choose a license level to try. P1 gives you 1Gbit per interface and should be enough for most people. After entering this command, RouterOS will show the status as it fetches the license. If all is fine, it will show "status: done".
/system license print to verify that you now have a p1 license.
Paying for trial
Once you have a running Trial P1 system, you are free to use it for unlimited period of time. If you plan to pay for the the system, you must do it before your trial time runs out, otherwise a reinstall will be required. To pay for a trial, log into your mikrotik.com account and proceed to the CHR section on the left hand side menu. Your CHR system will be visible there, and you will be able to pay for the trial.