Building & Running
Build from Source (x86_64)
git clone https://github.com/MacroMag-os/MacroMag-os && cd MacroMag-os
chmod +x buildiso.sh && ./buildiso.sh
ARM64 (aarch64)
- Boot
MacroMag-x86_64.iso(UEFI/BIOS) to test queries or runsys.install("/dev/sda"). - For ARM64, extract
boot/vmlinuzandboot/initramfs.imgfromMacroMag-aarch64.isoand boot via QEMU (-M virt,-cpu cortex-a57) with 2 GB of memory.
Running MacroMag OS on Android (Termux)
You can boot the aarch64 build of MacroMag OS directly on Android without root access using QEMU inside Termux.
1. Install Dependencies
Open Termux and install the headless ARM64 QEMU emulator along with p7zip and wget:
pkg update -y && pkg install -y qemu-system-aarch64-headless p7zip wget
mkdir -p ~/macromag && cd ~/macromag
2. Download ISO and Extract Boot Files
Fetch the v0.2.0-arm64 ISO image and extract the Linux kernel (boot/vmlinuz) and initial RAM filesystem (boot/initramfs.img):
wget -O MacroMag-aarch64.iso https://github.com/MacroMag-os/MacroMag-os/releases/download/v0.2.0-arm64/MacroMag-aarch64.iso
7z x MacroMag-aarch64.iso boot/vmlinuz boot/initramfs.img -y
3. Boot in QEMU
Start the virtual machine with serial console output (ttyAMA0) and user-mode networking enabled (required for mur sync):
qemu-system-aarch64 \
-M virt \
-cpu cortex-a57 \
-m 2G \
-nographic \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0 \
-kernel boot/vmlinuz \
-initrd boot/initramfs.img \
-append "console=ttyAMA0 rdinit=/init"
Useful Controls & Optional Disk
- Exit QEMU: Press
Ctrl+A, release both keys, then pressX. - Test Disk Installation (
sys.install): Create a virtual disk image (qemu-img create -f qcow2 disk.qcow2 2G) and append-drive file=disk.qcow2,if=virtio,format=qcow2to the QEMU command. - Sync Packages: Write in terminal
mur sync.