GithubHelp home page GithubHelp logo

alexxnica / lago-images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lago-project/lago-images

0.0 1.0 0.0 30 KB

Image creation and hosting related scripts and configurations

Python 100.00%

lago-images's Introduction

lago-images

This repo holds all the files needed to generate the lago image repositoy.

Building the repo

To build the repo just run this from the root of this git repo:

$ bin/build.py --repo-name myrepo --base-url http://myrepo/

That will generate the repo at ./image-repo/ with all the images from the specs at ./image-specs. See the help of that command for more info.

The repo-name and base-url are used to generate the lago repository metadata.

For now the only template format supported for the generated template is qcow2.

NOTE: it takes some time and it will occuppy ~900GB of space and need ~6GB free during the run to generate all the images (depends on the current set of images, count ~ 250MB of permanent storage for each image and ~ 6GB of transient storage)

Using the repo

You can use the generated repo with virt-builder and lago:

With lago

That repo will include a repo.metadata file to use with lago's --template-repo-path option, you can just download it and use it with lago:

$ wget https://path.to.the/repo/repo.metadata
$ lago init --template-repo-path=repo.metadata ...

Or once https://bugzilla.redhat.com/show_bug.cgi?id=1288582 is released:

$ lago init \
    --template-repo-path=https://path.to.the/repo/repo.metadata \
    ...

Then in your environment json (where you define the domains/vms to use and their disks) you can define the disk as usual:

"disks": [
    {
        "template_name": "fedora23-base",
        "type": "template",
        "name": "root",
        "dev": "sda",
        "format": "qcow2"
    }
]

With virt-builder

The repo will also have an index file that enables it to be used by virt-builder with --source option (for now there's no signing, so make sure to add also --no-check-signature):

$ virt-builder \
    --source=https://path.to.the/repo/index \
    --no-check-signature \
    --list

lago-images's People

Contributors

gbenhaim avatar nvgoldin avatar david-caro 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.