Skip to content

qemu unexpectedly closed the monitor: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. #4277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FansinZhao opened this issue May 17, 2019 · 3 comments
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@FansinZhao
Copy link

FansinZhao commented May 17, 2019

The exact command to reproduce the issue:

$ minikube start
😄 minikube v1.0.1 on linux (amd64)
🤹 Downloading Kubernetes v1.14.1 images in the background ...
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Restarting existing kvm2 VM for "minikube" ...

💣 Unable to start VM: start: Error creating VM: virError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2019-05-17T02:20:07.980140Z qemu-system-x86_64: error: failed to set MSR 0x38d to 0x0
qemu-system-x86_64: /build/qemu-lXHhGe/qemu-2.11+dfsg/target/i386/kvm.c:1807: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.')

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new

$ minikube logs

💣 command runner: getting ssh client for bootstrapper: Error creating new ssh host from driver: Error getting ssh host name for driver: host is not running

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new
The operating system version:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

$ go version
go version go1.12.5 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
$ minikube version
minikube version: v1.0.1
$ kvm -version
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.13)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

@tstromberg tstromberg changed the title Unable to start VM: start: Error creating VM: virError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2019-05-17T02:20:07.980140Z qemu-system-x86_64: error: failed to set MSR 0x38d to 0x0 qemu-system-x86_64: /build/qemu-lXHhGe/qemu-2.11+dfsg/target/i386/kvm.c:1807: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.') Unable to start VM: internal error: qemu unexpectedly closed the monitor: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. May 17, 2019
@tstromberg tstromberg changed the title Unable to start VM: internal error: qemu unexpectedly closed the monitor: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. qemu unexpectedly closed the monitor: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. May 17, 2019
@tstromberg
Copy link
Contributor

tstromberg commented May 17, 2019

Thank you for sharing your experience!

This issue appears to be a duplicate of #2968 - but lets take a closer look at it first.

@tstromberg
Copy link
Contributor

Possibly related bug: https://bugzilla.redhat.com/show_bug.cgi?id=1651021

Is the Ubuntu host running under some sort of virtualization? Based on what I've read, it may be possible to get passed this error by upgrading to QEMU 3.1.0 or higher.

If that's not viable, you may want to try using minikube with --vm-driver=virtualbox

@tstromberg tstromberg added co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. labels May 17, 2019
@tstromberg
Copy link
Contributor

Dupe of #2968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants