-
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
kvm: Error creating host: qemu-kvm: unrecognized feature kvm #3546
Comments
This happens with nested virt enabled:
|
I suspect this is due to virsh/libvirtd not being happy with the nested virtualization environment, but minikube fails to do the necessary pre-flight checks to tell you what's going on. https://fedoraproject.org/wiki/How_to_debug_Virtualization_problems has a great page for debugging virt issues, but it doesn't cover much about nesting, so https://www.redhat.com/en/blog/inception-how-usable-are-nested-kvm-guests might be more useful. Can you see what happens if you run:
You can also try if qemu-kvm works. If not, then minikube is going to have a bad time with kvm as well. What is the host OS virtualization layer? |
|
I'm adding the intel_iommu switch to the kernel boot line on that host and rebooting per: |
Same result: |
I can start 0.32.0 and 0.33.0 on Fedora 29, but not CentOS7 |
Reconfirmed. Identically configured CentOS 7 and Fedora 29. minikube starts correctly on Fedora. CentOS compains that the image is corrupt. |
I think the issue is the feature is not supported in CentOS7 qemu-kvm. I've managed to at least boot the instance by:
I think it is because 7ba01b4 And it seems it won't be included in RHEL https://bugzilla.redhat.com/show_bug.cgi?id=1492173 |
I've just tested it by removing those lines and building the docker-machine-driver-kvm2 binary and it works in centos7. I can confirm it is not related to nested, it is just the "hidden state" feature is not enabled in centos qemu-kvm. |
A temporary solution that also works is executing the following command:
This downloads and installs an older version of docker-machine-driver-kvm2 that doesn't use the hidden feature. |
I can confirm as well - still present. Using:
|
@basvandenbrink That was my solution too. I started downloading the minikube binary and the docker-machine-driver-kvm2 binary separately and providing separate version numbers. minikube 0.32.0 and 0.33.0 work on CentOS using the docker-machine-driver-kvm2 version 0.31.0. |
I installed virtual box on centos 7 and forgot to name it as the driver and suddenly kvm2 worked as the driver. |
@RynDgl I'd be really interested in confirmation of that. I have Virtualbox on CentOS 7 with KVM and kvm2 with 0.35.0 still fails the same way. The only way I can get it work is to use the docker-machine-driver-kvm2 version 0.31.0 |
afbjorklund submitted: https://github.com/kubernetes/minikube/pull/3947/files Included in v1.0.0. Testing on CentOS now. |
Let us know how it goes ? Would be nice to verify if it still works with GPU, as well. |
I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it. Thank you for opening the issue! |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Please provide the following details:
Environment:
Minikube version (use
minikube version
):0.32.0
0.33.0
OS (e.g. from /etc/os-release):
VM Driver
"DriverName": "kvm2"
ISO version
"Boot2DockerURL": "file:///home/bos/mlamouri/.minikube/cache/iso/minikube-v0.32.0.iso",
"ISO": "/home/bos/mlamouri/.minikube/machines/minikube/boot2docker.iso",
What happened:
`
What you expected to happen:
Everything looks great. Please enjoy minikube!
How to reproduce it (as minimally and precisely as possible):
Output of
minikube logs
(if applicable):Anything else do we need to know:
This appeared in v0.32.0 and continues in v0.33.0. The start process leaves an unstartable KVM instance in the libvirt system. It must be removed using
virsh undefine minikube
The text was updated successfully, but these errors were encountered: