Getting Docker Desktop to work on a Virtual Machine (Virtual Box - Oracle)

As the title suggest I cant get Docker Desktop to run on a virtualbox running linux (Debian 12).

-Obviously the host (Windows 11) has virtualization enabled in the BIOS, otherwise I could not use the virtual machine

-I made sure the virtual machine has nested virtualization enabled.

-I even turned on a feature called Microsoft-Hyper-V-All, but im pretty sure it doesnt have anything to do at all with the issue.

Whenever I open the app I get the following message:
checking UserCanAccessDevKVM: user must be added to the kvm group to access the kvm device, see Linux | Docker Docs

Running groups gives me:
catalin sudo users kvm libvirt docker

Running ls -la /dev/kvm gives me:
crw-rw---- 1 root kvm 10, 232 May 13 14:31 /dev/kvm

Running sudo modprobe kvm_intel gives me:
modprobe: ERROR: could not insert 'kvm_intel': Operation not supported

Running sudo dmesg | grep -i kvm gives me:

[    0.000000] Hypervisor detected: KVM
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000001] kvm-clock: using sched offset of 8689479685 cycles
[    0.000002] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.099308] Booting paravirtualized kernel on KVM
[    0.107994] kvm-guest: PV spinlocks enabled
[    0.459759] clocksource: Switched to clocksource kvm-clock
[    6.400280] kvm: no hardware support for 'kvm_intel'
[19601.474464] kvm: no hardware support for 'kvm_intel'

Running sudo /usr/sbin/kvm-ok gives me:

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

I can use docker fine its just docker desktop specifically that does not want to work

The error message says the CPU doesn’t support kvm_intel. Did you add a compatible virtual intel CPU to the virtual machine?

For now, your issue doesn’t seem to be a Docker issue. The virtual machine doesn’t support KVM and it is required by Docker Desktop to create a virtual machine for the Docker daemon, which is not needed for Docker CE.

Can I ask why you are trying to run Docker Desktop for Linux in a virtual machine instead of using Docker Desktop for Windows on Windows?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.