Mikrotik ChR installation VMware ESXI. Installation Mikrotik Chr on a virtual machine

Installation and Setting Mikrotik Chr

Cloud Hosted Router. version of Mikrotik Routeros, which is used in cloud infrastructure as an OS for virtual machines. It can also be expanded on the “gland”. The system is designed for 64-bit architecture and supports most hypervizers.

Download and install GNS3 Virtualbox and MikroTik CHR image version 7

The main plus of Mikrotik is flexibility in configuration and convenient configuration control tools. For example, in addition to the WinBox graphic configurator, there is a utility Mikrotik Netinstall. which allows you to reflash or restore Routeros, as well as correct errors in the operation of the operating system.

You will also need a cloud platform. You can get it on Cloud.TimeWeb.com.

Installation Mikrotik Chr

Download the desired version of the ChR from the official website Mikrotik. The format of the image for the cloud platform does not matter if the host does not indicate the reverse.

Then create a virtual machine. Select the name, location, zone. The source will be a pre.downloaded image of the system.

Highlight the necessary resources. For test launch, one virtual processor nucleus is enough, 512 GB of memory and a storage for 5 GB. Select the subnet that will be used by a virtual machine.

After creating the configuration, open the console to connect to a virtual machine. Default login admin, no password. To increase the level of security, add a password or create another account.

This example uses Admin account, on which Password password is installed:

After editing the account, write down the IP address and configure routing. Follow the command:

To make sure that the address is assigned correctly, execute the command:

Then configure the routing by adding the default gateway:

Check-Gateway can not be turned on if there is one port on the virtual car-it will be excessive setting.

Check that the machine has Internet access by making Ping:

Since the virtual machine has access to the external network, you can use the WinBox graphic configurator for further configuration. It is designed for Windows. There is no Winbox for Ubuntu, but the utility works great through Wine.

EVE-H and Mikrotik

Cisco has Cisco Packet Tracer laboratory work with which you can study the basic concepts of Cisco IOS. For Mikrotik, there is no such native remedy (if I am mistaken, then write in the Комментарии и мнения владельцев), in 2018, Mikrotik took the first in his hands, replacing them with a gateway with 80 hosts and at the same time got to MUM 🙂 where was the report in the beloved EveNG, GNS3 and Mikrotik. A year later I remembered this, t.to. The plans to break a fairly large network on VLAN and it is better to do it in the “sandbox” first.

In this note, we install the EVE-NG in the editorial office of Sommunity, which allows you to use this product for free, the installation will be manufactured in Windows 7 64BIT. The only minus that I found in this edition is if you are more than one user, it is impossible to share roles. In other words, everything is for everyone, your laboratory will be available to any user EVE-H. The day was tormented with the installation of EVE-H on VirtualBox, it was not possible to run the images of Mikrotik correctly on it. EVE-NG issued a message:

Perhaps when using AMD processors it will be possible to enable this support: EVE-NG manufacturers recommend using virtualization from VMware (ESXI, VMWARE Workstation) EVE-NG requires a lot of memory so that there are no brakes, select at least 4 GB.

VMWARE Workstation Player. a paid program for commercial users of ESXI. it is possible to use in organizations with a free license in which there are restrictions (for the number of processor nuclei (no more than 8) and the API is disabled) the choice is yours, but I would recommend using the VMware Workstation Player in Free time from work, and in the organization to install VMware ESXI

The EVE-NG distribution is supplied in the form of a template by the virtual machine of the OVA format (Open Virtualization Format) and ISO image. Built on the Ubuntu 64Bit distribution. I will consider the installation from the OVA template. Download the virtual machine template from this page We download client software if necessary, which includes:

mikrotik, installation, vmware, esxi, virtual, machine

Download and install the VMware Workstation Player if you have Windows 7 and when installing you get an error of the type of KB.VMware.COM/KB/55798, then download and install (update) Visuial C Support and, after rebooting, install the VMware Workstation Player. We launch the VMware Workstation Player and create a virtual machine from the template: Player. File. Open (or Ctrlo) and select the Eve Community VM template template.OVA

We fill out the name, storage path and click Import

