DEV Community

Discussion on: Running MacOS on Windows 10 with WSL2, KVM and QEMU

Collapse
 
pkostelnik profile image
Pawel Kostelnik • Edited

Just trying on my HP Pavillion Gaming 15-EC0002 (or so) with Windows 10 insider (DEV Channel).
AMD Ryzen 3750H Mobile
16GB and some SSD
got Clover to boot and also installed MacOS (Mojave) now.
just got to change some things from Intel to AMD.
As of today no special Kerlen were needed!
My .wslconfig:

[wsl2]
memory=4GB
swap=8GB
localhostForwarding=true
nestedVirtualization=true
pageReporting=true
kernelCommandLine=amd_iommu=on iommu=pt kvm.ignore_msrs=1 kvm-amd.nested=1 kvm-amd.ept=1 kvm-amd.emulate_invalid_guest_state=0 kvm-amd.enable_shadow_vmcs=1 kvm-amd.enable_apicv=1
Enter fullscreen mode Exit fullscreen mode

System is slow but still rebuilding!
Edit: It seems like 4 or 6GB are too less for MacOS.. trying to tweak up that thing ;-)
Still installing, in the time between i tried to build a KVM Kernel but... not even one worked as expected so back to basic.
Installing ...
here the actual TOP from the same Distribution:
WSL2 Ubuntu TOP
Hmm... always running on:

apfs_module_stop:1432 .......... (remaining mem allocated: 0)
Enter fullscreen mode Exit fullscreen mode

still stuck at the same stage ...
even with a rebuild kernel and 8GB + 4core/8Thread (Memory and CPU changed in .wslconfig and also in the basic.sh)

Collapse
 
nicole profile image
Nicole Stevens

Many thanks for the update on the kernel and your .wslconfig file :)

Thanks for the note on memory too, I think I read something like that on a forum, 8GB was good, if I recall correctly. I just tried to find where I might have seen it but I can't sorry!