Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Katoga/omnia-lxc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turris Omnia LXC init

Scripts to simplify creating LXC containers on Turris Omnia router.

Usage

  1. define env vars
    • Linux distribution
      $ export lxc_dist=Debian
    • release version of aforementioned Linux distribution
      $ export lxc_release=Bookworm
    • name of container (is set as hostname in it too)
      $ export lxc_app=my-app
    • OPTIONAL: MAC address to be given to container (i.e. for assigning stable IP/hostname)
      $ export lxc_mac='XX:XX:XX:XX:XX:XX:'
  2. OPTIONAL:
    in ./${lxc_app}/, create any files that should be copied inside the container after its creation
    If there is ./${lxc_app}/usr/sbin/init.sh executable file it will be run inside the container after it is created.
    If there is ./${lxc_app}/usr/sbin/post-init.sh executable file it will be run inside the container after init is finished and container rebooted.
  3. run the script
    $ ./init-container.sh

About

Scripts to simplify creating LXC containers on Turris Omnia router.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages