mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Question: is this compatible with Windows 10? #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kuriel-dev on GitHub (Jun 6, 2020).
is this compatible with Windows 10?
(the question is because https://github.com/kholia/OSX-KVM docs talks about running on Linux only.)
anyway i'm trying right now xD
also i'll try on a WSL2 Ubuntu instance (if Windows fails).
@kneelesh48 commented on GitHub (Jun 7, 2020):
Let me know if it worked. I'm interested in the results.
@sickcodes commented on GitHub (Jun 7, 2020):
Try this https://github.com/sickcodes/Docker-OSX/tree/master/vnc-version
@Silfalion commented on GitHub (Jun 7, 2020):
did you use WSL2? and how were you able to set up the GUI for it please?
@sickcodes commented on GitHub (Jun 7, 2020):
Try this https://github.com/myspaghetti/macos-virtualbox
@kuriel-dev commented on GitHub (Jun 7, 2020):
@sickcodes thanks, when using WSL/2 virtualbox does not works.
@sickcodes commented on GitHub (Jun 7, 2020):
This will probably work.
https://sourceforge.net/projects/vcxsrv/
It should open on your Windows desktop (to verify that X11 is working)
Then you should be able to run the normal docker command at the top of the readme :)
Unless nested virtualization is not enabled on WSL/2
Credit angellus:
https://www.reddit.com/r/bashonubuntuonwindows/comments/apm0vx/comment/egacocz
@kuriel-dev commented on GitHub (Jun 7, 2020):
Yes, i'm using WSL2, im using X410 for GUI but you can use a free alternative, i'll add steps to make it run all Docker-OSX on next comment.
if you wish to use X410 install from Microsoft Store, then:
sudo nano ~/.bashrc(enter your sudo password)export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0gedit&This should work.
@Silfalion commented on GitHub (Jun 7, 2020):
These are fantastic infos, thank you. I'll test them asap:)
@sickcodes commented on GitHub (Jun 8, 2020):
@ningacoding so you got it working fine?
Even better you could add the Arch Linux WSL and just enter the commands in from the Dockerfile
@b0kch01 commented on GitHub (Jun 8, 2020):
I got Ubuntu, WSL 2, XLaunch working well. Where do I go from there?
@RYOSKATE commented on GitHub (Jun 8, 2020):
@ningacoding @sickcodes
Thanks for the great information.
I tried to configure WSL2(Ubuntu) and VcXsrv, but I got an error when executing the following command.
Have you made any other changes to your WSL?
After doing a little research, I realized that I may have to rebuild the wsl kernel, did you do that?
@b0kch01 commented on GitHub (Jun 8, 2020):
Also stuck there :/
Apparently WSL never wanted to support virtualization.
Edit: ok so on this thread:
https://github.com/microsoft/WSL/issues/4193
The latest fast build of windows is supposed to include kvm installed (for Intel)
@kuriel-dev commented on GitHub (Jun 8, 2020):
WSL2 virtualization is supported:
Add a file at
C:\Users\<username>\.wslconfigwith content:
Restart WSL2 with:
Check if your Kernel supports kvm (newer WSL2 kernels does), with kvm-ok
@kuriel-dev commented on GitHub (Jun 8, 2020):
Enable Systemd in Ubuntu if needed:
https://github.com/damionGans/ubuntu-wsl2-systemd-script
@kuriel-dev commented on GitHub (Jun 8, 2020):
After those steps you should be able to Install Docker and Docker-OSX with Containers over containers:
Windows>Ubuntu18.04>Docker>Arch>MacOs
@b0kch01 commented on GitHub (Jun 8, 2020):
Thanks so much!
Edit: Ok kvm is up and running! I did need to update to the latest preview build for windows.
@theLastOfCats commented on GitHub (Jun 9, 2020):
Confirm, launched. Little bit laggy and WSL starts using 16G of ram
@kuriel-dev commented on GitHub (Jun 9, 2020):
The problem with WSL it's the ausence of GPU and the problem with QEMU you can't choose a better CPU (the cpu of this repository is Core 2 Duo :/ )
@Mik4sa commented on GitHub (May 22, 2021):
I'm currently on Windows Pro 21H1 (Build 19043.985) and I can't get kvm to work.
sudo kvm-okalways outputs:After reading https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ and https://dev.to/nicole/running-macos-on-windows-10-with-wsl2-kvm-and-qemu-21e1 it looks like I need to join Windows insider and update my Windows to the dev channel. Is this right? Is there any way around this?
Reading the comments here it looks like it should work with my version, but I'm not sure. I can't get it to work.
Any ideas?
I tried 5.4.72-microsoft-standard-WSL2 and 5.10.16.3-microsoft-standard-WSL2, both didn't worked.
I appreciate any help.
@a10kiloham commented on GitHub (Aug 11, 2021):
KVM at least works on the newest dev builds including Windows 11.
@emueyes commented on GitHub (Aug 14, 2021):
After following the superb https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ and compiling a few kernels both KVM module and builtin I find KVM still does not work with Ubuntu/Microsoft 5.10.43.3 and Windows (Home64) 21H1 19043.1165
Perhaps there are settings within Windows that determine how it treats hypervisors or VM?
Edit: /sys/module/kvm_intel/parameters/nested actually shows Y
@JoseHuertasDev commented on GitHub (Aug 31, 2021):
does it works for AMD?
@carellano commented on GitHub (Nov 1, 2021):
I got it working on my Zephyrus laptop
AMD Ryzen 9 5900HS
Edition Windows 11 Pro Insider Preview
OS build 22489.1000
.wslconfig
[wsl2]
memory = 8GB # Limits VM memory in WSL 2 to 4 GB
processors = 6 # Makes the WSL 2 VM use two virtual processors
nestedVirtualization = 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_vmcsd = 1 kvm-amable_vmcsd = 1 kvm-amable_vmcsd = 1 kvm-amd.