---
title: 'How to install RouterOS on a virtual server (VPS/VDS) | Zomro'
description: 'In this article, we will learn how to install the RouterOS operating system on a virtual server (VPS / VDS). RouterOS is an operating system for routers of the MikroTik.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665789723_screenshot_249.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to install RouterOS on a virtual server (VPS/VDS) 



# How to install RouterOS on a virtual server (VPS/VDS)

08-10-2022

RouterOS is the operating system for MikroTik router family. RouterOS can be installed on a virtual or dedicated server with Linux OS. A regular VPS/VDS with minimal resources is sufficient. In this article, we will look at installing RouterOS on CentOS7.  
Important note: After installing RouterOS, all data on the server will be deleted. For this reason, we recommend installing RouterOS on a server that does not contain important data.  
  
So, let's get started.  
  
1\. Connect to the server via SSH ([how to do it](https://zomro.com/rus/blog/faq/218-kak-vojti-na-linux-server-po-ssh))  
  
2\. Go to the Software section on the official Mikrotik website (https://mikrotik.com/download). We will install the Stable distribution version, although you can choose Long-term as well. Next, you need to open Cloud Hosted Router and copy the link to download the Raw disk image.  
  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665789723_screenshot_249.png)  
3\. In the server console, execute the command to download the Raw image to the server  
  
wget https://download.mikrotik.com/routeros/7.5/chr-7.5.img.zip  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665791140_screenshot_250.png)  
4\. Install the unzip utility on the server by executing the command:  
  
yum install unzip  
  
and unzip the installation image:  
  
unzip chr-7.5.img.zip  
  
Note: the file name chr-7.5.img.zip may be different. To check the image file name, execute the command in the console  
ls -la  
and you will see a list approximately like this, which will include the required file  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665794414_screenshot_254.png)  
5\. Find out the name of the server disk on which we will install RouterOS. To do this, execute the command:  
  
fdisk -l  
  
The command output will be approximately like this:  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665795117_screenshot_255.png)  
6\. Execute the command to write the previously unzipped installation image chr-7.5.img to the disk /dev/vda  
  
dd if=chr-7.5.img of=/dev/vda bs=4M oflag=sync  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665795675_screenshot_256.png)  
7\. Restart the server in an unusual way (which is sometimes used, for example, when the disk is unavailable). To do this, execute the following commands in the server console one by one:  
  
echo 1 > /proc/sys/kernel/sysrq  
echo b > /proc/sysrq-trigger  
  
After this, the server will no longer be accessible via SSH.  
  
8\. To be able to connect to RouterOS, for example, using WinBox, SSH, or web access, you need to configure the network interface on the server.  
To do this, connect to the server via VNC: go to the Personal Account (https://cp.zomro.com/billmgr) - Services - Virtual Servers - select the server - Go to - you will enter the vmmanager panel - Management - Virtual Machines - select the server - click the VNC button.  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665799569_screenshot_257.png)  
In the login prompt line, enter  
  
admin  
  
and when prompted for a password, just press Enter.  
After this, RouterOS will offer to review the license and request a password change. Enter a new password and confirm it.  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665799896_screenshot_258.png)  
You can find out the server's IP address, mask, and gateway in the vmmanager server control panel. To do this, select the server and click the IP addresses button.  
  
After this, enter the IP address configuration command in the RouterOS console:  
  
ip address add address=xxx.xxx.xxx.xxx/24 interface=ether1  
  
where xxx.xxx.xxx.xxx is the server's IP address (from the vmmanager panel)  
  
and the gateway configuration command  
  
ip route add gateway=yyy.yyy.yyy.yyy  
  
where yyy.yyy.yyy.yyy is the server's gateway (from the vmmanager panel)  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665801455_screenshot_259.png)  
9\. To access RouterOS settings, go to the link in your browser  
  
http://xxx.xxx.xxx.xxx/webfig/  
  
where xxx.xxx.xxx.xxx is your server's IP address.  
![How to install RouterOS on a virtual server \(VPS/VDS\) - 9](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665803496_screenshot_263.png)![How to install RouterOS on a virtual server \(VPS/VDS\) - 10](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a55@server-panel.net/2022/10/01/1665803533_screenshot_262.png)  
  


Similar articles:

[Adding a database to the VestaCP panel](https://zomro.com/blog/faq/387-adding-a-database-to-the-vestacp-panel) [Windows. Automatic login. Autorun programs.](https://zomro.com/blog/faq/256-windows-avtomaticheskij-vhod-avtozapusk-programm) [How to Install Python 3.10 on Ubuntu 20.04](https://zomro.com/blog/faq/299-kak-ustanovit-python-310-na-ubuntu-2004) [FTP protocol: Detailed information about file transfer](https://zomro.com/blog/faq/447-ftp-protokol-podrobno-o-peredache-fajlov) [Disable automatic installation of Windows updates](https://zomro.com/blog/faq/426-otklyuchenie-avtomaticheskoj-ustanovki-obnovlenij-windows)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