We do not launch a newly created virtual machine, turn into its properties (ctrld) or handles:

  • Install the amount of memory on the first tab “Memory”
  • In the “Processors” tab we install how many nuclei are given and be sure to put the daw in the “Virtualize Intel VT-X/EPT or AMD-V/RVI” parameter
  • There are two network adapters in the template, if you have enough one. delete the extra, the network is already tuned to the Bridge mode, if you have more than one physical network adapter, then configure with which adapter to make a bridge

We save and run through the SSH to the specified IP (Port 22, Root user, EVE password) will be proposed to change the user’s password ROOT, DNS name, IP (static or via DHCP) and type of connection (straight line, proxy) and specify NTP server (the server of the exact time), change and the server will go into a reboot. We will connect again through SSH with a changed password and add the images of Microtik Cloud Hosted Router, add two versions:

We go through the Web Browser (Chrome, Firefox) at the server address, in my case http: // 10.200.6.88

We create a new laboratory work and fill out the compulsory field “Name” 🙂

Add a Menegment type network

And add the Mikrotik device by choosing the right version:

Connect the network with Mikrotik on the ETH1 integse

After starting, clicking on the device, we go to the device using Telnet (if you install a client application, then Putty will be the terminal)

Without a password, we agree with a licensed agreement and the attitude of IP on the first DHCP integration (in my case there is a valid DHCP server on the network, if you do not have it, then give out statics)

Now we can go to the address issued by Mikrotik IP using Winbox or SSH.

mikrotik, installation, vmware, esxi, virtual, machine

Routeros Config

Here’s Config for VM1 (Routeros Device) and VM2 (Routeros Device)

This Gives The Most Comples Solution (Briding Over EoIP) Howver Replacing theip Interface with A VPLS Tunnel or Simple Vlan Would Do the Same Thing. Who woold you want to rub the vlan via routeros raather than just attach directly to the esx Interface You Ask? Firewall Restricts, Netflow Tracking Passing Through The Router, The Ability to Apply Transparent Queuing, The List Goes On.

Enabling VMotion

Someting you’ll notice if you’re Attempting to use vmotion to shift vm’s using this New Link, is that vcenter Will Stop You; Complaining That The Current Interface Is Connected to a Virtual Lan and Must Be Disconnection The Move Can Be Completed.

A Simple Kludge Around this (BecAuse We Alriedy Know The Segments are Connected) is to either:

a) Find an Unused Physical Interface You can make part of the switch on each host) Create aew vlan on a USED Physical Interface (IF None Others are Avilable)

This is just to be used as a loopback port to trick vcenter into believese 2 are Switch Groups Arectly Connected and Allowing Live Vmotion to Take Place.

I would recommend attempting any of this configuration on a test bench first so you can confirm you understand the process involved and the associated performance hit you will see on networking performance due to the interfaces being in promiscuous mode. This Tutorial and Code Are Provided as-Sis and I Take No Responsibility for Any Disasters You Cuse.

Anyway, I Hope This IS Useful for Someone. Feel Free to Leave Suggges or Комментарии и мнения владельцев and Opinions of Below Owners.

There are a Few Cases in Were You Wood Want A Physical Interface Connected, Purely So Vmotion Believs It Migrate Hosts.

Random Fact of the Day: Vid You Know Iana Allocated Specific Ranges for us in domain? Remember this Next Time You go to Design an Example Network Using 1.one.one.1/24

Notes of IT specialist

Not so long ago, we talked about the virtual router Mikrotik Chr (Cloud Hosted Router), which is a special version of Routeros for virtual environments. This makes it possible to use all the capabilities of Mikrotik without looking at the performance and physical limitations of the routers of the official line. Today we will talk about how to install ChR on the Proxmox virtual machine, there is nothing complicated in this process and there is even an appropriate article in the official Wiki, but it was smooth on paper.

You can learn how to configure Mikrotik from scratch or systematize existing knowledge in an in.depth course in administering Mikrotik. The author of the course, the certified Mikrotik coach Dmitry Skoronov personally checks laboratory work and controls the progress of each of his students. Three times more information than in the vendor program of MTCNA, more than 20 hours of practice and access.

