Git Product home page Git Product logo

sdk's Introduction

LILiK SDK

Automated script based on QEMU to build at home a virtual simulated LILiK infrastructure.

IPs are hardcoded in the provided images, with the following subnets:

  • 10.151.40.0/24 for emulated physical host
  • 10.151.42.0/24 for emulated lxc container

The configured entities are the following:

  • 10.151.40.1,10.151.42.1: OpenWRT Firewall
  • 10.151.40.60: SkyBlue emulated physical host
  • /tmp/lilik_switch.mgmt: Management terminal of the virtual switch

Setup

To install the current version SDK, simply run:

wget https://github.com/LILiK-117bis/SDK/releases/download/v0.2-alpha/liliksdk.sh
sh liliksdk.sh

The interactive installer will guide you.

If you prefer to install from source, do the following

git clone https://github.com/LILiK-117bis/SDK.git
cd SDK
sh build.sh
sh liliksdk.sh

Use

After the installation you will find yourself with switch, firewall and host started, but the switch will be disconnected from the host running the SDK.

To access the virtual networks 10.151.x.x directly from the host running the SDK you can connect the switch to a virtual network interface with the following command (sudo required):

cd <SDK INST PATH>
./lilik.sh switch connnect

You can start and (brutally) stop hosts with the lilik.sh script. Before staring any host you have to start the switch, otherwise they won't boot.

Requirements

Only for the installation process:

  • genisoimage
  • bsdtar
  • curl
  • sed

To run Lilik SDK:

  • qemu (with foreign arch support)
  • vde2

On Debian you can satify the dependencies with:

sudo apt install qemu-kvm vde2 bsdtar genisoimage curl sed

Or in Arch and Manjaro you can use:

sudo pacman -S qemu qemu-arch-extra vde2 curl cdrtools libarchive sed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.