Virtualization possibilities in MikroTik RouterOS



Similar documents
MetaROUTER Overview & Configuration. Brian Vargyas Baltic Networks

CSE 501 Monday, September 09, 2013 Kevin Cleary

Xen Virtualization: Xen (source) and XenServer

RED HAT ENTERPRISE VIRTUALIZATION

Virtualised MikroTik

Options in Open Source Virtualization and Cloud Computing. Andrew Hadinyoto Republic Polytechnic

RUNNING vtvax FOR WINDOWS

Configuring Virtual Blades

Virtualization Management the ovirt way

Application-Centric WLAN. Rob Mellencamp

Virtualization and Performance NSRC

SAS3 INSTALLATION MANUAL SNONO SYSTEMS 2015

Enterprise-Class Virtualization with Open Source Technologies

Migrating to ESXi: How To

Virtualization: Know your options on Ubuntu. Nick Barcet. Ubuntu Server Product Manager

PARALLELS SERVER 4 BARE METAL README

IOS110. Virtualization 5/27/2014 1

Linux Virtualization Nesting and Management

Converting Linux and Windows Physical and Virtual Machines to Oracle VM Virtual Machines. An Oracle Technical White Paper December 2008

Install Guide for JunosV Wireless LAN Controller

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

IN DETAIL. Smart & Dedicated Servers

Required Virtual Interface Maps to... mgmt0. bridge network interface = mgmt0 wan0. bridge network interface = wan0 mgmt1

SUSE Linux Enterprise 10 SP2: Virtualization Technology Support

Hypervisor Software and Virtual Machines. Professor Howard Burpee SMCC Computer Technology Dept.

A Dude probing SNMP! Building custom probes and configuring equipment using SNMP with The Dude. Andrea Coppini AIR Wireless - Malta andrea@air.com.

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

PARALLELS SERVER BARE METAL 5.0 README

Systems Administration Introduction to OSPF

Virtual Web Appliance Setup Guide

Introduction to Virtualization & KVM

An Introduction to OpenStack and its use of KVM. Daniel P. Berrangé

Virtualization & Cloud Computing (2W-VnCC)

Hypervisors. Introduction. Introduction. Introduction. Introduction. Introduction. Credits:

2972 Linux Options and Best Practices for Scaleup Virtualization

9/26/2011. What is Virtualization? What are the different types of virtualization.

Parallels Cloud Server 6.0 Readme

VMware vsphere 5.0 Boot Camp

Tom Eastep Linuxfest NW April 26-27, 2008 Bellingham, Washington

How to Install the VMware ESXi Hypervisor on Physical Hardware

Parallels Cloud Server 6.0

The QEMU/KVM Hypervisor

Running vtserver in a Virtual Machine Environment. Technical Note by AVTware

Rally Installation Guide

TimeIPS Server. IPS256T Virtual Machine. Installation Guide

VMware vsphere 5.1 Advanced Administration

Accessing RCS IBM Console in Windows Using Linux Virtual Machine

VX 9000E WiNG Express Manager INSTALLATION GUIDE

Virtual Appliance Setup Guide

CDH installation & Application Test Report

Full and Para Virtualization

SonicWALL SRA Virtual Appliance Getting Started Guide

Virtualization of Wireless LAN Infrastructures

KVM Virtualization in RHEL 7 Made Easy

Virtualization in Linux KVM + QEMU

October Gluster Virtual Storage Appliance User Guide

Basic ESXi Networking

RPM Brotherhood: KVM VIRTUALIZATION TECHNOLOGY

Overview Customer Login Main Page VM Management Creation... 4 Editing a Virtual Machine... 6

Virtual Managment Appliance Setup Guide

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

Red Hat enterprise virtualization 3.0 feature comparison

New Obvious and Obscure MikroTik RouterOS v5 features. Budapest, Hungary MUM Europe 2011

BIG-IP Virtual Edition Setup Guide for Linux KVM. Version 11.4

Quick Deployment Step-by-step instructions to deploy Oracle Big Data Lite Virtual Machine

