Project

General

Profile

Support #826

Updated by Daniel Curtis almost 8 years ago

This is a guide on setting up LXC Web Panel to manage Linux Containers on Arch Linux. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 sudo pacman -Syu 
 </pre> 

 h2. Install LXC Web Panel 

 * Install a couple dependencies: 
 <pre> 
 sudo pacman -S python2 python2-pip 
 </pre> 

 * Clone the LXC Web Panel repository: 
 <pre> 
 cd /usr/local 
 git clone https://github.com/lxc-webpanel/LXC-Web-Panel.git 
 cd LXC-Web-Panel 
 </pre> 

 * Install Flask 
 <pre> 
 sudo pip2 install flask==0.9 
 </pre> 

 * Run LXC Web Panel 
 <pre> 
 python2 lwp.py 
 </pre> 

 * Connect you on http://lxcpanel.example.com:5000/ 
 #* Login with user *admin* and password *admin* 

 h2. Systemd Service 

 * Create the lxc-webpanel service file: 
 <pre> 
 sudo nano /etc/systemd/system/lxc-webpanel.service 
 </pre> 
 #* And add the following: 
 <pre> 
 [Unit] 
 Description=LXC Web Panel 

 [Service] 
 WorkingDirectory=/usr/local/LXC-Web-Panel 
 ExecStart=/usr/bin/python2 /usr/local/LXC-Web-Panel/lwp.py 

 [Install] 
 WantedBy=multi-user.target 
 </pre> 

 * Reload the systemd daemon and start the lxc-webpanel service: 
 <pre> 
 sudo systemctl daemon-reload 
 sudo systemctl start lxc-webpanel 
 </pre> 

 h2. Resources 

 * https://github.com/lxc-webpanel/LXC-Web-Panel 
 * https://lxc-webpanel.github.io/install.html

Back