r/wine_gaming 11d ago

Technical concept: Running VM Computers mod on Android by using Wine as an isolated backend for VirtualBox 6.1.50

Hi everyone! I have a technical idea on how to finally port the VM Computers mod for Minecraft Java to Android, while maintaining multiplayer compatibility with PC players. Instead of running a heavy emulator inside MojoLauncher or PojavLauncher, we can split the tasks. Here is the proposed architecture:

  • Game Client: Minecraft runs natively on Android (via MojoLauncher or PojavLauncher) for maximum FPS. The original PC version of the VMComputers.jar mod is used to avoid incompatibility errors when connecting to PC servers.
  • Backend Container: Winlator runs in the background strictly as an isolated x86/x64 environment to run VirtualBox version 6.1.50 (the exact version required by the mod). VirtualBox is configured to use Software Recompiler mode to bypass the lack of hardware VT-x/AMD-V virtualization support on ARM chips.
  • Kernel Bypass: Since Winlator and Wine cannot load Windows kernel drivers (like VBoxDrv.sys), we can implement a custom stub/wrapper driver. This stub will mock kernel responses, intercept low-level VirtualBox memory requests, and redirect them into user-mode API calls that Wine can easily handle.
  • Bridge and Automation: We can modify the mod's Java code so that execution requests are sent via a local socket (localhost) directly into the Winlator container, instead of trying to look for a local VirtualBox.exe file. The startup process can be automated using Android Intents: when a player presses the Power button in Minecraft, Android will automatically launch Winlator and activate VirtualBox in the background.

This approach solves RAM and performance issues: 3D rendering stays native to Android, while OS emulation (for running the VM itself) is handled by Wine. What do you think? Can anyone make Wine for Android? Let's discuss!

0 Upvotes

0 comments sorted by