Windows 2016 server essentials in qemu kvm on gentoo linux will not boot

mak64 asked:

I can finish the initial installation of Windows 2016 server essentials with Qemu and libvirt on gentoo linux. But on first launch the VM will get a BSOD on first boot after installation.

Subsequent restarts display a popup window that says

“The computer restarted unexpectedly or encountered an unexpected
error. Windows installation cannot proceed. To install Windows, click
“OK” to restart the computer, and then restart the installation.”

This article has the exact behavior I am experiencing except I do not get the log messages.

I created /etc/modprobe.d/kvm.conf file and added the line:

options kvm ignore_msrs=1

but still does not work. Tried renaming to qemu.conf.
Also tried adding kvm.conf to /etc/libvirt/ and /etc/qemu/ (just a wag)

Tested with both:

  • linux 4.10.13-aufs, qemu 2.9.0-r2, libvirt 3.3.0
  • linux 4.15.14-aufs, qemu-2.11.1-r2, libvirt 4.1.0

My answer:

You have to reboot after creating the file with the KVM module options.

options kvm ignore_msrs=1

Its name does not matter, as long as it is in the /etc/modprobe.d directory and ends with .conf.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.