Linux

在 BIOS 中啟用了 VT,但 KVM 無法檢測到

  • March 17, 2020

我在 BIOS 中啟用了 VT 的 Dell OPTIPLEX 755 機器,但是當我嘗試使用 KVM 檢查時出現以下錯誤

我錯過了什麼?

root@nova-controller:~# kvm-ok
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
     and then hard poweroff/poweron your system
KVM acceleration can NOT be used
root@nova-controller:~#

更新:

root@nova-controller:~# sudo modprobe kvm_intel
FATAL: Error inserting kvm_intel (/lib/modules/3.2.0-26-generic/kernel/arch/x86/kvm/kvm-intel.ko): Operation not supported

dmesg

[   57.887352] kvm: disable TXT in the BIOS or activate TXT before enabling KVM
[   57.887354] kvm: disabled by bios
[   61.199353] kvm: disable TXT in the BIOS or activate TXT before enabling KVM
[   61.199355] kvm: disabled by bios
[  965.566334] kvm: disable TXT in the BIOS or activate TXT before enabling KVM
[  965.566337] kvm: disabled by bios

在您的 BIOS中,您應該具有以下設置:

  • 安全性:執行禁用應該打開
  • 性能:應該開啟****虛擬化
  • 性能:直接 I/O 訪問的 VT打開
  • 性能:可信執行應該關閉

更改這些並保存設置後,物理關閉電腦並重新打開電源。

引用自:https://serverfault.com/questions/534934