From c6dc45b72484d89026a6367e9f7d52d960640d79 Mon Sep 17 00:00:00 2001 From: missytake Date: Sat, 30 Nov 2024 09:27:13 +0100 Subject: [PATCH] ararat: rough structure of deploy.py --- ararat/deploy.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ararat/deploy.py b/ararat/deploy.py index e69de29..06a505d 100644 --- a/ararat/deploy.py +++ b/ararat/deploy.py @@ -0,0 +1,16 @@ + +# if it doesn't exist, create encrypted data partition +# mount encrypted data partition + +# apk add kvm virsh +# rc-update add libvirtd + +# add networking: https://wiki.alpinelinux.org/wiki/KVM#Networking +# modprobe tun +# echo "tun" >> /etc/modules-load.d/tun.conf +# cat /etc/modules | grep tun || echo tun >> /etc/modules + +# if it doesn't exist, create debian base image (later: and other base images): https://mop.koeln/blog/creating-a-local-debian-vm-using-cloud-init-and-libvirt/#download-the-image +# for every active VM, if no image exists, run virt-install with the chosen base image and their cloud-init.yml file: https://mop.koeln/blog/creating-a-local-debian-vm-using-cloud-init-and-libvirt/#preparing-a-cloud-init-file +# for every active VM, make sure an IP is assigned and traffic is passed to it +