码迷,mamicode.com
首页 > 其他好文 > 详细

qemu KVM kernel module no such file or directory

时间:2015-01-09 19:24:50      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:qemu

错误提示:

[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:

  1. Edit the corresponding file from the shell with sudo vim /etc/modules.conf
  2. Possibly enter your username password.
  3. Press the key G to go to the end of the document and then o to begin inserting.
  4. Write kvm-intel and press Enter, producing a new line.
  5. Press Esc to return to the Normal mode of vim. "--INSERT--" will disappear fromthe bottom.
  6. 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

标签:qemu

原文地址:http://blog.csdn.net/maokexu123/article/details/42557321

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!