以前Linux Debian12安装VirtualBox虚拟机平台,都是按照Linux Debian11安装VirtualBox虚拟机平台解决方法处理,都能正常运行。
现在Linux Debian13安装VirtualBox7.2.2虚拟机平台,也是按照上面方法解决,但是还是无法运行,出现下面问题:
1 2 3 |
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:
1 2 |
lsmod | grep kvm |
Unload KVM modules:
1 2 3 4 5 |
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:
1 2 |
sudo nano /etc/modprobe.d/blacklist-kvm.conf |
Add these lines:
1 2 3 4 |
blacklist kvm blacklist kvm_intel # For Intel # blacklist kvm_amd # For AMD |
Then update initramfs and reboot:
1 2 3 |
sudo update-initramfs -u sudo reboot |
重启后,都能正常运行