Virtual Appliance Setup Guide

How to Configure Intel Ethernet Converged Network Adapter-Enabled Virtual Functions on VMware* ESXi* 5.1

F-Secure Internet Gatekeeper Virtual Appliance

VMware vsphere-6.0 Administration Training

Intro to Virtualization

Installing and Administering VMware vsphere Update Manager

Vocera Voice 4.3 and 4.4 Server Sizing Matrix

AIR FORCE ASSOCIATION S CYBERPATRIOT NATIONAL YOUTH CYBER EDUCATION PROGRAM UNIT THREE. Computer Basics and Virtual Machines.

Virtualization Features

Hyper-V vs ESX at the datacenter

Introduction to ovirt

Software SIParator / Firewall

FOR SERVERS 2.2: FEATURE matrix

Table of Contents. Virtual Server Software Trade Study Architecture Working Group, Systems Administrators Group , Revised

Citrix XenServer 5.6 Feature Pack 1 Quick Start Guide. Published Monday, 17 January Edition

Cloud^H^H^H^H^H Virtualization Technology. Andrew Jones May 2011

A quantitative comparison between xen and kvm

Virtualization for Cloud Computing

Comparing Free Virtualization Products

HRG Assessment: Stratus everrun Enterprise

VIRTUALIZATION 101. Brainstorm Conference 2013 PRESENTER INTRODUCTIONS

Preparation Guide. How to prepare your environment for an OnApp Cloud v3.0 (beta) deployment.

Supported File Systems

A Comparison of VMware and {Virtual Server}

Ubuntu OpenStack on VMware vsphere: A reference architecture for deploying OpenStack while limiting changes to existing infrastructure

Virtualizare sub Linux: avantaje si pericole. Dragos Manac

SAN Implementation Course SANIW; 3 Days, Instructor-led

Citrix XenServer-6.2 Administration Training

Aerohive Networks Inc. Free Bonjour Gateway FAQ

NetIQ Cloud Manager 2.2.2

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

ISERink Installation Guide

SCO Virtualization Presentation to Customers

Virtualization with Windows

Transcription:

Virtualization possibilities in MikroTik RouterOS by Martin Pína MUM Poland, Wroclaw, 2 nd March, 2010

Why virtualization? Security (create whole running environment) Logical segregation (HTTP/FTP/DNS) Testing (new setups, new features) Better use of resources Easier administration

Why to virtualize RouterOS? To have better usable networking possibilities in server setup (e.g. RouterOS as guest in VMware Server / ESXi) To use some of RouteOS'es package to be used as standalone virtual server (Dude / HOTSPOT / VPN server / User Manager) To give the customers their own virtual router

Why RouterOS as Host? A router is probably used / needed anyway To save money for running more computers (initial cost / electricity) Virtualization on non-x86 platforms is supported by MikroTik Wireless router cannot be easily virtualized (PCI passthrough) Why not?

Virtualization available in RouterOS XEN for x86 KVM for x86 MetaROUTER for mipsbe and ppc

History of virtualization in RouterOS since v3.11 support for XEN on x86 (possible to run non-routeros guest - Linux) since v3.21 support for MetaROUTER on mipsbe platform since v3.26 support for MetaROUTER on ppc (RB1000) since v3.26 support for KVM on x86 since v4.4 dropped support for XEN on x86

Hardware requirements Strong CPU Enough RAM (min 16MiB for RouterOS guest) MetaROUTER specific Supported architecture (mipsbe / ppc) KVM specific Full support of hw virtualization on x86 (AMD-V or Intel VT-x)

MetaROUTER Able to run either RouterOS or OpenWRT patched Linux Commonly deployed for customer administered router (RouterOS) or running specific simple task without need of dedicated server (Squid proxy, Asterisk PBX, Apache webserver) Already presented by Uldis Cernevskis (MUM Prague 2009) by Brian Vargyas (MUM Fort Worth 2009)

