Manual:CHR Hetzner: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Created page with "[https://www.hetzner.com/cloud Hetzner Cloud] allows you to run virtual machines in the cloud. Standard images include various generic Linux distributions, but it is also poss..."
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 2: Line 2:


# Create a new Hetzner Cloud server (any of the offered)
# Create a new Hetzner Cloud server (any of the offered)
# In the cloud admin interface activate the rescue system and restart the server (ENABLE RESCUE & POWER CYCLE). A username and passwoord will be shown. Use that to log into the rescue system via SSH
# 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
# Download the newest CHR raw disk image: <code>wget https://download2.mikrotik.com/routeros/6.44.3/chr-6.44.3.img.zip</code>, the latest version is available from the [https://mikrotik.com/download#chr download page]
# The following command will:
# Issue the following command <code>unzip chr-6.44.3.img.zip | dd of=/dev/sda bs=1M</code> It will unzip the CHR image and write it over the system disc  of the cloud server (/dev/sda)
## Download the CHR raw disk image from the [https://mikrotik.com/download#chr download page] using 'curl'
# Restart the server and log into the RouterOS CHR with default user - admin
## Extract the image from the zip archive using 'funzip'
## Write ir over the system disk (/dev/sda) of the cloud server using 'dd'
# <code>curl -L https://download.mikrotik.com/routeros/7.1/chr-7.1.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 by issuing <code>reboot</code> command 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]

Latest revision as of 10:19, 8 December 2021

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://download.mikrotik.com/routeros/7.1/chr-7.1.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 by issuing reboot command and log into the RouterOS CHR with the default user - admin
  6. Please secure your RouterOS right away