Initially, we were not going to write this article. What is the point of rewriting what is in the official documentation, especially since the finished script is presented there. As they say: click on the button and get the result. Although we ourselves never used it, preferring to do everything manually. In fact, the process is simple: download and adjust the image of the disk, then create a virtual machine with it. But recently, a colleague addressed us with this question and we gave him a link to official documentation.

But then everything went wrong. The script turned out to be actually non.working, in addition, containing sufficiently gross errors. Let’s start in order.

URL is indicated incorrectly for downloading the image of the disk, when trying to cross it, a message awaits us:

But the script ignores the mistake of obtaining an image and continues its work, creating a virtual machine without a hard drive.

The next error. Before the proposal, to indicate the free VM ID, a list of only virtual machines is displayed, existing containers are ignored. And although Proxmox will not allow you to create another virtual machine with the existing VM ID, the garbage in the form of a disk image in the system will remain.

After the VM ID indication, a virtual machine is made incorrectly, the presence of a catalog with the image of a disk is checked, while modern virtuals can use Thin LVM. It will be correct to check the presence of a configuration file of virtual machine. At the same time, the logic of the verification itself is incorrect, having established the presence of an existing image, the script will propose to enter a new VM ID value, but there will be no new value in any way. T.e. you can indicate the wrong value twice and the script will continue its work.

Given the foregoing, we seriously redesigned the script and added new functions to it. Our script performs the following actions:

  • Downloads the image of the Mikrotik Chr of the specified version and checks the success of this action
  • Displays a list of all virtual machines and containers
  • Checks the VM ID introduced for the existence of a virtual machine or container with such an identifier
  • Converts the image and changes the size of the virtual hard drive to the user specified by the user (new function)
  • Creates a virtual machine with a necessary disk

If errors occur at any of the stages, the script reports an error and completes its work.

Section ## Checking IF Temp Dir is Available. “Checks the presence of a temporary directory /Root /TEMP and creates it in the absence of. Then the user’s number is requested the number of the required version of Routeros and an attempt is made to download it. In addition to the corrected address, we added the No-Check-Certificate option for WGET, which allows us to exclude errors with a certificate of validity of the certificate.

Then the success of downloading and unpacking the image is checked:

If the image file does not exist. The script will complete its work.

In case of success, he will display a list of not only virtual machines, but also containers:

After entering the desired VM ID, the availability of configuration files is checked, both for virtuals and for containers:

If a configuration file is found for the specified VM ID, the script will report that such a machine or container exist and will complete its work.

After passing all the checks, it would seem, you can create a virtual machine, but we will not rush. By default, the image of the disk has a volume of only 64 MB, which in many cases will clearly not be enough.

Therefore, we added a new function to the script. installation of the desired size of a virtual disk. It is required to indicate the right value in GB or zero if you do not want to increase the disk.

After which converting the image, installation of the specified size and the creation of a virtual machine will be performed.

All subsequent actions are required to be performed with the rights of the Root Superpoller.

First, we will create a script file itself in the root directory of the super sexman:

And we add the above text to it, you can also download the finished script from our site:

Then, regardless of how you created the script, we will make it executable:

Now it can be launched, for this, if you are in /root, do:

In the course of the script, you will need to answer three questions: indicate the version of Routeros since it is indicated on the site (6.48.1 or 6.49beta27), the number of the identifier of the virtual machine (VM ID) and the desired size of the virtual disk in GB:

The result of the script will be the created virtual machine, before starting you can check and change its parameters:

Notes of IT specialist

Not so long ago, we talked about the virtual router Mikrotik Chr (Cloud Hosted Router), which is a special version of Routeros for virtual environments. This makes it possible to use all the capabilities of Mikrotik without looking at the performance and physical limitations of the routers of the official line. Today we will talk about how to install ChR on the Proxmox virtual machine, there is nothing complicated in this process and there is even an appropriate article in the official Wiki, but it was smooth on paper.

You can learn how to configure Mikrotik from scratch or systematize existing knowledge in an in.depth course in administering Mikrotik. The author of the course, the certified Mikrotik coach Dmitry Skoronov personally checks laboratory work and controls the progress of each of his students. Three times more information than in the vendor program of MTCNA, more than 20 hours of practice and access.

