Giter VIP home page Giter VIP logo

lxc-utils's Introduction

LXC Utilities

Licence

2011 Sebastien Badia feel free to copy and adapt

Install Lxc

  1. apt-get install lxc debootstrap bridge-utils vlan libcap2-bin
  2. mkdir /cgroup
  3. echo "cgroup /cgroup cgroup defaults 0 0" >> /etc/fstab
  4. mount cgroup

Play with Lxc

  1. Créez le lv sh lv-create 2 dns
  2. Créez la vm lxc-debian-squeeze -p /lxc/dns -n dns -i 10.0.10.1 -m 01
  3. Démarrez la vm lxc-start -n dns -d
  4. Soppez la vm lxc-stop -n dns
  5. Etat de la vm (basique) lxc-info -n dns
  6. Console lxc-console -n dns (default passwd root:root)

Lxc Status

wget https://raw.github.com/sbadia/lxc-utils/master/lxc-status && bash lxc-status

Ip Addr Bridge State Hostname

10.0.10.1 switch-prod Running apt.sebian.fr

10.0.10.6 switch-prod Running dns.sebian.fr

10.0.10.2 switch-prod Running git.sebian.fr

10.0.10.5 switch-prod Running mail.sebian.fr

lxc-utils's People

Contributors

sbadia avatar

Stargazers

 avatar Matthieu Lemoine avatar  avatar

Watchers

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