是否可以将 Nox 或 Bluestacks 与 wsl2 一起使用?

Lew*_*wik 6 bluestacks wsl2

是否可以在 PC 上运行 wsl2 的情况下使用 Nox 或 Bluestacks?或者有其他安卓模拟器可以玩游戏吗?Windows 10(非专业版)

我尝试了https://support.bluestacks.com/hc/en-us/articles/360041390952-How-to-run-BlueStacks-with-Hyper-V-enabled但没有成功

小智 0

它也适用于我(Windows 10 家庭版)。我的 CPU(Intel HD Graphics 4000)不支持虚拟化技术,但仍然可以工作。

方案一:

  1. 我禁用了 Windows-Hypervisor Platform && 激活了 WSL2

  2. 禁用 DMA 内核保护

  3. PowerShell 运行:

    bcdedit /set hypervisorlaunchtype auto

  4. 重新启动后,我安装了BlueStacks Hyper-V(BETA)(版本4.240.15.4204)链接: https ://support.bluestacks.com/hc/en-us/articles/360049701852-Release-Notes-for-BlueStacks-Hyper-V -测试版-

在 Bluestacks Hyper-V beta 的安装过程中,向当前用户授予了 Hyper-V 的权限。


解决方案 B:或者,如果它不起作用,您可以关闭 hypervisorlaunchtype off / auto(我在 Bluestacks 的 Hyper-V 版本之前这样做):

  1. 下载这两个文件: https://filehorst.de/download.php?file=dbjlfnst https://filehorst.de/download.php?file=dfGhyFfA

  2. 为每个文件创建一个快捷方式

  3. 转到每个快捷方式的首选项并添加到路径:powershell -f "YOUR_PATH_TO_FILE"例如:powershell -f C:\Users\username\Desktop\runWSL2.ps1

  4. 现在,如果您想使用 WSL2,请运行“runWSL2.ps1”快捷方式,重新启动后即可使用它。与“runBluestacks.ps1”相同,重新启动后您就可以使用Bluestacks。

我知道这不是最好的解决方案,但在 Hyper-V Beta 之前,我使用此解决方案没有任何问题。

power shell 脚本的简短代码是:

Write-Output "Turn on hypervisorlaunchtype for using WSL2 after Reboot"
bcdedit /set hypervisorlaunchtype auto
Write-Output "Need to restart, please wait or confirm"
timeout 15
Restart-Computer
Run Code Online (Sandbox Code Playgroud)

Write-Output "Turn off hypervisorlaunchtype for using WSL2 after Reboot"
bcdedit /set hypervisorlaunchtype off
Write-Output "Need to restart, please wait or confirm"
timeout 15
Restart-Computer
Run Code Online (Sandbox Code Playgroud)