Community discussions

MikroTik App
 
jeremyf
just joined
Topic Author
Posts: 1
Joined: Mon Nov 04, 2019 2:12 am

CHR on Azure

Mon Nov 04, 2019 2:27 am

I've noted there isn't a lot of up-to-date "CHR on Azure" documentation so I am attempting to create some here.

Maybe someone can copy to: https://wiki.mikrotik.com/wiki/Manual:CHR

It would be optimal for Mikrotik to create an azure marketplace CHR image. That would make this post mostly redundant.

step 1: download CHR vhdx and convert to vhd
example powershell:
Convert-VHD -Path C:\chr-6.45.6.vhdx -DestinationPath C:\chr-6.45.6.vhd -vhdtype fixed

step 2: upload vhd to a blob container:
Upload the VHD file using the Azure Portal.
In the Azure Portal, select Storage Accounts.
  • Select the storage account where the CHR VHD file will be uploaded to.
    Under BLOB SERVICE, select Containers.
    Select a container to upload the CHR VHD file to.
If you do not have a storage container, click Add Container to create one.
Click Upload and select the CHR VHD file to upload.
Ensure that the Blob type is set to Page Blob.
uploadblob.PNG
step 3: 2. Create an image using the Azure Portal.
In the Azure Portal, select "Images". (note this is different than "virtual machines")
Click Add to create a new image.
Give the image a name. Remember that this image is a template that will later be deployed to a virtual machine with a different name.
Ensure that the location is the same as the location of your storage account.
iIn the OS disk section:
Select Linux and the OS type.
Click Browse on the Storage Blob field. A new panel will list your storage accounts. Using this panel, navigate through the storage account and container to locate the CHR VHD that was uploaded.
(os type linux)
(vm generation 1)

Click Create to begin the image creation process. This process typically takes minutes to complete.
When the process has completed, return to the Images panel and verify that the new image was created.

step 4: create the vm
In the Azure Portal, select "virtual machines".
Click Add to create a new VM.
Under image, click "browse all public and private images", and in the "my items tab" you should see the CHR vhd image you created in step 3.
I used the smallest size B1ls.

Note: you will need to set the "enable ip forwarding" parameter in the resulting azure vm network interface.

Note: the azure serial console feature works.

step 5: (optional) create a S2S vpn
note: profiles must have "nat traversal" enabled.
note: you will have to create a route table to direct vnet traffic over the vpn tunnel.
You do not have the required permissions to view the files attached to this post.
 
User avatar
webor
newbie
Posts: 43
Joined: Sat Dec 20, 2008 2:33 am
Location: Europe

Re: CHR on Azure

Thu Dec 31, 2020 12:41 am

Tnx for this guidance! Complete success following it. Only one thing that you are mentioning I can not find: "Note: you will need to set the "enable ip forwarding" parameter in the resulting azure vm network interface."
That is my signature
 
User avatar
YourWordIsTruth
just joined
Posts: 13
Joined: Mon Mar 04, 2013 5:50 pm

Re: CHR on Azure

Fri Feb 19, 2021 9:25 pm

Thanks for the step by step, it worked.

Out of curiosity, does anyone know :

1) Why does it take so long to build the image?
2) Does anyone know why Mikrotik has not built an Microsoft Azure Marketplace version of their CHR, I can say there is a demand for it on my end for it?

If they are building on and they need a tester I volunteer :-)
 
cmallery
just joined
Posts: 1
Joined: Mon Apr 12, 2021 9:37 pm

Re: CHR on Azure

Tue Apr 13, 2021 8:19 pm

After trying several times to deploy CHR 6.47.9 on azure it continues to fail with:

OS Provisioning did not finish in the allotted time.

I have followed this guide step by step several times and even tried different versions of CHR with the same outcome.

My settings are identical to the settings in this post. I can't seem to find any other person with this same issue.

I've tried reconverting from vhdx to vhd because I figured it might be some kind of corruption but that is not the issue.

Has anyone else seen this same problem before?
 
traddy
just joined
Posts: 1
Joined: Mon May 03, 2021 11:51 am

Re: CHR on Azure

Mon May 03, 2021 11:58 am

This seems to be an issue that was either in RouterOS or Azure, but found this tidbit -

Version 6.49beta36 has been released.

Before an upgrade:
1) Remember to make backup/export files before an upgrade and save them on another storage device;
2) Make sure the device will not lose power during upgrade process;
3) Device has enough free storage space for all RouterOS packages to be downloaded.

What's new in 6.49beta36 (2021-Apr-23 05:56):

Changes in this release:

*) bridge - improved system stability when using IGMP snooping and changing bridge MAC address;
*) chr - fixed OS provisioning on Azure;

Tried just now with the latest beta image of CHR - 6.49beta38 (Testing)
And it provisioned instantly with no issues.
 
KayBur
just joined
Posts: 9
Joined: Thu Apr 29, 2021 3:33 pm
Location: Springfield

Re: CHR on Azure

Wed May 05, 2021 3:03 pm

This seems to be an issue that was either in RouterOS or Azure, but found this tidbit -

Version 6.49beta36 has been released.

Before an upgrade:
1) Remember to make backup/export files before an upgrade and save them on another storage device;
2) Make sure the device will not lose power during upgrade process;
3) Device has enough free storage space for all RouterOS packages to be downloaded.

What's new in 6.49beta36 (2021-Apr-23 05:56):

Changes in this release:

*) bridge - improved system stability when using IGMP snooping and changing bridge MAC address;
*) chr - fixed OS provisioning on Azure;

Tried just now with the latest beta image of CHR - 6.49beta38 (Testing)
And it provisioned instantly with no issues.
In my opinion, you described the update process in sufficient detail. I used to update the system without creating backups, and then one time I almost lost all the information, because the formatting did not go according to plan.

Who is online

Users browsing this forum: No registered users and 3 guests