https://github.com/robacarp/lxc_builder
A better, more configureable LXC template
https://github.com/robacarp/lxc_builder
Last synced: 10 months ago
JSON representation
A better, more configureable LXC template
- Host: GitHub
- URL: https://github.com/robacarp/lxc_builder
- Owner: robacarp
- License: mit
- Created: 2014-04-08T00:18:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-10T22:25:48.000Z (about 12 years ago)
- Last Synced: 2025-03-30T19:12:15.804Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Better LXC Builder
=======
The available LXC templates (on our systems) are very complicated and inflexible. The ubuntu LXC template is a rather long and complicated bash script that makes it difficult to understand what is going on when an LXC is created and (perhaps more importantly) updating important variables is rather difficult difficult or left entirely up to the operator (eg ip address).
The aim of this project is to provide an interface which plugs into the lxc creation command just as the standard lxc templates available in ```/usr/lib/lxc/templates```, but provide useable output, readable code, enhanced configuration options, and more flexibility around the options given.
Prerequesites
------
- A linux distribution capable of creating and using LXC containers. This template has been developed and tested under ```Ubuntu 12.04```
Installation
------
- Clone the repository into the lxc template directory (Ubuntu default appears to be ```/usr/lib/lxc/templates```):
$ sudo -s
\# git clone git@github.com:robacarp/lxc_builder.git /usr/lib/lxc/templates/lxc_template
- Symlinx lxc_template/lxc-base into ```/usr/lib/lxc/templates``` so the lxc creator can find it.
Usage
------
Provide the ```builder``` to the lxc-create command: ```lxc-create -n NewLxcContainer77 -t builder```
State of development
=======
(2014-04-09) - The code is stabilizing out and is in use regularly, but should still be considered Alpha.
License
=======
See [the license file](LICENSE)