-
Notifications
You must be signed in to change notification settings - Fork 0
3.3.1 Server Setup
papo edited this page Feb 15, 2024
·
1 revision
https://techviewleo.com/install-kvm-hypervisor-on-ubuntu/
https://techviewleo.com/install-webvirtcloud-kvm-web-dashboard-on-ubuntu/
HINT for deprectaed warning: https://unix.stackexchange.com/questions/681220/netplan-generate-gateway4-has-been-deprecated-use-default-routes-instead
- no need for : virt-manager
- no default route on bridge
- sudo apt install iputils-ping
- add www-data to libvirt group:
sudo usermod -a -G libvirt www-data- fixes sock permission error
sudo apt update
sudo apt install -y qemu qemu-kvm libvirt-daemon bridge-utils virt-manager virtinst
sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
https://techviewleo.com/install-webvirtcloud-kvm-web-dashboard-on-ubuntu/
sudo apt -y install git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx supervisor libsasl2-modules gcc pkg-config python3-guestfs libsasl2-dev libldap2-dev libssl-dev- in ~/
git clone https://github.com/retspen/webvirtcloud - copy settings: secret = puzzlecubes
sudo cp conf/supervisor/webvirtcloud.conf /etc/supervisor/conf.d sudo cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.dsudo mv webvirtcloud /srv sudo chown -R www-data:www-data /srv/webvirtcloudsudo -i cd /srv/webvirtcloud virtualenv -p python3 venv source venv/bin/activate pip install -r conf/requirements.txt python3 manage.py migrate sudo chown -R www-data:www-data /srv/webvirtcloud sudo rm /etc/nginx/sites-enabled/default sudo systemctl restart nginx sudo systemctl restart supervisor sudo wget -O - https://bit.ly/36baWUu | sudo sh sudo adduser www-data kvm- changed webvirtcloud port to 8001 in /etc/nginx/conf.d/webvirtcloud.conf
--> Change to DOCKER ? https://github.com/retspen/webvirtcloud/wiki/Docker-Installation-&-Update
https://theselfhostingblog.com/posts/how-to-set-up-a-headless-syncthing-network/
sudo apt-get install curl apt-transport-https
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
#sudo apt-get upgrade
sudo apt-get install syncthing
sudo systemctl enable syncthing@pc-admin.service
sudo systemctl start syncthing@pc-admin.service
https://linuxize.com/post/creating-a-self-signed-ssl-certificate/
openssl req -newkey rsa:4096 \
-x509 \
-sha256 \
-days 36500 \
-nodes \
-out pc.crt \
-keyout pc.key
https://tecadmin.net/how-to-install-and-use-cockpit-on-ubuntu/
sudo apt-get install cockpit -y
sudo systemctl enable --now cockpit.socket