Refactorized scripts

This commit is contained in:
2025-07-17 17:39:48 +02:00
parent e2c3ec0f13
commit b99db7713c
11 changed files with 540 additions and 13 deletions

13
install.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/env bash
#Define variable names on env_scripts/common.sh
#VM_NETWORK=
#VM_BASE_DIR=
#Install dependencies - TODO
source variables/common.sh
mkdir -p "${VM_BASE_DIR}"/{images,xml,init,base,ssh}
cp files/network.xml ${VM_BASE_DIR}/xml/network.xml
sed -i "s/YOURNETWORK/${VM_NETWORK}/g" ${VM_BASE_DIR}/xml/network.xml
virsh net-define ${VM_BASE_DIR}/xml/network.xml
virsh net-autostart ${VM_NETWORK}
virsh net-start ${VM_NETWORK}