first commit

This commit is contained in:
root
2023-06-22 15:30:22 +02:00
commit 4d9979354c
3294 changed files with 445677 additions and 0 deletions

23
tools/Debian_install.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
echo "(1/5) Update apt"
apt-get update -y -qq
echo "(2/5) Install dependencies..."
apt-get install -qq lxc lxcfs lxc-templates python3-lxc python3-pip bridge-utils
apt-get install -qq qemu-kvm virtinst qemu virt-manager libvirt-daemon libvirt-daemon-system bridge-utils virt-viewer libvirt-clients libosinfo-bin python3-venv
echo "(3/5)Install Flask modules and Web terminal modules..."
python3 -m pip install --upgrade pip
pip3 install -q psutil flask_fontawesome flask pyxtermjs simplepam Flask-Navigation flask-dropzone pygal
pip3 install -q -r ./requirements.txt
echo "(4/5) Libvirt configuration"
echo "\tEnable libvirt"
systemctl --quiet enable --now libvirtd
echo "\tStarting libvirt"
systemctl --quiet start libvirtd
echo "(5/5)Create a Bridged Network"
cp ./bridged.xml /usr/share/libvirt/networks/
virsh net-define bridged.xml
virsh net-start bridged
virsh net-autostart bridged
echo "Done !"

5
tools/bridged.xml Normal file
View File

@@ -0,0 +1,5 @@
<network>
<name>bridged</name>
<forward mode="bridge" />
<bridge name="br0" />
</network>

85
tools/change.log Normal file
View File

@@ -0,0 +1,85 @@
---------v1
System/core install:
- install of lxc and core components
- install python3 and components to comunicate with lxc-api
Interface:
- install flask and template render for the interface rending
- html/css/fonts :
./web/static/style.css
./web/template/index.html
.fonts are from googlefont free to use*
* sources:https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
- icons : fontawsome adapted to flask : flask_fontawesome
* sources:https://pypi.org/project/Flask-FontAwesome/
----------v1.1
- Adding configuration in seperate file (./static/config.ini)
- Adding logs
- Adding Font Awsome
----------v1.2
- Correct many bugs : naming restrictions, alert messages
- Interface CSS review
----------v1.3
- Add static ip option
----------v1.9
- Adding Web Terminal to Console (Pyxtermjs)
- Improving Installer (Quiet mode)
----------v2.0
- Check if Container is running before Terminal Button display
- Adding Login page, PAM Auth.
---------v2.5
- Adding VM manager using libvirt
- Adding ISO management zone (upload/use/delete)
- Adding Pool and Volume View
- Adding Terminal in a Modla
- Review on webpage management and design
- Adding menu (flask-menu)
- Adding Monitoring View
---------v2.5.1
- Improve Monitoring :charts (pygal)
- Finish Virtual Server form creation
- Fixed Terminal for Creation
---------v2.5.3
- Adding host page info
- Adding log streaming
- Design improvement (Menu/snapshot/head of menu)
- Improving Monitoring by psutils (more compliance with other systems)
---------v2.5.4
- Adding Snap removal
- Adding bridged network
- Adding Volume deletion
- Adding LXC monitoring
- Adding Volume removal
---------v2.5.5
- Correct Pool list if manual deletion adding a refresh (Volume and Pool)
- Force stop for VM if shutdown is not possible/working
- Add warning before delete or force to stop first.
---------v2.5.6
- Adding Chartjs for charts (removed pygal)
- Correct IPv4 for VM
- Small corrections
---------v2.6
- Adding Dashboard
---------v2.6.1
- Increasing Dashboad (Disk,CPU,RAM)
---------v2.7
- Adding ISO mounting on VM
_________Next
- Improve Storage :creation volume/Show other Pool/Create Pool(?)
- Add Network Manager
- Add Admin Management or Config management

9
tools/hype.service Normal file
View File

@@ -0,0 +1,9 @@
[Unit]
Description= Hype service
After=multi-user.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /etc/hype.py
[Install]
WantedBy=multi-user.target

BIN
tools/images/Login.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
tools/images/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

26
tools/requirements.txt Normal file
View File

@@ -0,0 +1,26 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
#
# pip-compile requirements.in
#
bidict==0.21.2
# via python-socketio
click==8.0.1
# via flask
flask==2.0.1
# via flask-socketio
flask-socketio==5.1.1
# via -r requirements.in
itsdangerous==2.0.1
# via flask
jinja2==3.0.1
# via flask
markupsafe==2.0.1
# via jinja2
python-engineio==4.2.1
# via python-socketio
python-socketio==5.4.0
# via flask-socketio
werkzeug==2.0.1
# via flask