OS & Live Installer
Monarch.linux is an Arch-based KVM host distribution installed from a browser. The live ISO boots into a minimal environment that serves a Nuxt 4 web installer on your local network.
Base system & preinstalled packages
- Kernel & base: Arch
core/extra+ CachyOS generic x86-64 repository only (no v3/v4 AVX2 requirement),linux-ltswith headers, Intel and AMD microcode, ext4 root, and GRUB for both legacy BIOS and UEFI (including the--removablefallback path). - Virtualization:
qemu-full,qemu-img,libvirt,virt-install,edk2-ovmf,dnsmasq, andswtpm. QEMU runs aslibvirt-qemu:libvirt-qemu,/home/QEMU/{ISO,QCOW}are configured as autostartedISOandQCOWpools, and the admin user is placed inwheel,libvirt,libvirt-qemu, andkvm. Nested KVM and IOMMU (intel_iommu=on iommu=pt) are configurable in the wizard. - Networking:
systemd-networkdandsystemd-resolved. The bridgevirtbr0sits on top of the selected NIC and inherits its MAC address so existing DHCP reservations stay intact.lan(bridge mode) becomes the default libvirt network for new VMs while NATdefaultremains available. - Utilities & agents:
yay(yay-bin),monarch-daemon(always enabled), optionalmonarch-panel,btop,zshwith oh-my-zsh,fastfetch,git,sudo,openssh,pacman-contrib,wireguard-tools, andnetclientv1.7.0 (pinned by SHA-256).
Building the ISO
On an Arch or CachyOS machine:
sudo pacman -S --needed archiso base-devel git nodejs npm dotnet-sdk librsvg ttf-dejavu jq
git clone https://code.weexnes.dev/monarch/linux.git
cd linux
./build.sh packages # unprivileged: builds AUR/Monarch packages into [monarch] repo
sudo ./build.sh offline # optional: caches all target packages for air-gapped installs
sudo ./build.sh iso # runs mkarchiso -> out/monarch-0.1.0-x86_64.iso
Booting and accessing the installer
Write the ISO to a USB stick (replacing /dev/sdX with the target device):
sudo dd if=out/monarch-0.1.0-x86_64.iso of=/dev/sdX bs=4M oflag=direct status=progress conv=fsync
Alternatively, mount the ISO via IPMI or iDRAC virtual media. The boot menu supports legacy BIOS (syslinux), UEFI (systemd-boot), and a copy to RAM option that lets you unplug the USB stick after boot.
On tty1, the live system prints:
https://<address>/for every LAN IP (with a QR code for the first address)- A one-time access code
- The SHA-256 fingerprint of the installer's self-signed TLS certificate
The installer binds only to private addresses (RFC 1918, CGNAT, link-local, ULA). nftables drops everything else, and SSH is disabled on the live environment. After comparing the browser's certificate fingerprint against tty1, enter the access code to start a 12-hour session.
Wizard steps
- Hardware — CPU, memory, NICs, and detected block devices.
- System — Hostname, timezone, locale, keymap, kernel flags (nested KVM / IOMMU).
- Users — Admin user (
wheel,libvirt,libvirt-qemu,kvm) and SSH keys. - Storage — Drag disks (or use the mobile menu) into System, Data volume, Cache, or Unused roles.
- Network — Choose the bridge NIC and static or DHCP addressing for
virtbr0, with live previews of the generatedsystemd-networkdand libvirt files. - Virtualization — Storage pools and libvirt network setup.
- Fleet — Run
monarch-panellocally on this host (usinglocal-join.json), or enroll into a remote panel with a join token and fingerprint on first boot. Optionally supply a Netmaker token or enable native ClyoCloud integration. - Review — Lists every disk to be wiped and shows the dry run: every exact command and generated file (with passwords and tokens redacted). Nothing touches a disk until you type
ERASE. - Install — Streams live installation progress over WebSocket. Logs are written to
/run/monarch/install.log(live) and/var/log/monarch-install.log(target).
First boot & ClyoCloud
monarch-firstboot.service runs once on the installed system to:
- Install
netclientand join Netmaker if/etc/monarch/netclient-tokenwas provided (thenshreds the token). - Enroll
monarch-daemonagainst a remote panel using/etc/monarch/join/*if configured (then wipes the join token). - Start the
ISOandQCOWlibvirt storage pools and thelanbridge network.
If clyocloud is enabled in the Fleet step, Monarch installs the unmodified AUR package and applies configuration outside package-owned paths (/etc/systemd/system/clyocloud.service.d/zz-monarch.conf, /etc/clyocloud/clyocloud.env, /etc/clyocloud/secret.env, /etc/sysusers.d/monarch-clyocloud.conf, and /etc/tmpfiles.d/monarch-clyocloud.conf) so yay -Syu upgrades never overwrite your setup.