From 27c3ae466f355aeade37cb6a0e3e4fd61fd52427 Mon Sep 17 00:00:00 2001 From: Nerkdesign Date: Tue, 23 Apr 2024 16:14:46 +0200 Subject: [PATCH] Install script --- install.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0c426b5 --- /dev/null +++ b/install.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Hype² installation script +# Tested on Debian 11 and Debian 12 +# +# 1.0 by Pierre Porcheret +# +# +clear +echo "Requirements packages" +apt-get update -y -qq +apt-get install git lxc lxcfs lxc-templates qemu qemu-utils qemu-kvm virtinst bridge-utils virt-manager libvirt-daemon libvirt-daemon-system virt-viewer libvirt-clients libosinfo-bin websockify sqlite3 novnc +apt-get python3-openssl +echo "Openswitch install" +apt-get install openvswitch-switch openvswitch-common +echo "Python libs install" +apt-get install python3 python3-flask python3-flask-login python3-flask-sqlalchemy python3-requests python3-lxc python3-libvirt python3-psutil python3-werkzeug python3-websockify python3-novnc python3-flask-socketio +echo "Enabling Libvirt" +systemctl --quiet enable --now libvirtd +systemctl --quiet start libvirtd +echo "Bridged interface installation" +cp ./bridged.xml /usr/share/libvirt/networks/ +virsh net-define bridged.xml +virsh net-start bridged +virsh net-autostart bridged +echo "Copy default database" +cp db.db.admin_example db.db +clear +echo "Installation Done" +echo "Please follow the Qemu modification according to README.md"