I set up a Windows VM with EFI disk and TPM. After setup, the disk order was
1. Boot HDD (vm-XXX-disk-0)
2. EFI Disk (vm-XXX-disk-1)
3. TPM Disk (vm-XXX-disk-2)
During cloning, the EFI disk is always cloned first in the task viewer, the order then becomes:
1. EFI Disk (vm-XXX-disk-0)
2. Boot HDD (vm-XXX-disk-1)
3. TPM Disk (vm-XXX-disk-2)
This has no effect on the usage of the VM but bothers my tech-OCD. So what I did was I used `zfs rename` to rename the disks to the correct order (storage is zfs)
disk-0 -> disk-tmp
disk-1 -> disk-0
disk-tmp -> disk-1
Then I modify the vm .conf file to reflect this.
1. Boot HDD (vm-XXX-disk-0)
2. EFI Disk (vm-XXX-disk-1)
3. TPM Disk (vm-XXX-disk-2)
During cloning, the EFI disk is always cloned first in the task viewer, the order then becomes:
1. EFI Disk (vm-XXX-disk-0)
2. Boot HDD (vm-XXX-disk-1)
3. TPM Disk (vm-XXX-disk-2)
This has no effect on the usage of the VM but bothers my tech-OCD. So what I did was I used `zfs rename` to rename the disks to the correct order (storage is zfs)
disk-0 -> disk-tmp
disk-1 -> disk-0
disk-tmp -> disk-1
Then I modify the vm .conf file to reflect this.