macos icon indicating copy to clipboard operation
macos copied to clipboard

[Bug]: KVM acceleration reporting as not available

Open Fort-P opened this issue 1 year ago • 1 comments

Operating system

Ubuntu 22.04.4

Description

Device supports KVM, but it is not recognized. I have used KVM applications before, with sucess.

> sudo kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
> sudo docker run \
  --privileged \
  --rm \
  -p 8006:8006 \
  --device=/dev/kvm \
  --cap-add NET_ADMIN \
  --stop-timeout 120 \
  -e VERSION="sonoma" \
  -e DISK_SIZE="35G" \
  -e RAM_SIZE="8G" \
  -e CPU_CORES="4" \
  dockurr/macos
❯ Starting macOS for Docker v1.08...
❯ For support visit https://github.com/dockur/macos
❯ CPU: 12th Gen Intel Core TM i5 1240P | RAM: 10/12 GB | DISK: 50 GB (ext4) | HOST: 6.6.12-linuxkit...

❯ Downloading macOS Sonoma recovery image...
Downloading 696-08090...
Saving http://oscdn.apple.com/content/downloads/11/58/062-53943/of12aseueo2jnehp03qh5g3o17lx4139t1/RecoveryImage/BaseSystem.chunklist to /storage/tmp/BaseSystem.chunklist...
Download complete!25 MBs downloaded...  		
Saving http://oscdn.apple.com/content/downloads/11/58/062-53943/of12aseueo2jnehp03qh5g3o17lx4139t1/RecoveryImage/BaseSystem.dmg to /storage/tmp/BaseSystem.dmg...
Download complete!MBs downloaded...     		
Verifying image with chunklist...
Image verification complete!					
❯ Creating a 35G growable disk image in raw format...
❯ Extracting boot image...
❯ 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).

Docker compose

sudo docker run
--privileged
--rm
-p 8006:8006
--device=/dev/kvm
--cap-add NET_ADMIN
--stop-timeout 120
-e VERSION="sonoma"
-e DISK_SIZE="35G"
-e RAM_SIZE="8G"
-e CPU_CORES="4"
dockurr/macos

Docker log

❯ Starting macOS for Docker v1.08... ❯ For support visit https://github.com/dockur/macos ❯ CPU: 12th Gen Intel Core TM i5 1240P | RAM: 10/12 GB | DISK: 50 GB (ext4) | HOST: 6.6.12-linuxkit...

❯ Downloading macOS Sonoma recovery image... Downloading 696-08090... Saving http://oscdn.apple.com/content/downloads/11/58/062-53943/of12aseueo2jnehp03qh5g3o17lx4139t1/RecoveryImage/BaseSystem.chunklist to /storage/tmp/BaseSystem.chunklist... Download complete!25 MBs downloaded... Saving http://oscdn.apple.com/content/downloads/11/58/062-53943/of12aseueo2jnehp03qh5g3o17lx4139t1/RecoveryImage/BaseSystem.dmg to /storage/tmp/BaseSystem.dmg... Download complete!MBs downloaded... Verifying image with chunklist... Image verification complete! ❯ Creating a 35G growable disk image in raw format... ❯ Extracting boot image... ❯ 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).

Screenshots (optional)

No response

Fort-P avatar Sep 03 '24 18:09 Fort-P

Are you using "Docker Desktop for Linux" ? Because you must use Docker Engine instead.

kroese avatar Nov 11 '24 17:11 kroese