Skip to content

Instantly share code, notes, and snippets.

@minimasoft
Created January 8, 2026 21:27
Show Gist options
  • Select an option

  • Save minimasoft/669ccf4ae29ef68118f267e11a72b817 to your computer and use it in GitHub Desktop.

Select an option

Save minimasoft/669ccf4ae29ef68118f267e11a72b817 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
ISO_URL="https://iso.omarchy.org/omarchy-3.3.1.iso"
ISO_FILE="omarchy-3.3.1.iso"
DISK_FILE="omarchy.qcow2"
DISK_SIZE="40G"
RAM="4G"
CORES="4"
if [ ! -f "$ISO_FILE" ]; then
echo "⬇️ ISO not found. Downloading Omarchy 3.3.1..."
wget -O "$ISO_FILE" "$ISO_URL" --show-progress
else
echo "✅ ISO found: $ISO_FILE"
fi
if [ ! -f "$DISK_FILE" ]; then
echo "💿 Creating virtual disk ($DISK_SIZE)..."
qemu-img create -f qcow2 "$DISK_FILE" "$DISK_SIZE"
else
echo "✅ Virtual disk found: $DISK_FILE"
fi
# Note: Omarchy (Hyprland) requires 3D acceleration (virtio-vga-gl).
# If you lack 3D support on the host, change 'virtio-vga-gl' to 'virtio-vga' (performance will suffer).
echo "🚀 Launching Omarchy..."
qemu-system-x86_64 \
-enable-kvm \
-m "$RAM" \
-smp "$CORES" \
-cpu host \
-drive file="$DISK_FILE",format=qcow2,if=virtio \
-cdrom "$ISO_FILE" \
-device virtio-vga-gl \
-display gtk,gl=on \
-device intel-hda -device hda-duplex \
-usb -device usb-tablet \
-net nic,model=virtio -net user \
-boot menu=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment