Base Operating System for building Containers.

License: Apache-2.0

Language: Ruby


Base Operating System for building Containers.


LXCOs - 0.1-beta is out for testing. Following are the steps for installation. This is aimed at public clouds and can be tested on AMazon EC2. Bare metal iso is on the way.


  • Chef Server
  • Chef Workstation
  • Amazon EC2 Account
  • knife ec2 wrapper on Chef Workstation


  • Clone the repo form
  • git checkout 0.1-beta.
  • Create a github repo with your public keys in a text file "keys". This is safe. Trust me.
  • Modify line 18 with the repository to your keys.
  • knife cookbook upload -o /path/to/lxcos base
  • knife ec2 server create -r "recipe[base::install],recipe[base::configure]" -I ami-7050ae18 --flavor t1.micro -G <security-group> -Z <zone> -x ubuntu -S <keyname> -N <node-name> -i </path/to/key> -K <<AMAZONSECRETKEY> -A <AMAZONACCESSKEY> --ebs-size G
  • Make sure that you have a security group with 22 and 80 open
  • Wait for a while. Amazon micro instances are slow and being free provisioning is more slow.
  • After provisioned, ssh goatos@<ec2-url>
  • Finished.


  • /opt/chef/embedded/bin/ruby /usr/local/bin/create_container.rb <container-name> <container-type> <memoryM> <cpus>
  • lxc-ls --fancy
  • Look at the IP and login as ssh ubuntu@IP. Password is 'ubuntu'
  • Currently container type is only 'lamp-template'
  • Alternatively from the workstation run or from the ubuntu user account on the machine run "sudo chef-client -o "role[haproxy]""
  • This will add a haproxy entry to the container making it reachable by outer world.

TODO(In 0.1)

  1. Make more templates
  2. Improve Create container(Cloning) time/performance


Project Statistics

Sourcerank 3
Repository Size 677 KB
Stars 3
Forks 1
Watchers 15
Open issues 1
Dependencies 0
Contributors 2
Tags 2
Last updated
Last pushed

Top Contributors See all

Medhamsh Tapan Sharma

Recent Tags See all

0.1-beta July 29, 2014
0.1-alpha July 22, 2014

Something wrong with this page? Make a suggestion

Login to resync this repository