From d6d8c42542cbbc98423812e627d18994994f84f0 Mon Sep 17 00:00:00 2001 From: sthope Date: Wed, 26 Jul 2023 03:38:40 +0200 Subject: [PATCH] Initial Commit --- VM/Cloud-Init/ubuntu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VM/Cloud-Init/ubuntu b/VM/Cloud-Init/ubuntu index ec9e659..90eb039 100644 --- a/VM/Cloud-Init/ubuntu +++ b/VM/Cloud-Init/ubuntu @@ -33,10 +33,12 @@ qm set $vm_id --agent enabled=1 >/dev/null qm set $vm_id --ipconfig0 ip=dhcp,ip6=dhcp >/dev/null qm set $vm_id --ciuser test --cipassword test >/dev/null +# Create a Template function make_template() { qm template $vm_id >/dev/null } +# Clone the Template function clone_template() { qm clone $vm_id $vm_cloned_id --name $vm_cloned_name --full >/dev/null } \ No newline at end of file