Code Monkey home page Code Monkey logo

maimok's Introduction

Maimok

A web interface for virtual machines running on KVM/libvirt written in Go and Vue.js

Features

  • Create virtual machines from base images supporting cloud-init (currently, only Ubuntu based images are tested and supported)
  • Configure RAM and disk space on creation
  • Setup network inside VM: IP address, netmask, gateway
  • Create user sysadmin with sudo permissions (without password)
  • Inject ssh keys into VM (sysadmin user)
  • Set hostname of VM
  • Install all updates on first bootup
  • Install all apt upgrades and reboot VM at 04:00 if necessary (unattended-upgrades)

Tested with base images from https://cloud-images.ubuntu.com/.

Screenshots

Screentshot1 Screentshot2

Setup

  • On the virtual machine host, install KVM and libvirtd.
  • Download a base image (e.g. https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img) and move it to /var/lib/libvirt/images/
  • Clone this repo to the machine that should run maimok (can be the virtual machine host)
  • Install docker and docker-compose
  • Build docker image: docker build . -t maimok
  • Copy and modify one of the docker-compose example files in the examples/ directories
  • Start the docker container with docker-compose up -d

Development

Backend

The REST API backend is written in Go using the chi router. To start hacking on the backend:

  • Install Go
  • Create a config.toml file from the provided example-config.toml file
  • Run the backend with go run main.go

Frontend

The web frontend is a TypeScript SPA using Vue.js and the Vuetify.js component frameowrk.

  • Install a current version of node.js, npm and yarn
  • Install dependencies: yarn
  • Run the development server: yarn serve

maimok's People

Contributors

fotcorn avatar

Watchers

 avatar

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.