VMID=9000
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-disk-kvm.im
qm create $VMID --memory 2048 --net0 virtio,bridge=vmbr1
qm importdisk $VMID focal-server-cloudimg-amd64-disk-kvm.img local-zfs
qm set $VMID --scsihw virtio-scsi-pci --scsi0 local-zfs:vm-${VMID}-disk-0
qm set $VMID --ide2 local-zfs:cloudinit
qm set $VMID --boot c --bootdisk scsi0
qm set $VMID --serial0 socket --vga serial0
qm set $VMID --tablet 0
qm set $VMID --onboot 1
qm set $VMID --agent enabled=1
qm set $VMID --ostype l2
qm template $VMID
NEW_VM_ID=123
qm clone $VMID $NEW_VM_ID --name ubuntu2
qm resize $NEW_VM_ID scsi0 +20G
qm set $NEW_VM_ID --ciuser bluewind
qm set $NEW_VM_ID --cipassword $PASSWORD
# set network
IP=250
qm set $NEW_VM_ID --ipconfig0 ip=10.144.100.${IP}/24,gw=10.144.100.1
qm start $NEW_VM_ID
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
Try using the non-KVM cloud image, e.g.Code:wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
It seems counterintuitive, but this was the problem for me.