Initially, we were not going to write this article. What is the point of rewriting what is in the official documentation, especially since the finished script is presented there. As they say: click on the button and get the result. Although we ourselves never used it, preferring to do everything manually. In fact, the process is simple: download and adjust the image of the disk, then create a virtual machine with it. But recently, a colleague addressed us with this question and we gave him a link to official documentation.

But then everything went wrong. The script turned out to be actually non.working, in addition, containing sufficiently gross errors. Let’s start in order.

URL is indicated incorrectly for downloading the image of the disk, when trying to cross it, a message awaits us:

But the script ignores the mistake of obtaining an image and continues its work, creating a virtual machine without a hard drive.

The next error. Before the proposal, to indicate the free VM ID, a list of only virtual machines is displayed, existing containers are ignored. And although Proxmox will not allow you to create another virtual machine with the existing VM ID, the garbage in the form of a disk image in the system will remain.

After the VM ID indication, a virtual machine is made incorrectly, the presence of a catalog with the image of a disk is checked, while modern virtuals can use Thin LVM. It will be correct to check the presence of a configuration file of virtual machine. At the same time, the logic of the verification itself is incorrect, having established the presence of an existing image, the script will propose to enter a new VM ID value, but there will be no new value in any way. T.e. you can indicate the wrong value twice and the script will continue its work.

Given the foregoing, we seriously redesigned the script and added new functions to it. Our script performs the following actions:

  • Downloads the image of the Mikrotik Chr of the specified version and checks the success of this action
  • Displays a list of all virtual machines and containers
  • Checks the VM ID introduced for the existence of a virtual machine or container with such an identifier
  • Converts the image and changes the size of the virtual hard drive to the user specified by the user (new function)
  • Creates a virtual machine with a necessary disk

If errors occur at any of the stages, the script reports an error and completes its work.

Section ## Checking IF Temp Dir is Available. “Checks the presence of a temporary directory /Root /TEMP and creates it in the absence of. Then the user’s number is requested the number of the required version of Routeros and an attempt is made to download it. In addition to the corrected address, we added the No-Check-Certificate option for WGET, which allows us to exclude errors with a certificate of validity of the certificate.

Then the success of downloading and unpacking the image is checked:

If the image file does not exist. The script will complete its work.

In case of success, he will display a list of not only virtual machines, but also containers:

RouterOS CHR VMWare Fusion Install

After entering the desired VM ID, the availability of configuration files is checked, both for virtuals and for containers:

If a configuration file is found for the specified VM ID, the script will report that such a machine or container exist and will complete its work.

After passing all the checks, it would seem, you can create a virtual machine, but we will not rush. By default, the image of the disk has a volume of only 64 MB, which in many cases will clearly not be enough.

Therefore, we added a new function to the script. installation of the desired size of a virtual disk. It is required to indicate the right value in GB or zero if you do not want to increase the disk.

After which converting the image, installation of the specified size and the creation of a virtual machine will be performed.

All subsequent actions are required to be performed with the rights of the Root Superpoller.

First, we will create a script file itself in the root directory of the super sexman:

And we add the above text to it, you can also download the finished script from our site:

Then, regardless of how you created the script, we will make it executable:

Now it can be launched, for this, if you are in /root, do:

In the course of the script, you will need to answer three questions: indicate the version of Routeros since it is indicated on the site (6.48.1 or 6.49beta27), the number of the identifier of the virtual machine (VM ID) and the desired size of the virtual disk in GB:

The result of the script will be the created virtual machine, before starting you can check and change its parameters:

System requirements Mikrotik Chr

Installation Mikrotik Cloud Hosted Router on VDS

