Got this using any any of the two kind of TrueNAS and same version you had in the script... I didn't modify the script at all.
TrueNAS-13.0-U5.3.iso: OK
~
update VM 108: -efidisk0 local-lvm:0,format=qcow2,efitype=4m,pre-enrolled-keys=0,size=528K
unsupported format 'qcow2' at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
update VM 108: -scsi0 file=local-lvm:32,format=qcow2,iothread=1 -scsihw virtio-scsi-single
unsupported format 'qcow2' at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
update VM 108: -ide2 media=cdrom,file=none
update VM 108: -ide2 media=cdrom,file=local:iso/TrueNAS-13.0-U5.3.iso
update VM 108: -boot order=ide2;scsi0
invalid bootorder: device 'scsi0' does not exist'
Convert VM to template? (y/n)
Then we can see no harddrive and boot order start with network...
Then I manually added harddrive and boot with harddrive before ISO, then it boot.
Got this using any any of the two kind of TrueNAS and same version you had in the script... I didn't modify the script at all.
Then we can see no harddrive and boot order start with network...
Then I manually added harddrive and boot with harddrive before ISO, then it boot.