Skip to content

Create New Template

Download Image

We have a list of images on Image List

Download Image
wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img

Create a new VM

Replace the following with your own values:

  • ID: The ID Number for the VM.
  • RAM: The amount of RAM
  • CORE: The amount of cores you will want to give the VM
  • NAME: The Name you will want to give the template.
  • DRIVER: The Proxmox Driver you will want to give the VM for networking.
  • ADAPTER: The adapter you will want the traffic to go through.
qm create ID --memory RAM --core CORE --name NAME --net0 DRIVER,bridge=ADAPTER

Note

We are creating a VM that will have 2GB of RAM and 2 vCores. We are going to name the VM ubuntu-cloud and use the virtio network driver. The ID of the server will be 8000. You will be able to modify this after you either clone or modify the template.

The command should look like the following:

Example Command
qm create 8000 --memory 2048 --core 2 --name ubuntu-cloud --net0 virtio,bridge=vmbr0

Import the Image to the Local Storage

Note

Change the Image Name and Storage location to the specific location for your server.

Example: We are ousing the noble-server-cloudimg-amd64.img, and it is located on VMPool1.

Import Image
qm importdisk 8000 noble-server-cloudimg-amd64.img VMPool1

Attach Disk to VM

Attach Disk to VM
qm set 8000 --scsihw virtio-scsi-pci --scsi0 VMPool1:vm-8000-disk-0

Create Cloud Init

Create cloud-init
qm set 8000 --ide2 local-lvm:cloudinit

Make Cloud Init Bootable

Make cloud-init bootable
qm set 8000 --boot c --bootdisk scsi0

Add Serial Console

Add Serial Console
qm set 8000 --serial0 socket --vga serial0

Note

Do Not start the VM when it has been created. We do not want the VM to create a machine ID. If you do run into issues go to Troubleshooting

Create Template

create template
qm template 8000