Git Product home page Git Product logo

lvmvm's Introduction

LVM2 based system container
Usage:
Create LVM volume group $VG and logical volume $BOOTSTRAP, update names in args
Mount /dev/$VG/$BOOTSTRAP on /mnt/bootstrap and create base system inside
  debootstrap natty /mnt/bootstrap
Setup the base system for SSH access (if running in isolated mode intended)
  chroot /mnt/bootstrap
  passwd # setup new root password for chroot
  apt-get install dropbear # or openssh-server. will fail when starting ssh server.
Quit chroot shell, umount /mnt/bootstrap

For creating new virtual environment virtenv1 with network address 192.168.100.2
  cp conf.example virtenv1
and modify variables inside.
Then call ./create.sh virtenv1 to create environment, ./mount.sh virtenv1 to mount filesystem.
User may chroot /mnt/virtenv1 to make changes, or setup network and start SSH by running ./host.sh virtenv1

chroot/*
  Setup scripts when mounting / umounting filesystem

chroot/mount
  Hook script run for all mounts

chroot/umount
  Hook script run for all umounts

chroot/$NAME.mount or $NAME.umount
  Hoot script run for environment $NAME

host.sh
  Run SSHd (dropbear) from within virtual env.

pause.sh
  Helper script for host.sh. Only designed to be run by host.sh

stop.sh
  Stop SSHd, removing virtual network

lvmvm's People

Contributors

wolf0403 avatar

Watchers

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