Guide to Installing Windows or Linux ISOs on Android Devices: Windows 10 Nox Lab and Functional ARM Distros Using Termux
My Android device doesn’t have enough space to test a full build (with ISO from scratch). I could likely push a premade build to it for testing or get a secondary storage option in a few days. For now, I’m using emulators for premade builds.You might not know that Nox cannot run aarch64 qemu, and I didn’t understand why at the time. (I now theorize it’s due to Nox being Android 9 and WSA 12, so firmware-related, but I’m not sure.) Fast forward a year, and WSA is running better, now able to run Termux and install qemu-aarch64 without issues with the sys-NDK package.I’m using this version of WSA, but it might work on regular setups as well. Since we don’t have full system read and write access, we need to install the Termux storage module to access the Downloads folder on the device with code.The code below was able to boot past the board. Termux sees the ISO and prompts to press any key (I think we can modify these ISOs with MODWIN once we figure out how to use them properly. I know how to switch the EFI binary on the disk to avoid the prompt).
Code:
pkg install x11-repo
pkg upgrade
pkg install qemu-system-aarch64 qemu-utils libslirp
qemu-img create -f qcow2 win11.img 100G
termux-setup-storage
adb push win11arm.iso /sdcard/Download
adb push QEMU_EFI.fd /sdcard/Download
qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt -nographic -bios storage/downloads/QEMU_EFI.fd -drive if=none,file=win11.img,id=hd0 -device virtio-blk-device,drive=hd0 -netdev user,id=n0 -vnc 127.0.0.1:3 -cdrom storage/downloads/win11arm.iso
Spoiler:
SHOW RESULTSIf anyone can expand on this in any way, please do!
Edit:
Just realised I can now test on a phone without Root. The termux-setup-storage command opens up new possibilities.
Downloading these from your device lets you skip the adb commands.
Now we need the -display code, and I think the NIC code might be incorrect, so that too (-netdev user,id=n0).
1 Comments
Can we install any windows apo in this way
ReplyDelete