Creating Ubuntu Template In Proxmox
Prepare Cloud-Init Templates
SSH into your Proxmox host.
Download the Ubuntu Cloud-Init image.
Create the new VM to be used as a template. In the following example "9000" is the VM id. Set this to anything that you'd like. It is set to 9000 here so that it doesn't interfere with any other VMs and is listed after the existing VMs as they are listed in numerical order.
Import the img to the local-lvm storage
Attach the disk that was just created to the VM as a SCSI drive. Ubuntu Cloud-Init images requires the
virtio-scsi-pci
controller type for SCSI drives.
Configure a CDROM drive, used to pass the Cloud-Init data to the VM.
Configure a serial console to be used as the display.
Create the template
Deploy Cloud-Init Templates
Clone the template. In this example "150" is the desired id of the VM.
Optional: Configure SSH Public Key - If you do not do this, you will likley need to modify the sshd conf file to allow password authentication in order to ssh into the new VM.
Optional: Configure networking. This can be done from the gui before booting the VM or you can allowd DHCP to assign the IP address.
At this point I like to increase the disk space before starting the VM. Cloud-init starts with a very small disk. Increase using the GUI to your desired size.
Start the VM.
Last updated