iTranslated by AI
Installing Void Linux on an M2 MacBook
The original article is below:
Introduction
I succeeded in installing Void Linux for the arm64 architecture on a MacBook Air (M2, 2022). This article describes the installation method, impressions of actual use, and tips. Note that this article is aimed at people who are somewhat familiar with Linux and is not recommended at all for those touching Linux for the first time.
For more information about Void Linux itself, refer to the article below:
Background

The author recently upgraded their daily-use PC. At the Bic Camera store, I found a nearly-new MacBook Air (M2, 2022) for 120,000 yen and decided to make it my main machine. My three-year-old ThinkPad, which I loved, would run out of battery in 3-4 hours and was heavy and inconvenient to carry, so I naturally ended up with the MacBook Air, seeking a lightweight laptop with good battery life.
The MacBook Air with Apple Silicon is attractive for its portability, excellent battery life, and high performance despite that — overall, it is a highly polished laptop. And above all, you can install Linux. Apparently, thanks to a project called Asahi Linux, Linux can now run on M1/M2 chips, covering a substantial part including the GPU.
For the author, who uses Linux on a ThinkPad daily, the existence of Asahi Linux was great news — the ultimate Linux laptop that has everything you need in a notebook and can be taken anywhere. Driven by this romantic idea, I found myself already hitting the terminal to start installing Asahi Linux. At worst, I can just use macOS.
What is Asahi Linux?
Asahi Linux is a project aiming to port Linux to Macs equipped with Apple Silicon. The M1/M2 chips are mainly supported.
The project is being developed continuously and passionately, with progress updates published on the blog every few months. For an unofficial Japanese translation of the blog, refer to:
Void's Asahi Support
The officially supported distribution by the Asahi Linux project is Fedora Asahi Remix, but other distributions that support Asahi Linux are being developed by volunteers. Void Linux, which the author uses daily, also seems to be steadily advancing support for arm64 devices including Apple Silicon[1]. Therefore, in this article, I will install the arm64 version of Void Linux that supports Asahi Linux.
Installation
Installing Asahi Linux
curl https://alx.sh | sh
Simply run the above command, and the Asahi Linux installation script will start.
The overall flow is detailed in the link above.
Basically, just follow the terminal instructions, but when you see the prompt below, be sure to select 5[2].
Choose an OS to install:
1. Fedora Asahi Remix 42 with KDE Plasma
2. Fedora Asahi Remix 42 with GNOME
3. Fedora Asahi Remix 42 Server
4: Fedora Asahi Remix 42 Minimal
5: UEFI environment only (m1n1 + U-Boot + ESP)
OS:
Installing Void Linux
The process described above only installs the UEFI environment necessary to run Linux on Apple Silicon; Void Linux itself must be installed manually. Therefore, the steps are outlined below.
The basic procedure follows the link above, but this guide includes specific steps considering the Asahi Linux peculiarities.
Bootable USB
First, prepare a bootable USB to launch the installer. Download the arm platforms > apple silicon (asahi) live image from the official download page, then burn it to a USB drive using the dd command (or similar). At startup, select the UEFI boot loader (the one with the Asahi Linux logo) that was installed earlier, and the Void Linux installer will boot from the USB.
Note: The following steps assume you selected the base image. If you chose the base image, all operations will be performed via CUI (command line).
File System
First, create one partition for the Linux file system using fdisk. After creating the partition in the free space, format it with:
mkfs.ext4 /dev/nvme0n1p5 # Assuming the file system is created on /dev/nvme0n1p5
At this point, use the EFI System Partition that was generated during the Asahi Linux installation (you do not need to create one yourself).
Then, mount the file system and the EFI System Partition:
# Mount the root file system
mount /dev/nvme0n1p5 /mnt/
# Mount the EFI System Partition
mkdir -p /mnt/boot/efi/
mount /dev/nvme0n1p4 /mnt/boot/efi/
Installing the Base System
Next, install the base system. First, copy the RSA keys used for package installation to the target root directory:
mkdir -p /mnt/var/db/xbps/keys
cp /var/db/xbps/keys/* /mnt/var/db/xbps/keys/
Then, install the packages for the basic system. Make sure to install the three packages: base-system, asahi-base, and asahi-scripts.
XBPS_ARCH=aarch64 xbps-install -S -r /mnt -R "https://repo-default.voidlinux.org/current/aarch64" base-system asahi-base asahi-scripts
Various Settings
Generate the fstab based on the mounted file system:
xgenfstab -U /mnt > /mnt/etc/fstab
Enter the file system using xchroot:
xchroot /mnt /bin/bash
Set your desired hostname. Also edit /etc/rc.local, /etc/default/libc-locales, etc.
echo void-asahi > /etc/hostname # Set hostname
vi /etc/rc.conf # Configure keyboard layout and local time
# Generate locale
vi /etc/default/libc-locales # Uncomment the desired locale
xbps-reconfigure -f glibc-locales
# Set local time
ln -sv /usr/share/zoneinfo/<Timezone> /etc/localtime
Boot Loader
Install GRUB as the boot loader:
xbps-install -S grub-arm64-efi
grub-install --target-arm64-efi --efi-directory=/boot/efi --bootloader-id="Void" --removable
Final Verification
Verify that all installed packages are properly configured:
xbps-reconfigure -fa
The installation is now complete. Unmount the file system and power off:
exit # Exit the chroot
umount -R /mnt # Unmount the file system
shutdown -r now # Power off
If the installation succeeded, GRUB should start and allow you to boot Void Linux. Then, customize it to your liking.

Real-World Usage
Overall, I was able to use it more comfortably than expected. However, there are also many aspects that make it difficult for daily use.
👍 Advantages
High-Quality Linux Laptop

In terms of performance and battery life, it significantly surpasses typical notebook PCs. For example, tasks ranging from web browsing and coding to illustration creation are all smooth without any stuttering. Moreover, for such tasks, the battery lasts about 8 hours (which is exceptional for a Linux laptop). The GPU performance, a hallmark of Apple Silicon, is also fully utilized; in vanilla Minecraft, it achieves roughly 250~300fps[3].
Furthermore, the excellent look and feel of the hardware cannot be overlooked. Not only does the Apple-crafted aluminum unibody chassis shine, but the high-resolution, vivid Retina display offers a new discovery: "Linux can be this beautiful." The trackpad's operation is also uncompromised, causing no inconvenience when working away from home where it's hard to carry a mouse or keyboard. Overall, as a Linux laptop, it achieves a very high level of completeness in both performance and portability.
Ease of Troubleshooting
Some might think, "Because it's a special environment with few users, troubleshooting would be difficult." But in fact, the opposite is true.
A significant portion of the difficulty in PC troubleshooting stems from the fact that hardware is diverse, making it hard to reproduce or isolate the environment where the problem occurred. In contrast, with Asahi Linux, the compatible devices are naturally limited to M1 and later Macs, and the support status for each device is meticulously documented. This makes it very easy to separate "user-caused issues" from "Asahi Linux-side problems (which are currently unavoidable)." However, it's not that there are few problems; it's just that they are easy to diagnose.
👎 Disadvantages
Although I praised it above, the disadvantages are by no means negligible. Whether to use Asahi Linux should be carefully considered based on whether it fits your intended use case.
Work in Progress
Asahi Linux is a project under active development, so some (sometimes important) features do not work well. For example, currently:
- Video output from the USB-C port is not possible.
- Power consumption during sleep is high (about 2% per hour).
- Hardware video encoding/decoding is not supported; simply watching YouTube can consume over ten percent of CPU.
If you cannot tolerate these issues, it's better not to use it yet.
Limited Application Support
There are issues related to application installation due to the arm64 architecture (e.g., only x86_64 builds are available). For open-source software and other projects with public source code, you can build them yourself. For proprietary software, installation may require workarounds or compromises.
⚖ Comparison with macOS
Let's also compare it with macOS, the native OS for MacBooks. First, Asahi Linux clearly wins in terms of memory consumption. macOS consumes 6~7GB of RAM just at startup, whereas on Asahi Linux, even with countless browser tabs open and a development environment running, it rarely exceeds that amount (I use Hyprland as my window manager). Beyond that, the freedom of the desktop environment on (Asahi) Linux is something macOS simply cannot replicate[4]. Even if you dislike the look of KDE Plasma, you can just install (for example) Gnome instead.
On the other hand, while overall performance is excellent for a Linux laptop, it is not as optimized as macOS (especially in power management). For instance, leaving it in sleep mode for half a day can drain the battery by about 25%. Also, the available applications tend to be richer on macOS. In conclusion, macOS might be more user-friendly for everyone except those who seek high freedom.
Tips
Here, I provide some tips that might be useful for daily use of Asahi Linux.
Google Chrome
First, it's important to note that there is no arm64 build of Google Chrome for Linux. This means Asahi Linux, running on M1/M2 chips with arm64 architecture, seemingly cannot use Google Chrome.
But think about it: the main advantage of using Google Chrome is the ability to sync passwords and bookmarks via your Google account, right? If so, syncing Chromium with a Google account should achieve almost the same thing. Fortunately, Chromium can be installed normally, so I took the approach of customizing Chromium.
sudo xbps-install -S chromium
After installing Chromium, obtain the Google Sync API. The specific procedure can be followed at https://658c196ef6.seesaa.net/article/474071017.html.
Then, by adding those environment variables as options when launching chromium, you can enable synchronization with your Google account. Creating your own desktop entry makes this easier.
Visual Studio Code
The x86_64 xbps repository has a vscode package (which actually installs the OSS version Code-OSS), but the arm64 repository does not. Therefore, download the arm64 Linux tar.gz directly from the VSCode official website (or use xdeb after downloading the deb package).

Discord
There is no ARM Linux build for Discord, and since it is proprietary, you cannot build it from source yourself. Moreover, using the web version puts a heavy load on the CPU (Discord alone consumes about 20~30% CPU).
There appears to be a case where someone successfully built an arm64 version of Discord on Arch Linux, so I would like to try installing it on Void Linux based on that.
Conclusion
Modifying a MacBook you bought with a large sum of money during a period of yen depreciation might take courage, but if you're interested in Linux or have grown tired or frustrated with macOS, I highly recommend installing Asahi Linux.
-
Void Linux originally officially supports arm64, and its design philosophy suggests it is intended for use on a wide range of devices. Incidentally, it can also be installed on Raspberry Pi. ↩︎
-
Because Void Linux will be installed later into the free space on the disk. ↩︎
-
Perhaps due to the adoption of a native OpenGL driver born from reverse engineering, Minecraft performs comparably to, or even slightly better than, on macOS. Note that performance dropped to around 80~130fps in particularly demanding areas. ↩︎
-
There is also a perspective that low customizability is not necessarily a disadvantage. ↩︎
Discussion