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
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ā¦
Doing a quick search with Al, I came up with this. Hope this helps.
" the conflict between VirtualBox and KVM on Debian 13 (Trixie) isnot fully solved upstream, but there are workarounds that people are using successfully." Co-pilot.
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
@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.
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ā¦
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.
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ā¦