Requirements: If you want to use the RouterOS system, you don't have to buy MikroTik hardware devices, the RouterOS system supports users to install them on their own hardware devices and cloud hosts. Among them, CHR (Cloud Hosted Router) is a version of RouterOS designed to run in virtual machines. After the installation is complete, you can purchase a license to activate it.
Cloud Hosted Router(CHR)
A Cloud-Managed Router (CHR) is a version of RouterOS designed to run in virtual machines. It supports x86 64-bit architectures and runs on most major hypervisors such as VMware, Hyper-V, VirtualBox, KVM, and more. CHR enables all RouterOS features by default, but its licensing model differs from other RouterOS versions.
System requirements:
- Package version: RouterOS v6.34 or later
- Host CPU: 64-bit, virtualization supported
- Memory: 256MB or more
- Disk space: 128MB or more
- RouterOS version 6: The maximum supported CHR virtual hard disk capacity is 16GB
- RouterOS version 7: Maximum RAM and disk space are limited by Linux kernel 5.6.3 and depend on specific hardware.
CHR has been tested on the following platforms:
- VirtualBox 6 on Linux and OS X
- VMware Fusion 7 and 8 on OS X
- VMware ESXi 6.5 and later
- Qemu 2.4.0.1 runs on Linux and OS X systems
- Hyper-V on Windows Server 2008r2, 2012, and Windows 10 (currently only first-generation Hyper-V virtual machines are supported)
- Xen Server 7.1
Warning: Hypervisors that provide semi-virtualization capabilities are not supported.
CHR license
Purchasing a license reference:https://www.itsvse.com/thread-11142-1-1.html
Installing RouterOS v7 CHR on an ECS (Scenario 1, Not Tested)
The cloud server uses a custom image as the system disk, download a new version of the cloud host RouterOS Raw format image from the official website of Mikrotik, upload the image to OSS, and then import the image on the cloud server, as shown in the figure below:
When opening the ECS, select a custom operating system, refer to:The hyperlink login is visible.
Installing RouterOS v7 CHR on ECS (Option 2, Recommended)
First, create an Alibaba Cloud server, and select Rocky Linux 9 (or CentOS, Ubuntu) non-UEFI version image installation, as shown below:
Log in to the server, install the necessary software, and follow the commands:
Check the NIC with the following commands:
Output:00:05.0 Ethernet controller: Red Hat, Inc. Virtio network device
The Virtio Network Appliance is a high-performance virtual network card designed for virtual machines that is supported by RouterOS CHR built-in.
Download the RouterOS v7 CHR RAW image file on the server, this articleTake 7.20.5, for example, find the download link from the official website, as shown below:
Execute the command on the server as follows:
To view the mirror partition table information, the command is as follows:
As shown below:
The start values are 34 and 65570, and the values of offset should be used for subsequent mounting images65570*512=33571840!!!
View the private IP address and gateway address with the following command:
Mount the image and write a custom script with the following command:
Immediately remount all file systems to read-only with the following command:
Copy a file with a block of the specified size, with the following command:
Note: Rescue mode is loaded into memory. This explains why the temporary operating system does not crash. I guess that as for overwriting the disk with files on disk, it probably works because it has to load the file pointer into memory when executing the DD command.
Please modify the above /dev/vda according to your actual situation, as shown in the figure below:
Reboot the server
Then, open in the Alibaba Cloud security groupTCP 8291The port allows the current IP to access, use winbox to connect to the RouterOS system, account: admin, and the password is empty, as shown in the figure below:
uptime: 18m17s version: 7.20.5 (stable) build-time: 2025-11-29 02:02:43 factory-software: 7.1 free-memory: 1700.2MiB total-memory: 1952.0MiB cpu: Intel(R) cpu-count: 2 cpu-frequency: 2499MHz cpu-load: 0% free-hdd-space: 38.1GiB total-hdd-space: 38.1GiB write-sect-since-reboot: 3936457 write-sect-total: 3936457 architecture-name: x86_64 board-name: CHR Alibaba Cloud Alibaba Cloud ECS platform: MikroTik Test the network as shown below:
Reference:
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible. |