From 6b995785c780dd47cb0e02821001f446cf4ec211 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 20 Apr 2022 13:08:28 -0400 Subject: house: Allow for the introduction of new VMs Templates the XML and creates the disk images --- templates/vm.rs.xml | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 templates/vm.rs.xml (limited to 'templates') diff --git a/templates/vm.rs.xml b/templates/vm.rs.xml new file mode 100644 index 0000000..2004b35 --- /dev/null +++ b/templates/vm.rs.xml @@ -0,0 +1,83 @@ +@(name: String, uuid: String, mac_address: String, sata: bool, memory: u64, cpus: u64, seed: String) + + @name + @uuid + + + + + + @memory + @memory + @cpus + + hvm + + + + + + + + + + + + + + destroy + restart + destroy + + + + + + /run/libvirt/nix-emulators/qemu-system-x86_64 + + + + @if sata { + + } else { + + } + + + + + + @if sata { + +
+ } else { + + } + + + + + + + + + + + + + + + + + + /dev/urandom + + + + + + + + -- cgit v1.2.3