From a665e3cbf01e7d0290ec62b49ead372bb2b0779e Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Mon, 17 Oct 2022 09:44:48 +0200 Subject: [PATCH] Add a placeholder flow for create/destroy --- create | 14 ++++++++++++++ destroy | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 create create mode 100644 destroy diff --git a/create b/create new file mode 100644 index 0000000..badac96 --- /dev/null +++ b/create @@ -0,0 +1,14 @@ +## Using SSH: +## * Log in to hypervisor, retrieve list of running VMs +## * Log in to hypervisor, retrieve list of ZFS volumes +## * List any VM matching spec ^vpp[\d]+-[\d+]$ +## * List any ZFS datasets matching matching spec ^ssd-vol0/vpp[\d]+-[\d+]$ +## * If any of these exist, bail and require the user to run ./destroy first +## +## +## * Log in to the hypervisor, and: +## * Clone the base image to all VM names (ssd-vol0/vpp0-[0-3]) +## * Mount these in a staging directory +## * Rsync over our build/$(overlay)/$(hypervisor)/* +## * Unmount the staging directories +## * Start the VMs diff --git a/destroy b/destroy new file mode 100644 index 0000000..9c1fe4d --- /dev/null +++ b/destroy @@ -0,0 +1,8 @@ +## Using SSH: +## * Log in to hypervisor, retrieve list of running VMs +## * Log in to hypervisor, retrieve list of ZFS volumes +## * List any VM matching spec ^vpp[\d]+-[\d+]$ +## * List any ZFS datasets matching matching spec ^ssd-vol0/vpp[\d]+-[\d+]$ +## * If --force is set: +## * Destroy matching VMs +## * Recursively delete any matching ZFS datasets