I can successfully create a VM “vm0” from scratch and install the OS from debian-12.8.0-amd64-netinst.iso. After installation I had to remove the CDROM/isofile from devices so that the VM boots from the zvol data/vm0-gvydza and that works perfectly.
When I clone “vm0” into “vm1” zvol data/vm0-gvydza_vm1 gets created. Try to start vm1 results in getting stuck in the UEFI shell. On the Spice console:
OTOH, when attaching the newly cloned data/vm0-gvydza_vm1 to vm0 it works: the zvol seems ok.
Attaching the initial zvol data/vm0-gvydza to vm1 does not work either.
While the cloned zvol seems ok there must be some invisible difference between the VM configurations. From the GUI both VM configurations look identical.
This is with TrueNAS Scale ElectricEel-24.10.1 . I had the same result with 24.10.0.2 . Same result with disk Types AHCI and VirtIO.
I just noticed when creating another VM from scratch and reusing a preexisting zvol does not work either.
When choosing Legacy BIOS as boot method then VM cloning works. I can stick to BIOS, but should I?
Any hints?