Skip to content
← Back to projects
2026Cloud & Virtualization Engineer

AWS Red Star OS 3.0 Server

Terraform and shell scripts that boot Red Star OS 3.0 Server on AWS EC2 using KVM nested virtualization

AWS Red Star OS 3.0 Server

Problem

Red Star OS 3.0 Server (32-bit i686, Linux Kernel 2.6.38) expects legacy hardware (e1000 NIC, IDE bus) and installs from two separate discs: boot.iso (38MB) for the Anaconda boot kernel and install.iso (856MB) for RPM packages. Because it cannot boot directly as a standard cloud AMI, running it on AWS normally meant renting bare-metal (*.metal) instances at over $4/hour and installing it by hand.

This project provisions an AWS EC2 c8i.xlarge host with hardware Nested Virtualization (KVM), Terraform, and libvirt scripts so Red Star OS 3.0 Server can be installed and run without bare metal.

Local Host (Operator)Terraform CLIinfra/main.tf · apply2-ISO Upload & Hot-swapboot.iso (38MB) + install.isoVNC Viewer (:5900)SSH Tunnel (-L 5900)AWS EC2 c8i.xlarge (Ubuntu 24.04)Nested Virtualization (/dev/kvm)nested_virtualization = enabledlibvirtd / QEMU + virshLive IDE CD-ROM (hdc) Media Hot-swapNginx Reverse Proxy (:80)Host :80 → Guest 192.168.122.100:80Guest VM (Red Star 3.0)Red Star OS 3.0 ServerKernel 2.6.38 (32-bit i686)KDE / Xorg + Apache2 vCPU · 2GB RAM · e1000qcow2 (40GB)redstar-server.qcow2IaC ProvisionSCP / virsh

What I Built

  1. AWS EC2 nested virtualization host in Terraform

    • Enabled cpu_options { nested_virtualization = "enabled" } on c8i.xlarge to expose /dev/kvm hardware acceleration inside Ubuntu 24.04 LTS.
    • Automated VPC, Security Group, SSH keypair creation, and host setup (KVM, QEMU, libvirt, Nginx) via Terraform and user_data.sh.
  2. Live CD-ROM swap scripts for the two-disc installer

    • Wrote switch-to-install-iso.sh and eject-redstar-iso.sh around virsh change-media to swap the IDE CD-ROM (hdc) from redstar-boot.iso to redstar-install.iso mid-install without rebooting the VM.
    • Configured the guest profile (i686, 2 vCPU, 2GB RAM, 40GB sparse qcow2, e1000 NIC, USB tablet pointer sync) for Kernel 2.6.38 compatibility.
  3. SSH-tunneled VNC console and host Nginx proxy

    • Bound QEMU VNC strictly to 127.0.0.1:5900 (closed in the AWS Security Group) so GUI access only goes through ssh -L 5900:127.0.0.1:5900.
    • Configured host Nginx (:80) to reverse-proxy HTTP traffic to the guest web server at 192.168.122.100:80.

Results

Stack