KVM Kernel-based Virtual Machine Supported by main Linux distributions (Ubuntu and Red Hat) as their main virtualization platform Requires hw with virtualization support (unlike XEN)

RouterOS KVM Status Quo #1 CPU power and amount of RAM is only limited by Support for running non-routeros guests of the same architecture (Linux, Windows) Ability to run VMs created originaly on Linux Hosts Support for accelerated network through virtio NIC (driver available for Linux & Windows) Connection to VMs available using Console (text only) VNC (virtual display)

RouterOS KVM Status Quo #2 Only CLI management No 64bit support since RouterOS is only 32bit Host CPU power reservation limited to number of assigned CPUs to guest (unlike former XEN implementation) Limited possibilities (and speed) for storage (no LVM support, no iscsi support, virtual disks stored as files)

Current RouterOS KVM Bugs (v4.6) Boot disk for RouterOS guest only with hda disk Boot for non-routeros OSes only with help of virtual CDROM Guest system is not possible to reboot/shutdown from Host RouterOS environment, guest hangs in stopping state Guest system shuts down completely when rebooted from its own environment

KVM Recommendations Use dedicated disk for storing virtual disk files Use administratively assigned MAC address if bridge is used between host and guest systems Use VNC for non-routeros images Keep in mind security of virtual machines Accessibility to virtual disk files VNC connection address (and possibly firewall)

KVM Main Options menu for creating disks, virtual machines, controlling VM state [admin@kvm-demo] > /kvm menu for assigning network interfaces to virtual mechines [admin@kvm-demo] > /kvm interface menu for creating static virtual interfaces [admin@kvm-demo] > /interface virtual-ethernet

KVM Guest Disk Creation Lets create virtual disk file in RouterOS (recommended for RouterOS guests) [admin@kvm-demo] > /kvm \ make-routeros-image \ file-name=sata1/virtual-disk.img \ file-size=128 Or create some file elsewhere and then copy it using ftp or scp into RouterOS physical disk linux-pc:~#dd if=/dev/zero \ of=/virtual-disk.img bs=1m count=128

KVM RouterOS Guest Interface Management Create virtual interface and assign it to specific preexisting VM [admin@kvm-demo] > /interface virtual-ethernet add \ name=demo-tap0 disabled=no [admin@kvm-demo] > /kvm interface add type=static \ interface=demo-tap0 \ model=virtio virtual-machine=existing-demo-vm Or create a dynamic interface for pre-existing VM [admin@kvm-demo] > /kvm interface add type=dynamic \ virtual-machine=test

KVM RouterOS Guest Creation Configure new VM with needed settings (name, cpu-availability, memory assignment in MiB, path to pre-existing virtual disk file and optionaly enabling VNC virtual display) [admin@kvm-demo] > /kvm add \ name=demo-routeros-guest cpu-count=1 \ memory=128 \ disk-images=hda:sata1/virtual-routeros.img vnc-server=0.0.0.0:1

KVM non-routeros Guest Creation Almost no difference, probably there is more RAM needed and virtual CDROM (.iso image file) to boot and install from [admin@kvm-demo] > /kvm add \ name=demo-non-routeros-guest cpu-count=1 \ memory=512 \ disk-images=cdrom:sata1/ubuntu-9.10-serveri386.iso,hda:sata1/virtual-routeros.img \ vnc-server=0.0.0.0:2

KVM Practical Example Live demo... $ ssh admin@kvm-demo

Troubleshooting KVM Are all the prerequisites fulfilled and enabled? (enough RAM, interfaces, all disk images prepared) If VM is not working, what is written in status of the VM? More detailed logging may be enabled for KVM. [admin@kvm-demo] > /system logging add \ topics=kvm,debug action=memory disabled=no Write to MikroTik support

Resources http://wiki.mikrotik.com/wiki/kvm http://forum.mikrotik.com/viewforum.php?f=15 http://en.wikipedia.org/wiki/kernelbased_virtual_machine

Thanks for your attention (patience) Questions...? If later, feel free to write me an e-mail: martin.pina@hanacke.net