This article is a mirror article of machine translation, please click here to jump to the original article.

View: 299|Reply: 3

[Router] MikroTik (7) Alibaba Cloud Server installed RouterOS v7 CHR

[Copy link]
Posted on 2025-11-30 18:20:34 | | | |
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.




Previous:The Enterprise WeChat application web page closes the window
Next:MikroTik (8) RouterOS manually installs the npk package
 Landlord| Posted on 2025-11-30 19:03:18 |
Alibaba Cloud Actual MeasurementNo custom scripts are required, the VNC screen also reported an error when the custom script was started for the first time. All commands are as follows:



Posted on 2025-12-6 14:33:58 |
Option 2, both commands have been executed, but they cannot enter the system

UEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (EDK II,0x00010000)
Mapping table
    BLK2: Alias(s):
    PciRoot (0x0)/Pci (0x4,0x0)
    BLK3: Alias(s) :
    PciR00t (0x0)/Pc1 (0x4,0x0)/HD (1,MBR,0x00000000,0x22,0x10000)
    BLK4:Alias(s):
    PciR00t(0x0)/Pc1(0x4,0x0)/HD(2,MBR,0x00000000,0x10022,0x2EFDE)
    BLKO:Alias (s) :
    PciRoot (0x0) /Pci (0x1,0x0)/F1oppy (0x0)
    BLK1: Alias(s):
    PciRoot (0x0)/Pci (0x1,0x0)/Floppy (0x1)
Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shel1>
 Landlord| Posted on7 days ago |
mrxue Posted on 2025-12-6 14:33
Option 2, both commands have been executed, but they cannot enter the system

UEFI Interactive Shell v2.2

Select firstNon-UEFI versions of Linux imagesInstallation
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com