I tried to spin up VMs parallelly using --parallel option but still VMs were created one after another. So I decided to use concurrency but when after 2 VMs started parallelly and 3rd one throws the below error . We mostly use high spec pc that could spin up 50+ VMs so having this parallel VMs spinup for hyperv provider would be very helpful
Script: import_vm.ps1
2024-04-04T13:51:01.7328354+02:00 [EROR] [P:1360][T:61] Error:
2024-04-04T13:51:01.7333400+02:00 [EROR] [P:1360][T:61]
2024-04-04T13:51:01.7338868+02:00 [EROR] [P:1360][T:61] Import failed. Import task failed to copy file from 'C:\Windows\System32\config\systemprofile\.vagrant.d\boxes\SampleDeps\0\hyperv\Virtual Machines\04142C43-C1D5-4475-A8F5-3FC2E21D29F9.vmgs' to 'C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\369ACD80-3575-418C-9994-262B1E4D7540.vmgs': The process cannot access the file because it is being used by another process. (0x80070020).
2024-04-04T13:51:01.7345956+02:00 [EROR] [P:1360][T:61]