GithubHelp home page GithubHelp logo

lxd-profiles's Introduction

LXD Profiles

Set of useful LXD profiles.

NOTICE: Please, remember that some profiles are templates that must be edited before adding them to LXD.

Profiles

  • autofs.yaml: Profile to allow autofs tools to work properly.
  • docker.yaml: Allow to run privileged Docker containers inside LXD.
  • kmem.yaml: Profile to allow containers to access host's memory (read only).
  • macvlan.yaml: Profile to add an ethernet interface to containers to get a public IP.
  • proxy.yaml: Profile to set environment variables to set a Proxy Server.
  • selinux.yaml: Profile to allow containers to access host's SELinux information.
  • x11-apps.yaml: Profile to allow containers run X11 applications using host's display.

Install

In order to install a profile, run next commands:

lxc profile create **PROFILE_NAME**
lxc profile edit **PROFILE_NAME** < **PROFILE_FILE**.yaml

Apply

There are two ways assingning profiles to a container:

lxc profile assign C P1,P2  # assigns P1 and P2 profiles to container C removing other ones
lxc profile add C P  # adds profile P to container C without removing the others

Example output

user@host ~ $ lxc profile list
+--------------+---------+
|     NAME     | USED BY |
+--------------+---------+
| autofs       | 1       |
+--------------+---------+
| default      | 13      |
+--------------+---------+
| docker       | 0       |
+--------------+---------+
| proxy        | 10      |
+--------------+---------+
| kmem         | 2       |
+--------------+---------+
| macvlan      | 7       |
+--------------+---------+
| x11-apps     | 1       |
+--------------+---------+
user@host ~ $

lxd-profiles's People

Contributors

diegolagoglez avatar

Stargazers

Dmitry Lyfar avatar Macduff avatar David Andel avatar Andre Silva avatar Emma avatar Straying avatar Ken Crandall avatar

Watchers

James Cloos avatar

lxd-profiles's Issues

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.