Skip to content

Instantly share code, notes, and snippets.

@jorritfolmer
Last active June 8, 2021 20:25
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorritfolmer/d01194a00f440ad257bd56d51baddc2d to your computer and use it in GitHub Desktop.
Save jorritfolmer/d01194a00f440ad257bd56d51baddc2d to your computer and use it in GitHub Desktop.
Installing Windows Server 2016 on oVirt qemu/kvm

Installing Windows Server 2016 on Ovirt v4 qemu/kvm

The install fails with BSOD and "Your PC ran into a problem and needs to restart. We're just collecting some error info, and then we'll restart for you."

Windows installer BSOD on qemu/kvm

After reboot it returns with the following message: "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.":

Windows installer restarted unexpectedly on qemu/kvm

At the same time these messages appear in /var/log/messages on the host:

Nov 28 00:05:01 phost03 kernel: kvm [21021]: vcpu0 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
Nov 28 00:05:01 phost03 kernel: kvm [21021]: vcpu0 unhandled rdmsr: 0x1c9

Fix

Create /etc/modprobe.d/kvm.conf with:

# Win2016 bsod install workaround
options kvm ignore_msrs=1

After rebooting the host the Windows Server 2016 install continues and the msrs get ignored instead of unhandled:

Nov 28 19:36:57 phost03 kernel: kvm [14714]: vcpu0 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
Nov 28 19:36:57 phost03 kernel: kvm [14714]: vcpu0 ignored rdmsr: 0x1c9
Nov 28 19:36:57 phost03 kernel: kvm [14714]: vcpu0 ignored rdmsr: 0x680
Nov 28 19:36:57 phost03 kernel: kvm [14714]: vcpu0 ignored rdmsr: 0x6c0
@matthiassb
Copy link

Thx! This helped me get Win2016 up and running on a PowerEdge server of mine running KVM!

@dougstanley
Copy link

This helped me out too, kvm on ubuntu 16.04. Thanks!

@atmosx
Copy link

atmosx commented May 24, 2017

I think this error is caused by the size of the HDD. At least for nano. If my HDD is above 32GB doesn't seem to happen.

@cuihaoleo
Copy link

wow, it works!

@mak642
Copy link

mak642 commented Jan 12, 2018

I am getting the exact same behavior on gentoo. I created /etc/modprobe.d/kvm.conf file but still does not work.
Also tried renaming to kvm.conf to qemu.conf
Also tried adding kvm.conf to /etc/libvirt/ and /etc/qemu/ (just a wag).
Any ideas?

qemu 2.9.0-r2
libvirt 3.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment