Thursday 12 September 2013

Installing LXC ( Linux Containers ) With LXC Web Pannel In Ubuntu

What is LXC

Linux Containers (LXC) are lightweight virtualization technology and provide a free software virtualization system for computers running GNU/Linux, This is accomplished through kernel level isolation, It allows one to run multiple virtual units (containers) simultaneously on the same host.
  • manage resources using PCG ( process control groups ) implemented via cgroup filesystem
  • Resource isolation via new flags to the clone(2) system call (capable of create several types of new namespace for things like PIDs and network routing)
  • Several additional isolation mechanisms (such as the “-o newinstance” flag to the devpts filesystem).
The LXC package combines these Linux kernel mechanisms to provide a userspace container object, a lightweight virtual system with full resource isolation and resource control for an application or a system.
Installing LXC ( ubuntu 13.04 )
 $ sudo apt-get install lxc
Creating container
$ sudo lxc-create -t ubuntu -n ubuntu
$ sudo lxc-start -n ubuntu
Login in container
$ sudo lxc-console -n ubuntu -t 1
Install LXC web panel
$ sudo apt-get install lxc debootstrap bridge-utils -y
$ sudo su
$ wget http://lxc-webpanel.github.com/tools/install.sh -O - | bash
Login in LXC web panel
open broswer 

http://localhost:5000  
username :  admin 
password admin
web panel config file :  /srv/lwp/lwp.conf
lxc1
lxc3
lxc2
lxc5

useful links :

Source :  http://www.computersnyou.com/2123/2013/07/installing-lxc-with-lxc-web-pannel-in-ubuntu/  By On

No comments:

Post a Comment

Mastering Docker Minified Systems: A Step-by-Step Guide with Real Use Cases

Introduction Docker is a powerful platform for developing, shipping, and running applications. Minified Docker systems are optimized for siz...