Skip to content
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

Failed To Initialize KVM: No such file or directory #252

Closed
blockarchitech opened this issue Jun 23, 2020 · 5 comments
Closed

Failed To Initialize KVM: No such file or directory #252

blockarchitech opened this issue Jun 23, 2020 · 5 comments

Comments

@blockarchitech
Copy link

When i try to run basic.sh, i get this error:

Could Not Access KVM kernel module: No Such file or directory. qemu-system-x86_64: Failed to Initialize KVM: No such file or directory.

Any help appreciated.

@eniac111
Copy link

apt-get install qemu-kvm for Ubuntu. The package is not in the documentation.

@manipreet
Copy link

Tried this doesn't help. i have checked the location /usr/bin/qemu-system-x86_64 and there is no such directory.
Instead i have a file in /usr/libexec/qemu-kvm.
I am running CentOS 8

@narenkpai
Copy link

I am on manjaro and the same thing is happening to me.

@Ida-Ida
Copy link

Ida-Ida commented Jul 10, 2020

Had the same issue on Ubuntu.
Cause (for me): "virtualization" was disabled in my BIOS. You can check this by running lsmod | grep kvm - if it shows smth like kvm 598016 0 it's disabled. Otherwise it should additionally show the kvm_amd or kvm_intel module

  1. enable "virtulaization" or however it's called in your BIOS
  2. try again. Same error? - You may need to load your kvm modules
    $ sudo modprobe kvm
    $ sudo modprobe kvm_intel (..kvm_amd for amd-CPUs)
    If errors appear when loading the modules: dmesg | grep kvm

I found these information here (only German): https://wiki.ubuntuusers.de/KVM/

@narenkpai
Copy link

thanks, for me virtualization was disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants