Refactorized scripts
This commit is contained in:
13
install.sh
Normal file
13
install.sh
Normal 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}
|
||||
Reference in New Issue
Block a user