VMX(在 TXT 之外):被 bios 禁用

pre*_*iot 3 boot 20.10

我有

BIOS Ubuntu20.10 禁用了 VMX(外部 TXT):clean,... files,...blocks

当我启动到 Ubuntu 20.04 时。

有点烦

此消息的含义以及如何删除它?

tna*_*dam 5

快速解决

在 BIOS 中启用虚拟化技术。


细节

这个消息是什么意思?

此消息实际上意味着它所说的:VMX 在 BIOS 中被禁用

VMX代表虚拟机扩展,它是一种虚拟化技术。更多信息在这里

我怎样才能删除它?

有一种快速方法(解决方法)可以删除该消息:转到 BIOS 设置并启用虚拟化技术本文有一些屏幕截图,说明如何在 Intel 和 AMD 处理器的 Asus BIOS 中执行此操作。


有关该问题的更多信息

您可能直到现在才看到此消息的原因是它的日志记录进入了一个相当新的 Linux 内核,并且它是日志中的“错误”。显然这也惹恼了其他人,已经有一个关于它的错误报告

我在这里为您找到了解决方案

如果您觉得启用不只是为了消除错误消息而使用的处理器功能是错误的,请继续阅读。


出现此问题的原因

Based on the discussion on the above mentioned SUSE thread and my other findings, it seems that this virtualization technology is used by the so called KVM (Kernel-based Virtual Machine) which is built into the Linux kernel.

Upon boot, this generates an error in the logs that it cannot be initialized because the hardware capabilities are disabled in BIOS.

These are the actual commits that introduce this change: https://github.com/torvalds/linux/commit/ef4d3bf19855641fc8a1f621eaf06e2a2bb872b https://github.com/torvalds/linux/commit/bb02e2cb715a3f3552dbe765ea4a07799e4dff43


Proper (not yet known) solution

Now if KVM itself is disabled in some way than I think that would also make this error message go away because the kernel would not even bother trying to load it. (Second commit above and mailing list discussion about it

I really did my homework and searched how to disable this kernel feature yet I could not find any relevant information how to do it and I am really not sure that it is a good idea to disable "ad hoc" kernel features just because they are unable to load themselves because of disabled hardware features.