I am trying to build several VMs from a template. The template was created and I have ran Sysprep on it before creating the template. Every time it fails with pretty much the same error message and I can't track down what it really means.
Error (12700)VMM cannot complete the host operation on the <HOST> server because of the error: 'vm' failed to remove device 'Microsoft:Hyper-V:Synthetic SCSI Controller': Invalid operation (0x80041016). (Virtual machine ID 4D94F1E2-598D-4015-AE50-8BBD7D202D6E)
'vm': The storage controller resource allocation setting data object 'Microsoft:4D94F1E2-598D-4015-AE50-8BBD7D202D6E\7EE2F771-1BB6-4323-989C-12B374FD010C\0' cannot be deleted because one or more storage drive objects are still attached to it. (Virtual machine ID 4D94F1E2-598D-4015-AE50-8BBD7D202D6E)
Unknown error (0x8000)
Recommended Action
Resolve the host issue and then try the operation again.