Consider the installation process on the Ubuntu Server 20 operating system.04. First of all, you need to connect to VPS (https: // hostzealot.ru/VPS) on the SSH protocol, after which we immediately open the console and create a temporary section for storing the image of the disk:

On the official website of the developer, we load the image of the RAW, it can be found in the Cloud Hosted Router section. To do this, copy the loading link and execute the command on the server:

It is better to take a link from the site, and not from this article, since they can be updated, and no one canceled the release of new versions.

Further, to unpack the downloaded archive, we will need Unzip. Install it from the repository:

Then we make file unpacking and determine the disk name on VPS:

It remains to record the selected image on SSD:

In your case, the name of the image may differ if the downloaded version of the operating system will be different. After recording, reboot the server:

Now, as soon as the server is loaded and ready to work, the remote connection to it will be impossible, since your IP will be absent on the server. For further configuration, you will need to connect via KVM/VNC. Standard login. admin.

The final setting of Routeros

After connecting, you have to configure the IP:

mikrotik, installation, vmware, esxi, virtual, machine

Further configuration no longer requires explanation, since everything is done through a convenient web-intake. To get into it, just open the browser and enter into the search line IP installed earlier. And do not forget to change the standard user name and password for more reliable. If you have any questions, contact Hostzealot specialists-we will tell you how to install the operating system correctly and help you choose the most suitable VDS server control panel for your tasks. All the best!

Cloud Hosted Router license and activation process

Unlike the “iron” version of Routeros, Cloud Hosted Router does not have a “binding” of the equipment license, and also does not have certain restrictions, for example, there are no restrictions on the number of tunnels.

The only restriction that imposes different levels of licenses is the speed of each intensity. Below are different levels of licenses, their differences and cost:

License Analogue of the Routeros license Port speed restriction Price
Free 1 Mbps/s

Activation of the trial version of CHR

To activate CHR, it is necessary that the following parameters are configured:

After these parameters are configured, you can start activating the license.

First, you need an account on the website Mikrotik.com. If you do not have it, then you need to create it. When creating an account, put the box “Allow To Use My Account from NetinStall and WinBox”.

Next in WinBox, select System License. Such a window will open:

Press the Renew License button. A window will open in which you need to enter your mail and password that you indicated during registration, as well as the level of the license you want to test, in our case this is a license P1.

After activation, the window will look something like this:

P1 L4 1 Gbit/s 45 P10 L5 10 Gbit/s 95 P-Unlimited L6 – 250

It is also possible to use the trial version of CHR, the functionality of which is similar to a full.fledged license, but has a limited validity period. 60 days. After that, the license will not be lost, but the operating system will cease to be updated.

Installation Cloud Hosted Router on VPS

Consider the process of installing Mikrotik ChR on hosting with VPS (for example, the Fornex hosting provider). For personal purposes, enough the simplest virtual machine with 1 VCPU and 1 GB VRAM.

Next, select the image of the OS, the VPS control panel and location. Since the Mikrotik Cloud Hosted Router is not included in the standard set of images of most providers, we take any Linux system (in the example-ubuntu) and after receiving access to the virtual machine, cut it.

After the virtual machine is ready, we connect through it via SSH and install additional packages.

We find out network settings so that after the CHR installation, the provider does not have to write requests. In the example of the IP car. 1.2.3.4, mask. 255.255.255.0 (/24), gateway. 1.2.3.one.

Next, go to the Mikrotik website, copy the link to the image of Cloud Hosted Router in the RAW Disk Image format, download it to the virtual machine and unpack it:

Find out the name of the section in the system (in the example. /DEV /VDA):

We write the image of CHR to the disk and restart the virtual room:

After that, the VM will restart from the new OS, in which there are no network settings, respectively, you can only pack it through the VM console in your personal account (orders. console).

We apply network settings and set DNS:

Now you can connect via Winbox or web-integse.

Defolt.free on ChR, a free license (free) is used, which limits the bandwidth of a speed of 1 Mbps. Paid license options-P1 (1 Gbit /s), P10 (10 Gbit /s) and P-Unlimited (without restrictions). License status can be seen in System. License.

To activate a paid license, click on Renew License and enter your credits from your personal account on the Mikrotik website. After that, in the personal account in the ALL Chr Keys section, the System ID of the installed CHR instance will appear, there you can also assign it to the existing license.

Fresh articles

Adding animation and transitions to slides in Libreoffice Impress

Operations with graphic objects in Libreoffice Impress

Installation Zabbix from a finished solution

Cloud of labels

Copying files for a virtual machine in VMware ESXI

In this video, you will learn how to copy files on a virtual machine in VMware ESXI.

mikrotik, installation, vmware, esxi, virtual, machine

Organization of a virtual network in VMware ESXI

In this video, you will learn how to organize a virtual network in VMware ESXI.

Installation of the ESXI hypervisor on VMware Workstation

In this video, you will learn how to install an ESXI hypervisor on VMware Workstation.