RouterOS on Amazon EC2

Is crazy to even think about installing RouterOS on a Cloud instance?

I am not sure this is possible. Although would be pretty darn cool.

I have a RB1000 hotspot controller for hotspots all over North America, it would be nice to be able to leverage the Amazon peering by moving it there. RIght now I have to worry about localized Internet issues knocking out systems all over the place and Amazon has super cheap bandwidth.

Also could make a nice VPN Server, central to people all over the world really. Especially when many corporate servers are hosted on the cloud now.

you should be fine running MetaROUTER geust on RB1000

I meant moving the function to Amazon. You cannot move hardware onto EC2.

Really one of the nice things about it. No hardware to ever fail.

it seem syou are able to install x86 there (as windows is there running) so you can create some usermanager instance there, and making hotspots to authorize against that server. But not sure about other benefits.

The windows used on the EC2 is not standard off the shelf. I suspect similar changes would have to be made to ROS.

http://en.wikipedia.org/wiki/Amazon_Machine_Image

Would be interesting but likely an idea before it’s time. . .

I am focusing on finding a colo in the usa where I can put a 1U router maybe. No one can come close to the amazon costs though.

i think its an awesome idea. I dont think amazon supports all kernels though, from the page you referenced:

“An AMI does not include a kernel image, only a pointer to the default kernel id, which can be chosen from an approved list of safe kernels maintained by Amazon and its partners (e.g., RedHat, Canonical, Microsoft). Users may choose kernels other than the default when booting an AMI.[3]”

I dont understand that last sentence fully, does that mean you can use your own kernel? Maybe I will try it late one night…

wording indeed suggests, that there is possibility to load other than default kernel. Would interesting to know if that is possible in RouterOS case.

did anyone get this working yet?

I would like to know too :slight_smile:

I would like to know as well.

If not possible… maybe we can run a standard linux distribution, and then run RouterOS into a KVM VM

Perfomance will decrease a bit… but there is enough processor capacity :stuck_out_tongue:

only few cpus allow running guest OS into the guest, and most of them come from AMD. I really doubt that amazon is running those CPUs for their cloud installation.

Well, this stuff made me curious so I’ve created a VMWare image of the newest ROS, converted it into the appropriate format, uploaded to S3 (where the C2 cloud can import it)… only to find out in the end that this method only works for Windows operating systems. There is, however, another possibility. A running EC2 Linux instance can create another one with basically anything running in it. That’s something I haven’t looked into yet, I lack the free time for this experiment. Other than this, it would be quite an achievement to see ROS included as a standard offering in the EC2 infrastructure.

Agreed this would be awesome. I am also strapped for time and have not had time to figure this out.

Hi, i think the first thing needed to deploy a RouterOS on Amazon EC2 is that the RouterOS kernel have these kernel option enabled:

To be compatible with EC2, a Linux kernel must support Xen’s pv_ops (paravirtual ops) infrastructure with XSAVE disabled or the Xen 3.0.2 interface.

Extracted from http://aws.typepad.com/aws/2010/07/use-your-own-kernel-with-amazon-ec2.html

Can someone from Mikrotik staff confirm if this option is enabled?

There is a great tutorial in this link saying how to deploy a custom kernel to Amazon EC2:
http://www.ioncannon.net/system-administration/1246/converting-from-virtualbox-or-vmware-to-ec2-now-easier-than-ever

Any volunteer to make the first public AMI image of RouterOS on Amazon EC2 and make it available to us?

Regards,

Fabiano

everything regarding XEN virtualization is disabled. Only chance would be to load RouterOS 3.x and all versions till introduction of KVM as VMS in RouterOS.

I shot an email about 2 years ago asking if they would want to run Mikrotik as a service in aws. I told them I would help run the project too. They didn’t want anything to do with it and told me I could do it myself if I were willing to be a reseller and purchase a bunch of licenses and resell each license per instance ahead of time. The tone of the email was somewhat of a “You are not worth my time” tone. I don’t know if they just didn’t know what I was talking about or something got lost in translation but they were somewhat rude.

This does work for linux instances too. I actually tried a direct import of routeros from vmware (not s3) through the AWS VMware Connector but it failed. I’m thinking there’s a kernel issue because they only allow kernels with certain things compiled into it.

VMWare Connector
https://aws.amazon.com/developertools/2759763385083070

Just thinking aloud - has anyone tried this with Azure? On a cursory look, you can import a Linux VM by uploading a VHD file.

I know almost nothing about Azure, but wouldn’t it be reasonable to assume that it shares code with Hyper-V? If so, wouldn’t drivers for ethernet interfaces be a problem (see other Hyper-V threads)?

– Nathan