Closed wenqinyang closed 7 months ago
bump
MacOS uses HVF acceleration instead of KVM. And the QEMU package for Debian is not compiled with HVF support enabled.
So the only solution would be to compile a custom build of QEMU with some additional flags, but I prefer to use the official version instead of creating some frankenstein build.
You can already use the container on MacOS if you set KVM: "N"
but it will run on one core and without acceleration. For older OS like Windows XP this is not so noticeable, for Win11 it will be slow.
Hi Kroese,
I tried KVM: "N"
and commented out devices
:
version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win8"
CONSOLE: "Y"
# HV: "N"
KVM: "N"
# devices:
# - /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
But I still got the error whatever I tried windows 11, 10 or 8:
2024-03-29 21:54:20 windows | ❯ Building Windows 8 image...
2024-03-29 21:54:29 windows | ❯ Creating a 64G growable disk image in raw format...
2024-03-29 21:54:30 windows | ❯ Booting Windows using QEMU emulator version 8.2.1 ...
2024-03-29 21:54:30 windows | char device redirected to /dev/pts/0 (label serial0)
windows exited with code 0
My OS:
sw_vers
ProductName: macOS
ProductVersion: 14.3.1
BuildVersion: 23D60
$ uname
Darwin
macOS as a server environnement, why not... Won't you spent some time to port macOS as hosted container ? On a linux environment, this works out of the box : https://github.com/kholia/OSX-KVM
macOS as a server environnement, why not... Won't you spent some time to port macOS as hosted container ? On a linux environment, this works out of the box : https://github.com/kholia/OSX-KVM
I only use Windows when it's rare, so I want to use Docker to deploy and solve the problem. I usually use Mac and don't plan to switch to Linux
MacOS uses HVF acceleration instead of KVM. And the QEMU package for Debian is not compiled with HVF support enabled.
So the only solution would be to compile a custom build of QEMU with some additional flags, but I prefer to use the official version instead of creating some frankenstein build.
You can already use the container on MacOS if you set
KVM: "N"
but it will run on one core and without acceleration. For older OS like Windows XP this is not so noticeable, for Win11 it will be slow.
thank for your reply, I have already set `KVM: "N" and the windows11 is working but it too slow. I gave up !
Will Mac OS M1 be supported in the future?