Installation¶
This guide covers installing Cortex Linux on physical hardware, virtual machines, and cloud platforms.
Installation Methods¶
flowchart TD
A[Choose Installation Method] --> B{Hardware Type}
B -->|Physical| C[ISO Installation]
B -->|Virtual| D[VM Image]
B -->|Cloud| E[Cloud Image]
B -->|Container| F[Docker Image]
C --> G[Boot from USB]
D --> H[Import OVA/QCOW2]
E --> I[Launch Instance]
F --> J[docker run] ISO Installation¶
Download¶
Download the latest stable ISO from the official releases page:
# Download ISO
curl -LO https://releases.cortexlinux.com/stable/cortex-2024.1.iso
# Download checksum
curl -LO https://releases.cortexlinux.com/stable/cortex-2024.1.iso.sha256
# Verify integrity
sha256sum -c cortex-2024.1.iso.sha256
Create Bootable USB¶
Use Rufus or balenaEtcher:
- Download and run Rufus
- Select the Cortex ISO
- Select your USB drive
- Click "Start"
Boot and Install¶
-
Boot from USB: Insert the USB drive and boot your system. Access BIOS/UEFI (usually F2, F12, or DEL) and select USB as boot device.
-
Select Installation Mode:
- Guided Install: Recommended for most users
- Expert Install: Full control over partitioning
- Server Install: Minimal installation without GUI
-
Configure Disk:
-
Set Up User Account:
- Username and password
- SSH key import (optional)
- Enable root account (optional, not recommended)
-
Select Components:
-
Complete Installation: The installer will partition disks, install packages, and configure the bootloader. This typically takes 5-15 minutes.
Virtual Machine Installation¶
VMware / VirtualBox¶
Download the OVA image:
Import into your hypervisor:
QEMU / KVM¶
Download the QCOW2 image:
Create and start VM:
# Create VM with virt-install
virt-install \
--name cortex \
--memory 8192 \
--vcpus 4 \
--disk path=cortex-2024.1.qcow2,format=qcow2 \
--import \
--os-variant ubuntu22.04 \
--network bridge=virbr0
# Or start directly with QEMU
qemu-system-x86_64 \
-enable-kvm \
-m 8G \
-smp 4 \
-drive file=cortex-2024.1.qcow2,format=qcow2 \
-net nic -net user,hostfwd=tcp::2222-:22
Cloud Installation¶
Amazon Web Services (AWS)¶
# Find the latest Cortex AMI
aws ec2 describe-images \
--owners 123456789012 \
--filters "Name=name,Values=cortex-*" \
--query 'Images | sort_by(@, &CreationDate) | [-1]'
# Launch instance
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type t3.xlarge \
--key-name your-key \
--security-group-ids sg-0123456789abcdef0 \
--subnet-id subnet-0123456789abcdef0
# For GPU workloads
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type p3.2xlarge \
--key-name your-key
Google Cloud Platform (GCP)¶
# Create instance
gcloud compute instances create cortex-vm \
--image-family=cortex-stable \
--image-project=cortexlinux \
--machine-type=n2-standard-4 \
--boot-disk-size=100GB \
--zone=us-central1-a
# For GPU workloads
gcloud compute instances create cortex-gpu \
--image-family=cortex-stable \
--image-project=cortexlinux \
--machine-type=n1-standard-8 \
--accelerator=type=nvidia-tesla-t4,count=1 \
--maintenance-policy=TERMINATE \
--zone=us-central1-a
Microsoft Azure¶
# Create resource group
az group create --name cortex-rg --location eastus
# Create VM
az vm create \
--resource-group cortex-rg \
--name cortex-vm \
--image cortexlinux:cortex:stable:latest \
--size Standard_D4s_v3 \
--admin-username cortex \
--generate-ssh-keys
# For GPU workloads
az vm create \
--resource-group cortex-rg \
--name cortex-gpu \
--image cortexlinux:cortex:stable:latest \
--size Standard_NC6s_v3 \
--admin-username cortex \
--generate-ssh-keys
Container Installation¶
Docker¶
# Pull the latest image
docker pull cortexlinux/cortex:latest
# Run interactive shell
docker run -it cortexlinux/cortex
# Run with GPU support (NVIDIA)
docker run --gpus all -it cortexlinux/cortex
# Run with persistent storage
docker run -it \
-v cortex-data:/var/lib/cortex \
-v cortex-config:/etc/cortex \
cortexlinux/cortex
Podman¶
Post-Installation¶
After installation, verify your system:
# Check Cortex version
cortex --version
# Run system diagnostics
cortex-ops doctor
# View system status
cortex status
Continue to Quick Start to begin using Cortex Linux.
Troubleshooting Installation¶
Boot Issues¶
UEFI Secure Boot
Cortex Linux supports Secure Boot, but you may need to enroll the Cortex signing key in your UEFI firmware.
# Check if booted in UEFI mode
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "BIOS"
# Enroll MOK key (if prompted)
mokutil --import /var/lib/shim-signed/mok/MOK.der
GPU Not Detected¶
# Check for NVIDIA GPU
lspci | grep -i nvidia
# Install NVIDIA drivers
sudo apt install nvidia-driver-535
# Verify installation
nvidia-smi