-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
nested virt: kvm crash "kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed." #2968
Comments
Refer to https://libvirt.org/formatdomain.html#elementsCPU for documentation on the XML I am logging this defect against minikube, in part because I cannot find a means to control (via minikube configuration) the configuration of the VM that minikube creates on |
FWIW, I am not deeply familiar with kvm and qemu and native virtualization on Linux. Please provide pointers where to go and which incantations to use, to get the problem addressed at a more fundamental level. |
https://bugs.launchpad.net/qemu/+bug/1661386 is an item tracked by qemu; qemu believe that this is fundamentally due to a VMware problem (https://communities.vmware.com/thread/592140) Still, with minikube it would be interesting to configure the type of CPU for the virtualization - right now, minikube implicitly uses "host-passthrough" while hyper-visor default CPU or just host-model (see above) would work. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
If you're on vmware, I found enabling cpu counters helped. |
what do you mean by enabling the cpu counters? I am using virtualbox and have 3 cpu for my centos 7 |
Thanks, I had similar issue when trying to start minishift and it solved it. |
minikube v1.1 will now recommend upgrading to QEMU 3.1 or higher if this error arises, which should address most cases. Thanks for the tip on the VMware CPU counters, @luck02. |
Hello Team, Mentioned workaround with cpu mode reconfiguration does not work, i have tried to modify /etc/libvirt/qemu/minikube.xml as presented (both options), then VM starts (virsh shows as running) but seems locked, i can not access console, minikube gives up after 120s with error: Unable to start VM: start: Machine didn't return an IP after 120 seconds |
I just had this issue myself on ubuntu 20.04
by doing
and then this it worked:
jenkins@mini-test-11-ubuntu:~$ minikube start --driver=kvm2 |
we need to update our docs to stay install virt-manager
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Our docs point to installation instructions for various Linux distros: https://minikube.sigs.k8s.io/docs/drivers/kvm2/ In the one for Ubuntu, it mentions installing virt-manager, so I'm going to go ahead and close this issue. |
Environment:
Minikube version (use
minikube version
): 0.28.0"Boot2DockerURL": "file:///home/stefan/.minikube/cache/iso/minikube-v0.28.0.iso",
"ISO": "/home/stefan/.minikube/machines/minikube/boot2docker.iso",
-- VMware Workstation 12 as type 2 hypervisor running on Windows 10 Home host; guest OS (see above) is intended to be the container of minikube.
-- qemu-kvm -> QEMU emulator version 2.11.2(qemu-2.11.2-1.fc28)
What happened:
Failure to start minikube with error message "kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.", after
What you expected to happen:
Successful launch of minikube, no error messages
How to reproduce it (as minimally and precisely as possible):
-- enable emulation of CPU virtualization instructions
-- in the .vmx, add line
apic.xapic.enabled = "FALSE"
sudo dnf install libvirt-daemon-kvm qemu-kvm
/etc/modprobe.d/kvm.conf
to enable nested KVM:options kvm_intel nested=1
(I have an Intel CPU)minikube config set vm-driver kvm2
minikube delete
minikube start
Anything else do we need to know:
This is a pristine setup where I am doing as little as possible to get kubernetes minikube to run inside KVM of Fedora 28 inside VMware Workstation. All configuration is intended to be as default and as controlled as humanly possible, so that I can maximize my chance of success for learning to use minikube.
minikube starts successfully with a changed KVM virtual machine CPU configuration, specifically
i.e. switching from the default minikube value to "Hypervisor default" avoids the error message.
minikube KVM virtual machine configuration can be dumped using
sudo virsh dumpxml minikube
Another working KVM virtual machine CPU configuration is
virt-manager
(sudo dnf install virt-manager
) offers a convenient means to inspect the virtual machine.The text was updated successfully, but these errors were encountered: