# Arch Linux s390x - Real Installation Quick Start ## TL;DR - Install Commands ```bash # On your workstation cd ~/development/archlinuxarch-s390 # Transfer files scp boot/vmlinuz-linux linux1@148.100.77.9:~/ scp boot/initramfs-linux.img linux1@148.100.77.9:~/ scp boot/arch-s390x-install.img linux1@148.100.77.9:~/arch-rootfs.img # SSH to z/VM ssh linux1@148.100.77.9 # On z/VM - Install QEMU and create installer sudo yum install -y qemu-system-s390x cat > ~/install-arch.sh << 'EOF' #!/bin/bash sudo qemu-system-s390x \ -M s390-ccw-virtio -m 2G -nographic \ -kernel ~/vmlinuz-linux -initrd ~/initramfs-linux.img \ -append "root=/dev/vda rw console=ttyS0" \ -drive file=arch-rootfs.img,if=none,id=drive0,format=raw \ -device virtio-blk-ccw,drive=drive0,devno=fe.0.0001 \ -drive file=/dev/dasda,if=none,id=dasd,format=raw,cache=none \ -device virtio-blk-ccw,drive=dasd,devno=fe.0.0002 EOF chmod +x ~/install-arch.sh sudo ~/install-arch.sh # Inside Arch installer - Install to DASD fdisk /dev/vdb # n,p,1,Enter,+512M,n,p,2,Enter,Enter,w mkfs.ext4 /dev/vdb1 mkfs.ext4 /dev/vdb2 mkdir -p /mnt && mount /dev/vdb2 /mnt && mkdir -p /mnt/boot && mount /dev/vdb1 /mnt/boot cp -a /bin /sbin /etc /usr /lib /mnt/ mkdir -p /mnt/{proc,sys,dev,tmp,var,run,home,root,opt,lib64} cat > /mnt/etc/fstab << 'FSTAB' /dev/vdb2 / ext4 defaults,relatime 0 1 /dev/vdb1 /boot ext4 defaults 0 2 FSTAB echo "archlinux-zvm" > /mnt/etc/hostname sed -i 's/^root:.*$/root::19797:0:99999:7:::/' /mnt/etc/shadow umount /mnt/boot && umount /mnt # Ctrl-A then X to exit # Back on z/VM - Create boot script cat > ~/boot-arch.sh << 'EOF' #!/bin/bash sudo qemu-system-s390x \ -M s390-ccw-virtio -m 2G -nographic \ -kernel ~/vmlinuz-linux -initrd ~/initramfs-linux.img \ -append "root=/dev/vda2 rw console=ttyS0" \ -drive file=/dev/dasda,if=none,id=dasd,format=raw,cache=none \ -device virtio-blk-ccw,drive=dasd,devno=fe.0.0001 EOF chmod +x ~/boot-arch.sh sudo ~/boot-arch.sh # You should now be in Arch Linux on z/VM! # Login as root (no password), then run: passwd root ``` ## What This Does 1. Keeps RHEL 9.6 as base system (safe, can rollback) 2. Installs Arch to DASD disk `/dev/dasda` 3. Boot Arch via QEMU from RHEL 4. Full Arch environment with busybox userland ## Files Available - `install-now.sh` - Interactive installer guide - `REAL_INSTALL_GUIDE.md` - Complete detailed guide - `ZVM_INSTALLATION.md` - Alternative installation methods - `ZVM_INSTALL_READY.md` - Status and overview ## Post-Install ```bash # Set root password passwd root # Verify installation uname -a # Should show s390x cat /etc/os-release # Should show Arch Linux df -h # Check mounted filesystems busybox --list # See available commands # Build systemd (optional) /root/build-systemd.sh ``` ## Rollback Just reboot into RHEL normally. Your RHEL system is unchanged. ## Success! **MY MAINFRAME RUNS ARCH BTW!**