Page 2 of 2

Re: Desktop resets randomly

Posted: Fri Feb 07, 2025 4:55 am
by ekeimaja
Nokkaelaein wrote: Thu Feb 06, 2025 10:22 am Nice that you got it solved. It would be really swell if you described here what caused it and how you solved it, so that the info would be around and searchable, in the case someone else has a similar problem down the road :happy:
I solved it by upgrading the kernel.
Stevo wrote: Thu Feb 06, 2025 11:44 am You would need to add the "ahs" section to the MX repo, using MX Repo Manager, and install virtualbox 7.0.22 from ahs to get one that will work with 6.12 kernels. The virtualbox installer in MXPI should work for that once ahs is enabled and the repositories updated. Usually "ahs" kernels, like the 6.7 you were running before, are happier with ahs drivers, but you were able to get by without them on 6.7. You could disable ahs after updating VBox.
I tried this, but VBox still gives the same error when starting the machine.

Re: Desktop resets randomly

Posted: Fri Feb 07, 2025 12:02 pm
by CharlesV
try running this in a terminal on the host, then run Virtualbox

Code: Select all

sudo sysctl vm.drop_caches=3


Re: Desktop resets randomly

Posted: Fri Feb 07, 2025 6:39 pm
by ekeimaja
CharlesV wrote: Fri Feb 07, 2025 12:02 pm try running this in a terminal on the host, then run Virtualbox

Code: Select all

sudo sysctl vm.drop_caches=3

Did not help, still gives the same error when I try to start the virtual machine.

Re: Desktop resets randomly

Posted: Fri Feb 07, 2025 6:56 pm
by CharlesV
Can you copy and paste the error here please?

The other thing I have on my machine is a LONG message about needing to recompile virtual box. I can get around this by doing the following in a terminal. (Annoying, but works )

Code: Select all

sudo modprobe -r kvm_intel


Re: Desktop resets randomly

Posted: Fri Feb 07, 2025 10:46 pm
by ekeimaja
CharlesV wrote: Fri Feb 07, 2025 6:56 pm Can you copy and paste the error here please?

The other thing I have on my machine is a LONG message about needing to recompile virtual box. I can get around this by doing the following in a terminal. (Annoying, but works )

Code: Select all

sudo modprobe -r kvm_intel

That command did not help either, the error message has been the same:

Code: Select all

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 {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}

Re: Desktop resets randomly  [Solved]

Posted: Fri Feb 07, 2025 11:20 pm
by CharlesV
oh ya, your amd.. so try this ( as a work around )

Code: Select all

sudo modprobe -r kvm_amd

and then VB should work .


There is a flag you can enter in your boot options that will resolve this, so you dont have to keep doing it.

In MX Boot options, in the kernel Parameters, add the following after what ever you have in there. (space and then this )

Code: Select all

kvm.enable_virt_at_load=0

then click apply. It will update your config and then reboot and try VirtualBox.

Re: Desktop resets randomly

Posted: Sat Feb 08, 2025 5:55 am
by ekeimaja
Now it works. Thank you very much!

Re: Desktop resets randomly

Posted: Sat Feb 08, 2025 11:32 am
by CharlesV
You are very welcome and glad we got it figured out.