diff --git a/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md b/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md index 0f970dc..7602e79 100644 --- a/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md +++ b/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md @@ -54,4 +54,20 @@ qm set 9000 --sshkey /root/infrastructure_id_rsa.pub # Configure networking to use DHCP by default (this will be overridden at cloning) qm set 9000 --ipconfig0 ip=dhcp +# Convert the placeholder VM into a reusable template (ignore chattr errors on NFS storage backends) +qm template 9000 +``` + +### Deploy a New VM from Template +You can now create new VMs instantly from the template using “Full Clone” or “Linked Clone” depending on your storage type and needs. +```sh +# Create a new VM (example: VM 9100) cloned from the template +qm clone 9000 9100 --name ubuntu-2404-test --full + +# Optionally, override Cloud-Init settings for this clone: +qm set 9100 --ciuser nicole --cipassword 'AnotherStrongPass' +qm set 9100 --ipconfig0 ip=192.168.3.67/24,gw=192.168.3.1 + +# Boot the new cloned VM +qm start 9100 ``` \ No newline at end of file