Solved LMDE7 run Virtualbox and Docker aside

Solved issue

tinfoil-hat

Well-Known Member
Joined
Oct 24, 2021
Messages
690
Reaction score
410
Credits
4,716
Hi, I have a relativley fresh install of LMDE7 and would like to run Docker alongside Virtualbox.
The steps to install Docker, I chose
I installed my Docker Containers via User, which is also in Docker Group.

Virtualbox is installed trough their APT Repo. it's Version 7.2.4 with Extention Pack. I already have added the user to vbox group.
I also tried to reboot and
Code:
sudo modprobe vboxdrv

I get the Error Message:
Code:
M Name: -Gateway-Xfce

AMD-V is being used by another hypervisor (VERR_SVM_IN_USE).
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {xxxxxx-xxxxxx-xxxxxx-xxxxxx}

If you need any information, let me know

ty
 
Last edited:


I figured Unchecking
Code:
Enable Nested VT-x/AMD-V
in Virtualbox. solved it for me. Can you help me, enable nested AMD-V? I want to setup a Kubernetis Cluster next. Thanks
 
Running
Code:
lscpu | grep npt
lscpu | grep svm
Returns me the CPU Flags are available
 
Okay, I git the VM to start, but ONLY if I do the Following:
Code:
sudo modprobe -r kvm_amd
sudo modprobe -r kvm

And disable
Code:
Enable Nested VT-x/AMD-V


Code:
VM Name: -Gateway-Xfce

AMD-V is being used by another hypervisor (VERR_SVM_IN_USE).
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {XXXXXX-XXXXX-XXXXX-XXXXX-XXXXXXX}

I'd REALLY like to start the VM just as it's intended by clicking the "Start VM" button in Virtualbox
 
Last edited:
Turns out, I don't have to disable
Code:
Enable Nested VT-x/AMD-V
And everything works AFTER I execute
Code:
sudo modprobe -r kvm_amd
sudo modprobe -r kvm

Code:
lsmod | grep kvm
gives me
Code:
user@machine ~ [4]> lsmod | grep kvm
kvm_amd               217088  0
kvm                  1396736  1 kvm_amd
irqbypass              12288  1 kvm
ccp                   163840  1 kvm_amd



Maybe someone can help me to make it start without these commands
 
Last edited:
I was able to solve this by following:

Basicially I did

Code:
sudo rmmod kvm_amd
sudo rmmod kvm

Edit /etc/modprobe.d/blacklist
Code:
blacklist kvm_amd
blacklist kvm

and reboot
 


Follow Linux.org

Members online


Top