Get a shell into the proxmox server. Change VM_STORAGE to the location where to store your clout-init and disk image (e.g. local
, local-zfs
, etc.).
export VM_ID="$VM_ID"
export VM_STORAGE="freenas"
qm create $VM_ID --name "ubuntu-focal-cloudinit" --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0
qm importdisk $VM_ID focal-server-cloudimg-amd64.img $VM_STORAGE
qm set $VM_ID --scsihw virtio-scsi-pci --scsi0 $VM_STORAGE:$VM_ID/vm-$VM_ID-disk-0.raw