Description of problem: When trying to import a Windows 10 VM from VMware to CNV, it fails with error: md-vmw-import-windows-2 could not be imported.VMTemplateMatchingFailed: Couldn't find matching template. Either change the virtual machine OS type or add a custom template configMap for it, and a common template if there is none. Refer to documentation for more details. This is though the VMware guest id seem to be as expected. URL - https://<VMware FQDN>/mob/?moid=vm-<VM number>&doPath=summary%2econfig guestId - string "windows9_64Guest" and that we have a mapping for it that looks correct here: https://github.com/kubevirt/vm-import-operator/blob/master/pkg/os/os-mapper-provider.go#L194 Version-Release number of selected component (if applicable): CNV-2.5 How reproducible: 100%, on several CNV environments Additional info: * VM import of same Windows10 VM, using the Import wizard do not fail on matching template. Here though the flow is different: User picks the Openrating system of the source VM on CNV side, in the import wizard. * VM import of same Windows10 VM from RHV (via Import wizard) also pass the template match stage.
https://github.com/kubevirt/vm-import-operator/pull/428
Verified on registry-proxy.engineering.redhat.com/rh-osbs/iib:24316 / hco-v2.5.0-420 In this version VM import of same Windows10 Desktop VM passed the stage of template validation. VM is created on CNV side. The VM's yaml is attached. It shows the picked template is: vm.kubevirt.io/template: windows10-desktop-medium-v0.11.3
Created attachment 1725809 [details] vm.yaml
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Virtualization 2.5.0 Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5127
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days