Manual:CHR Hetzner: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
## Extract the image from the zip archive using 'funzip'
## Extract the image from the zip archive using 'funzip'
## Write ir over the system disk (/dev/sda) of the cloud server using 'dd'
## Write ir over the system disk (/dev/sda) of the cloud server using 'dd'
# <code>curl -L https://download2.mikrotik.com/routeros/6.44.3/chr-6.44.3.img.zip | funzip | dd of=/dev/sda bs=1M</code> (replace the disk image link with the newest available version on the [https://mikrotik.com/download#chr download page]
# <code>curl -L https://download2.mikrotik.com/routeros/6.44.3/chr-6.44.3.img.zip | funzip | dd of=/dev/sda bs=1M</code> (replace the disk image link with the newest available version on the [https://mikrotik.com/download#chr download page])
# Restart the server and log into the RouterOS CHR with the default user - admin
# Restart the server and log into the RouterOS CHR with the default user - admin
# Please [https://wiki.mikrotik.com/wiki/Manual:Securing_Your_Router secure your RouterOS right away]
# Please [https://wiki.mikrotik.com/wiki/Manual:Securing_Your_Router secure your RouterOS right away]

Revision as of 10:48, 22 May 2019

Hetzner Cloud allows you to run virtual machines in the cloud. Standard images include various generic Linux distributions, but it is also possible to run RouterOS CHR with a little workaround. You have to boot the cloud server in the rescue system, download the CHR raw disk image and write it over the system disk of the cloud server. It can be done in just a few steps.

  1. Create a new Hetzner Cloud server (any of the offered)
  2. In the cloud admin interface activate the rescue system and restart the server (ENABLE RESCUE & POWER CYCLE), choose 'linux64' as the Rescue OS. A username and passwoord will be shown. Use that to log into the rescue system via SSH
  3. The following command will:
    1. Download the CHR raw disk image from the download page using 'curl'
    2. Extract the image from the zip archive using 'funzip'
    3. Write ir over the system disk (/dev/sda) of the cloud server using 'dd'
  4. curl -L https://download2.mikrotik.com/routeros/6.44.3/chr-6.44.3.img.zip | funzip | dd of=/dev/sda bs=1M (replace the disk image link with the newest available version on the download page)
  5. Restart the server and log into the RouterOS CHR with the default user - admin
  6. Please secure your RouterOS right away