lost and found ( for me ? )

LXC Web Panel : GUI for Linux Container

about LXC Web Panel

[ install on Ubuntu 13.04 LXC ]

To install LXC Web Panel, we need to meet the following requirements.
Ubuntu 12.04 or higher
LXC 0.8 or higher
/var/lib/lxc as LXC root path

Here is my ubuntu box information.
root@ubuntu:~# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 13.04"
root@ubuntu:~# lxc-version
lxc version: 0.9.0
root@ubuntu:~# ls /var/lib/lxc/
ubuntu-cn1  ubuntu-cn2
root@ubuntu:~#

installation is very easy. jsut issue “wget ..”
root@ubuntu:~# wget http://lxc-webpanel.github.io/tools/install.sh -O - | bash

Installation complete!


Adding /etc/init.d/lwp...
Done
Starting server...done.
Connect you on http://your-ip-address:5000/
root@ubuntu:~#

root@ubuntu:~# lsof -ni:5000
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
python  11771 root    3u  IPv4 1869384      0t0  TCP *:5000 (LISTEN)

root@ubuntu:~# ps aux | grep 11771 | grep -v grep
root     11771  0.3  0.2  70008 18064 ?        S    02:31   0:02 /usr/bin/python /srv/lwp/lwp.py



config file
I have used a default configuration file.

root@ubuntu:~# cat /srv/lwp/lwp.conf
[global]
address = 0.0.0.0
port = 5000
debug = False

[database]
file = lwp.db

[session]
time = 10

[overview]
partition = /



how to start/stop

root@ubuntu:~# /etc/init.d/lwp status
Usage: /etc/init.d/lwp {start|stop|restart}

root@ubuntu:~# /etc/init.d/lwp stop
Stopping server...Stopped process in pidfile '/var/run/lwp.pid' (pid 11771).
done.

root@ubuntu:~# /etc/init.d/lwp start
Starting server...done.



access to web panel with an web browser
user : admin, pass : admin

You can create/start/stop/reboot containers via HTTP










No comments:

Post a Comment

Note: Only a member of this blog may post a comment.