FEX-Emu / FEX

A fast usermode x86 and x86-64 emulator for Arm64 Linux
https://fex-emu.com
MIT License
2.15k stars 119 forks source link

Is FEX possible to run in termux p-root #1753

Closed Root-voidX closed 1 year ago

Root-voidX commented 2 years ago

I'm just wondering if FEX requires things like init or access to proc or dev/dri as p-root container doesn't have access to those? I want to try and see if I can run fluent on an android phone.

Sonicadvance1 commented 2 years ago

FEX has packages in the termux repository: https://github.com/termux/termux-packages/tree/master/packages/fex FEX itself doesn't need access to anything that Android/Termux doesn't have, so you can usually get away with running some simple applications like basic benchmarks (bytemark springs to mind). Every application that requires a GUI on the other hand is going to have problems. Even a basic application like zenity which all it does is create windows in the most basic fashion has issues. So your mileage may vary here, Android isn't well suited to the needs of running arbitrary Linux applications.

Root-voidX commented 2 years ago

Does this include running arm linux inside a proot container? I can run most gui in software rendering on the arm64 front

Sonicadvance1 commented 2 years ago

I think inside of proot more GUI things will work, it's just hecking slow due to the syscall trapping that proot needs to do.

Root-voidX commented 2 years ago

Have you tried it on proot ? I'm wondering if anyone has and are willing to assist me on how I can get a rootfs installed inside of proot and use FEX?

I am preferably trying to get a centos 7 rootfs so I can then just use the pre-req from their repo to run say ansys.

Sonicadvance1 commented 2 years ago

I've run some basic things on proot. It's definitely more stable than termux directly. The FEXRootFSFetcher should allow you to setup a rootfs, which will need to be extracted in that environment.

neobrain commented 1 year ago

Closing due to inactivity. If you encounter any specific issues, feel free to create new reports. Note that Android is not a supported platform however.