[SOLVED] Cloning a template stored in a CIFS storage to a local LVM storage is resulting in a QUEMU error at VM Start

Momedo

Member
Dec 7, 2021
6
0
6
Hello,
I'm experiencing an issue where some templates get's cloned and fire the following error when starting them:

Code:
Use of uninitialized value in split at /usr/share/perl5/PVE/QemuServer/Cloudinit.pm line 100.
generating cloud-init ISO
kvm: -device scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0: Cannot get 'write' permission without 'resize': Image size is not a multiple of request alignment
TASK ERROR: start failed: QEMU exited with code 1

Supplementary information:
  • Proxmox VE 6.4-13
  • Kernel version: Linux 5.4.143-1-pve #1 SMP PVE 5.4.143-1
  • Templates are stored on a CIFS. Not all templates cause this issue (One of the templates that has this error is the Ubuntu 20.04 one)
  • The VM disk of the cloned template should be on a LVM local storage (NVMe SSD)
  • The cloning of the template is done through API (Proxmox VPS from WHMCS) but this detail is probably irrelevant since it's a PVE issue.
Any clues or guesses concerning the cause of the issue will be greatly appreciated.
 
The cause of the issue was actually very simple. I had "Linked Clone" enabled instead of "Full Clone".
Problem solved.