Do you have experience with VirtualBox in Debian 13 trixie?

Hello Friends

Do you have experience with VirtualBox in Debian 13 trixie?

There is the intention to install Debian 13 trixie in a laptop Lenovo and is need it use VirtualBox too
But there is a situation with a kind of conflict with KVM due a kernel upgrade.
I am not sure if this situation is already solved or not

Thanks in advance for your experience

2 Likes

Isn’t there already another thread you started about clashing between VirtualBox and KVM? Why not just update the original thread / subject you started instead of starting a new one?

Wasn’t it solved? I’m sure there was an answer to your issue from @kovacslt :

The answer to your question on Ubuntu 24.04x should be exactly the same for Debian 13…

5 Likes

Hello Dan

About the mentioned link

  • The title is generic but the post is in the ā€œUbuntuā€ category
  • Is correct about the other reply about Debian according with experience by LĆ”szló

But I created this post for Debian users (in the ā€œOther Distributionsā€ category) in case if they do not arrive to the other link.

1 Like

Doing a quick search with Al, I came up with this. Hope this helps.
" the conflict between VirtualBox and KVM on Debian 13 (Trixie) is not fully solved upstream, but there are workarounds that people are using successfully." Co-pilot.

4 Likes

Hello Horward

Thanks for the feedback!

3 Likes

Hi,

I was stuck with the same problem on debian 13 with a Rizen processor. I tried to blacklist kvm_intel as mentionned above, but after a reboot, I had the same problem because the kvm_amd module was loaded.

I wasn’t aware of kvm module amd/intel subtleties. And since I want this hack to work when my cpu is intel or amd, I went for :
# cat /etc/modprobe.d/blacklist-kvm.conf
blacklist kvm_intel
blacklist kvm
blacklist kvm_amd

And that did the trick. I don’t know if such blacklist should be included in the virtualbox debian package, but that would save people searching the web for answers

5 Likes

Welcome to the forum @sly.
And ā€˜Thank you’ for your contributing your experience.

Have a nice day.

5 Likes

Huge thanks for that important feedback!

1 Like

@Manuel_Jordan
If you apply that blacklist, other apps that require KVM ( eg qemu) will stop working.
It is not acceptable for virtualbox to require a blacklist that stops other apps working.
It certainly should not be included in any package.

1 Like

Seems like commonsense to me…

VirtualBox needs access to the hypervisor : Intel VT-x or AMD-V … You can’t really have two products competing and running services at the same time that need access to the HyperVisor…

If you’re using KVM - then that should have exclusive use of the hypervisor layer / API. I guess it would be nice if Debian gave you that option - i.e. ā€œdo you want to enable KVM access to the HyperVisor?ā€

Windows is no different. You can’t run VMware Player/Workstation, if you’re using HyperV… I had this issue a few years back where the corporate Windows 10 SOE used HyperV - so VirtualBox didn’t have access to the HyperVisor - you could only do 32 bit VirtualBox guests…

If it was possible - it would be an attack vector from malicious players… e.g. VMware ESX servers run their Linux O/S ā€œphotonā€ā€¦ Imagine if something could come along and hook into the HyperVisor?

It’s just a shame that VirtualBox can’t use the KVM stuff built into every modern Linux kernel… Oh well… I’m glad I switched to KVM anyway…

1 Like

OK… so this hypervisor hardware is rather special… like there is no problem having 2 processes access the cpu… the kernel looks after it and time shares… but I guess the kernel will not time share the hypervisor? … but it must… I can run 2 VM’s simultaneously both using KVM.

You have the solution

Vbox should make its Linux version do things the Linux way.

1 Like

Both are accessing the KVM stuff in the Linux kernel… But you can’t have KVM and some other virtualization product (that uses Intel VT-x or AMD-V) accessing the hypervisor at the same time… As I mentioned - that would probably be an attack vector…

I’ve no idea if Photon (VMware’s Linux) uses KVM or implements it’s own thing like VirtualBox does… Hmmm - it’s years since I used VMware Workstation - I can’t remember what it was like… But that’s different again from VM Photon / ESX…


Hmmm - just learned something… VMware ESX doesn’t use the Linux kernel… I uses its own microkernel…

Now I remember - PhotonOs is the Linux ā€œdistroā€ that VMware runs on vCenter servers… ESX is not Linux… There was a German kernel developer who tried to sue VMware for GPL copyright infringement, and was dismissed 3 times by German courts…

2 Likes