首页 > 代码库 > qemu KVM kernel module no such file or directory
qemu KVM kernel module no such file or directory
错误提示:
[root@localhost kvm_demo]# qemu-system-x86_64 -m 1024 -smp 4-bootorder=cd -hda /home/kx/kvm_demo/xp.img -cdrom /home/kx/kvm_demo/winxp_32.iso
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!
解决方法:Try with sudo modprobe kvm-intel
.
In order to have the module automatically loaded at the startup of the virtual machine, do the following:
- Edit the corresponding file from the shell with
sudo vim /etc/modules.conf
- Possibly enter your username password.
- Press the key
G
to go to the end of the document and theno
to begin inserting. - Write
kvm-intel
and press Enter, producing a new line. - Press
Esc
to return to the Normal mode of vim. "--INSERT--" will disappear fromthe bottom. - Save the file and exit
vim
by writing:wq
.
You are done. Try to reboot and load the nested virtual machine.
在centos上测试通过.
qemu KVM kernel module no such file or directory
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。