diff --git a/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md b/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md index 188a720..ff47a96 100644 --- a/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md +++ b/Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md @@ -61,6 +61,18 @@ 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 +``` + +### Setup Packages in VM & Convert to Template +At this point, we have a few things we need to do first before we can turn the VM into a template and make clones of it. You will need to boot up the VM we made (id 9000) and run the following commands to prepare it for becoming a template: + +```sh +# Install Updates +sudo apt update && sudo apt upgrade +sudo apt install -y qemu-guest-agent cloud-init +sudo systemctl enable qemu-guest-agent --now + +# Magic Stuff Goes Here ============================= # Convert the placeholder VM into a reusable template (ignore chattr errors on NFS storage backends) qm template 9000 @@ -96,3 +108,9 @@ You can now create new VMs instantly from the template we created above. # Boot the new cloned VM qm start 9100 ``` + +### Configure VM Hostname +At this point, the hostname of the VM will be randomized and you will probably want to set it to something statically, you can do that with the following commands after the server has finished starting: +```sh + +``` \ No newline at end of file