problem
For instances imported using importVm , importsource=shared and templateid passed the template property 'guest.cpu.mode' is not set on the imported instance.
versions
4.22.0
The steps to reproduce the bug
1.Import a VM from QCOW2 file in the primary storage: importVm , importsource=shared and templateid set to a template having 'guest.cpu.mode' set for example host-model.
2.Check the instance settings for 'guest.cpu.mode'
...
What to do about it?
'guest.cpu.mode' need to be set on the imported instance if present on the associated template.