Code Monkey home page Code Monkey logo

maas-lxd's Introduction

maas-lxd

This is a simple project to provide MAAS with KVM POD capability in a LXD container.

Getting Started

  • LXD must be installed and working. LXD Install Guide
  • KVM must be installed and working. KVM Install Guide
  • If running LXC version 3.0 or above, ensure that you have an LXD storage pool named "default" set up; this project assumes it is.

Running

If using a version of lxd that supports storage pools (>2.0), ensure that the pool name in 'root-device' matches what you have in lxc storage list

Run the make-maas.sh and name your MAAS container.

./make-maas.sh maas

This applies the included profile to a container, tries to get it's IP address and adds a dnsmasq entry to LXD so that containers which PXE will be sent to MAAS. Note that DNS/DHCP is still done via LXD. If you are using the default NAT configuration you'll be able to spin up KVM's inside this LXD container through MAAS. If you're using a bridged network setup you'll need to handle network configuration to address how you want DHCP/DNS/PXE to be routed.

The install can take some time as it has to install several packages. When it is complete you can access your MAAS node at http://MAASIP:5240/MAAS

Using MAAS

See the MAAS Documentation for up to date information. A few quick comments

  • An admin user has been setup, password/login are admin/admin
  • You can use MAAS PODS, but one is not automatically added currently with this script. To do so run create-vm-pod.sh $container-name after MAAS is up and has been configured with images. This will create a pod and an initial VM.

Once PODs are configured you can create them directly from the MAAS interface. MAAS will also compose a pod for juju when juju requests a machine. However automatic machine creation is currently not working https://bugs.launchpad.net/maas/+bug/1740935 on stable branches, it appears version 2.6 in development it is currently working.

For more information on using Juju with MAAS see Using a MAAS cloud in the juju documentation.

maas-lxd's People

Contributors

charlesdunbar avatar chris-sanders avatar davecore82 avatar vultaire avatar

Watchers

 avatar  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.