Skip to main content
Version: 7.26

x86 Installation

RouterOS runs on x86 computers (PCs and servers) as well as on MikroTik hardware. There are two ways to install it:

  • From the CD image (an ISO file) on a USB drive or a CD. The computer starts the installer from the drive, and you choose the target disk and the packages on its screen.
  • Over the network with Netinstall. The computer starts from the network, and Netinstall on another computer installs the packages you give it.

Both methods format the target disk.

An x86 installation needs a license key. Without one, RouterOS runs in trial mode for 24 hours. See x86 licensing for the Software ID, the trial and the license levels. To run RouterOS in a virtual machine, use Cloud Hosted Router instead.

Firmware settings​

Set the boot order in the BIOS or UEFI setup of the computer, so that it starts from the installation drive (or from the network for Netinstall), and after the installation from the disk.

To install on an NVMe drive, the computer must start the installer in UEFI mode. In legacy BIOS mode, the installer skips NVMe drives:

Looking for harddrives......
WARN: skip NVME disk 'NVME0001(1024 MB)', it can't boot in BIOS Legacy(current)
mode

ERROR: no valid harddrives found
Press ENTER to reboot

Make sure that CSM (Compatibility Support Module) is disabled in the boot settings, so that the computer does not start the installer in legacy BIOS mode.

Install from a USB drive​

  1. Download the x86 CD image (mikrotik-<version>.iso) from the MikroTik download page.
  2. Write the image to a USB drive (see the next sections). Everything on the USB drive is lost.
  3. Connect the USB drive to the x86 computer and start the computer from it.
  4. Install RouterOS with the installer (see the section "Run the installer" below).

A USB drive written with dd has no legacy BIOS boot code, so the computer must start it in UEFI mode. A CD burned from the image starts in both modes.

Write the image on Windows​

  1. Download Rufus (use the latest version).
  2. Connect your USB drive and open Rufus.
  3. Select the downloaded ISO image and click START.

Write the image on Linux or macOS​

danger

Double-check the device name. dd overwrites the device you give it without asking, and the data on it cannot be recovered.

  1. Connect the USB drive and find its device name, for example /dev/sdb on Linux or /dev/disk4 on macOS.

    On macOS:

    diskutil list

    On Linux:

    sudo fdisk -l
  2. Write the image to the whole drive (not to a partition such as /dev/sdb1).

    On Linux:

    sudo dd if=mikrotik-<version>.iso of=/dev/sdb bs=1M status=progress

    On macOS:

    sudo dd if=mikrotik-<version>.iso of=/dev/disk4 bs=1m status=progress

Run the installer​

In UEFI mode, the computer first shows a boot menu with the entry Boot Install RouterOS from ROUTEROS. Press Enter to start the installer. In BIOS mode, the installer starts directly.

  1. If the computer has more than one disk, the installer first asks for the target disk: Select 'Output Disk' using arrow keys. Press ENTER to confirm. Select the disk and press Enter.

  2. Select the packages. The system package (RouterOS) is selected. Move with the arrow keys or P and N, select a package with Space, select all packages with A or only the minimum with M. Q cancels the installation and reboots the computer.

    RouterOS installer with the list of packages and the system package selected

  3. Press I to install. The installer warns that all data on the disk will be erased:

    Warning: all data on the disk '/dev/sda' will be erased!

    Continue? [y/n]:
  4. Press Y. When the installation is done, the installer shows:

    Software installed.
    Press ENTER to reboot
  5. Remove the USB drive (or set the disk first in the boot order) and press Enter.

The installer does not ask to keep anything from an earlier installation: the configuration and the files on the disk are erased. Extra packages that are not on the CD image can be installed later from the router; see Packages.

First login​

Log in on the console (keyboard and screen) with the user admin and an empty password:

  1. RouterOS asks whether to show the software license.

  2. Because the installation has no license key, RouterOS shows the time left in the trial and the Software ID of the installation:

    ROUTER HAS NO SOFTWARE KEY
    ----------------------------
    You have 23h47m to configure the router to be remotely accessible,
    and to enter the key by pasting it in a Telnet window or in Winbox.
    Turn off the device to stop the timer.
    See www.mikrotik.com/key for more details.

    Current installation "software ID": G353-EXPG
    Please press "Enter" to continue!
  3. Set a new password for admin.

An installation from the CD image starts with an empty configuration: no interface has an IP address. To reach the router over the network, add an address to the interface that is connected to your network, for example:

/ip/address/add address=192.168.88.1/24 interface=ether1

Check the address with /ip/address/print:

Columns: ADDRESS, NETWORK, INTERFACE, VRF
# ADDRESS NETWORK INTERFACE VRF
0 192.168.88.1/24 192.168.88.0 ether1 main

Then connect to the router with WinBox, SSH or WebFig and continue with the first-time configuration.

Install with Netinstall​

Netinstall installs RouterOS on an x86 computer that starts from the network. The x86 computer must start the network boot (PXE over IPv4) in UEFI mode: Netinstall does not answer a network boot request from legacy BIOS.

  1. Connect the x86 computer to the computer that runs Netinstall, directly or through a switch. Use a network card that the firmware can start from.
  2. Download Netinstall for your operating system and the x86 routeros-<version>.npk package (and any extra packages) from the MikroTik download page.
  3. Start Netinstall with the packages. See Netinstall for Linux or Netinstall for Windows.
  4. In the firmware setup of the x86 computer, enable network boot (PXE) for IPv4, and start the computer from the network: with network boot first in the boot order, or once from the boot menu.
  5. Netinstall installs the packages and reboots the computer. After the installation, set the disk first in the boot order. While network boot stays first, every start waits until the network boot attempts time out.

Netinstall keeps the Software ID of an existing installation.