Undefine VMs upon destroy; Define VMs upon create

This commit is contained in:
Pim van Pelt
2023-11-19 18:27:46 +00:00
parent b14e7674ad
commit 3d60a51503
3 changed files with 11 additions and 1 deletions

2
create
View File

@ -44,4 +44,6 @@ for VM in $VMS; do
ssh root@$HVN "umount $STAGING/$VM; zfs snapshot vol0/${VM}@pristine"
echo "[$VM] Copying libvirt config"
scp -q build/${BUILD}/${HVN}/${VM}/root/libvirt.xml root@$HVN:${LABDIR}/${VM}.xml
echo "[$VM] Defining libvirt config"
ssh root@$HVN "virsh define ${LABDIR}/${VM}.xml"
done