OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

ERROR: KVM acceleration not available (device file missing)

Open XingWang1234 opened this issue 9 months ago • 2 comments

I install everything in Linux with Ubuntu 22.04.5 LTS. I followed this setup guideline: https://github.com/microsoft/OmniParser/tree/master/omnitool after running ./manage_vm.sh create it successfully built docker image: windows-local and run a docker container: omni-windows but after several minutes, docker container existed.

after checking the docker container log. There is error "ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance" below is the docker container log.

❯ Starting OmniParser Windows for Docker v0.00... ❯ For support visit https://github.com/microsoft/OmniParser ❯ CPU: AMD EPYC 7V13 64 Core | RAM: 197/217 GB | DISK: 171 GB (ext4) | KERNEL: 5.15.0-1061-azure...

❯ Extracting local ISO image... ❯ Detecting version from ISO image... ❯ Detected: Windows 11 Enterprise (Evaluation) ❯ Adding drivers to image... ❯ Adding OEM folder to image... ❯ Adding win11x64-enterprise-eval.xml for automatic installation... ❯ Building Windows 11 image... ❯ Creating a 20G growable disk image in raw format... ❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance. ❯ ERROR: See the FAQ on how to diagnose the cause, or continue without KVM by setting KVM=N (not recommended).

XingWang1234 avatar Feb 26 '25 13:02 XingWang1234

same question

xiahc avatar Mar 04 '25 02:03 xiahc

The docs state that you should be using Docker-Desktop - this however does not work on linux at least in my setup because on linux docker-desktop uses a custom docker context that does not have access to KVM. See here - https://docs.docker.com/desktop/setup/install/linux/ and here - https://github.com/dockur/windows/issues/151#issuecomment-2467379701

Instead - you should use dockerd and not docker-desktop - i.e. uninstall docker-desktop.

alvins82 avatar Mar 04 '25 05:03 alvins82