windows icon indicating copy to clipboard operation
windows copied to clipboard

ERROR: qemu-system-x86_64: error: failed to set MSR 0x48d to 0xff00000016

Open Samonsix opened this issue 1 year ago • 1 comments

Operating system

Ubuntu18.04

Description

kvm-ok

INFO: /dev/kvm exists KVM acceleration can be used

cpuinfo

Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz

Docker compose

docker run -itd --name windows
-p 8006:8006 -p 3389:3389/tcp -p 3389:3389/udp
--device=/dev/kvm --privileged --cap-add NET_ADMIN --security-opt seccomp=unconfined
-v /home/user/work/Win10_22H2_Chinese_Simplified_x64v1.iso:/storage/custom.iso
-v /home/user/win10:/storage
--stop-timeout 120
-e RAM_SIZE="64G"
-e CPU_CORES="24"
-e DISK_SIZE="512G"
dockurr/windows

Docker log

❯ Starting Windows for Docker v2.16... ❯ For support visit https://github.com/dockur/windows

❯ Booting Windows on a Intel Xeon Silver 4116 CPU Intel Xeon Silver 4116 CPU using QEMU v8.2.1 with kernel 5.0.0-36-generic... ❯ ERROR: qemu-system-x86_64: error: failed to set MSR 0x48d to 0xff00000016 qemu-system-x86_64: target/i386/kvm/kvm.c:3209: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

Screenshots (optional)

No response

Samonsix avatar Jun 19 '24 00:06 Samonsix

I have the same issue

Lee-1024 avatar Jun 24 '24 08:06 Lee-1024

This can be fixed by executing the command

echo 1 | tee /sys/module/kvm/parameters/ignore_msrs

on your host. Or otherwise running the container as privileged, so that the above command gets executed automaticly.

kroese avatar Oct 05 '24 11:10 kroese