By default, create LCOW will set the number of SCSI controllers to 4,
when VPMem isn't used, which is the case when formatting scratch.
This makes the device path lookup non-determenistic, since the
SCSI controllers in the guest may have different indices.
To workaround that, use a block device mount and
use the mount-path to format the scratch VHDX
without needing to lookup the actual dev node path.
By default, create LCOW will set the number of SCSI controllers to 4, when VPMem isn't used, which is the case when formatting scratch. This makes the device path lookup non-determenistic, since the SCSI controllers in the guest may have different indices.
To workaround that, use a block device mount and use the mount-path to format the scratch VHDX without needing to lookup the actual dev node path.