Linux Debian13安装VirtualBox7.2.2虚拟机平台无法运行的解决方法

115 阅读1分钟

以前Linux Debian12安装VirtualBox虚拟机平台,都是按照Linux Debian11安装VirtualBox虚拟机平台解决方法处理,都能正常运行。 现在Linux Debian13安装VirtualBox7.2.2虚拟机平台,也是按照上面方法解决,但是还是无法运行,出现下面问题:

VT-x is being used by another hypervisor (VERR_VMX_IN_VMX_ROOT_MODE).
VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).

我的解决方法如下:

This error occurs when another hypervisor (usually KVM on Linux) is already using the VT-x virtualization extensions, preventing VirtualBox from accessing them. Here are several solutions:

Solution 1: Disable KVM (Most Common)

Check if KVM is loaded:

lsmod | grep kvm

Unload KVM modules:

sudo modprobe -r kvm_intel    # For Intel CPUs
# OR
sudo modprobe -r kvm_amd      # For AMD CPUs
sudo modprobe -r kvm

Make it permanent by blacklisting KVM:

sudo nano /etc/modprobe.d/blacklist-kvm.conf

Add these lines:

blacklist kvm
blacklist kvm_intel    # For Intel
# blacklist kvm_amd    # For AMD

Then update initramfs and reboot:

sudo update-initramfs -u
sudo reboot

重启后,都能正常运行