大网数据广告活动
服务器运维问答

WARNING KVM acceleration not available, using 'qemu'

· 52CE 我爱测

Running debian ( Linux Rick 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux ) Looking at my cpuinfo I can see I have vmx support: flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cm…

问题原文

原帖链接 · red888 · CC BY-SA 3.0

Running debian (Linux Rick 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux)

Looking at my cpuinfo I can see I have vmx support:

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt aes lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid

The host and guest OS(Centos minimal ISO) are both x64 so the architecture is the same between the two of them.

Following these steps to create a new VM from an ISO I get a warning about hardware acceleration support:

  1. Create a new qcow2 file for the VM: sudo qemu-img create -f qcow2 /var/lib/libvirt/images/centos01.qcow2 8192
  2. Start network adapter: sudo virsh net-start default
  3. sudo virsh net-autostart default
  4. Create virtual machine from ISO: sudo virt-install -r 2048 --accelerate -n centos01 -f /var/lib/libvirt/images/centos01.qcow2 --cdrom /home/morty/ISOs/CentOS-7-x86_64-Minimal-1511/CentOS-7-x86_64-Minimal-1511.iso

And I get this warning:

WARNING  KVM acceleration not available, using 'qemu'

The VM is running, but I guess KVM acceleration isn't in affect? How can I enable acceleration and what am I missing without it?

已采纳解答

原帖链接 · Alaa Chatti · CC BY-SA 3.0

Verify that Virtualization Technology (VT) is enabled in your server's BIOS. Reboot your server and press F2 during POST to go into the BIOS, then select Processors Settings, and verify Virtualization Technology is Enabled. Save and Exit and let the server boot up

One more thing to do is to manually change the xml file from type=qemu to type=kvm and start the guest

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-12-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。