How to create Windows VM?

So I was able to start the machine by changing the kvm’s cpu parameter from virsh, installation went fine, but after stopping the vm, I was not able to start it again.

steps:

  • use that template to deploy a new vm
  • vm starts but hangs with the windows logo
  • from that ONE backend, in virsh:
  1. poweroff the vm
  2. edit the vm xml
  3. add:
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>core2duo</model>
    <feature policy='require' name='nx'/>
  </cpu>
  1. start vm and install

Stopping the vm and restarting it gives me:
Could not create domain from /var/lib/one//datastores/101/163/deployment.4