How to Install the Operating System Photon OS

Introduction

Welcome to this comprehensive (and delightfully slightly cheeky) guide on installing Photon OS, VMware’s minimal, fast, container-optimized Linux distribution. If you’ve been craving an OS that’s so lean it practically sprints away when you try to measure its footprint, Photon OS is your new best friend. In this tutorial, we’ll walk you through every step, from downloading the ISO to customizing your post-install environment. Buckle up—you’re about to get Photon-ized!

What Is Photon OS?

Photon OS is a lightweight, open-source Linux distribution designed by VMware for cloud-native applications, containers, and virtual machines. It offers:

  • Small Footprint: Under 300MB ISO—less overhead, more doing.
  • Optimized for Containers: Docker, Kubernetes, and more come pre-tuned.
  • Security Focus: Hardened kernel, SELinux support, and timely updates.
  • Integration: Perfect for VMware vSphere environments, though it also runs on other hypervisors.

Why Choose Photon OS?

Photon OS stands out if you need to run modern container workloads or microservices. It’s like the sports car of Linux distributions—sleek, quick off the line, and built to handle twists and turns (we’re looking at you, Kubernetes). Other perks include:

  • Official support in VMware ecosystem
  • Regular security patches and updates
  • Choice of package managers: tdnf (default), zypper, or even yum if you’re feeling nostalgic

Prerequisites

Before we dive in, gather these essentials:

  • A computer or VM host (bare metal or virtual). Photon runs great on VMware, but VirtualBox and KVM are happy too.
  • At least 1 vCPU and 512MB RAM (1024MB recommended for comfort).
  • 10GB disk space (more if you plan on storing containers or additional packages).
  • Network connectivity to download ISO and updates.
  • Basic familiarity with Linux console commands—don’t worry, we’ll hold your hand through most of it.

Hardware and Virtualization Requirements

Component Minimum Recommended
CPU 1 vCPU (x86_64) 2 vCPUs
Memory 512MB 1GB
Disk Space 10GB 20GB
Network 1 NIC, bridged or NAT 1 NICs (for multi-homing)
Hypervisor VMware ESXi 6.x/7.x, VirtualBox, KVM Latest supported versions

Step 1: Download the Photon OS ISO

Head over to the official repository and grab the latest Photon ISO:

https://github.com/vmware/photon/wiki/Downloads

Pro tip: Check the release notes for any caveats or critical fixes before installing. We recommend the ISO-Install image for typical use cases.

Step 2: Create a New Virtual Machine

Let’s assume you’re on VMware ESXi, but the steps are similar on VirtualBox or KVM:

  1. Log into your vSphere Client and select Create / Register VM.
  2. Choose Create a new virtual machine, name it Photon-OS.
  3. Select compatibility (ensure ESXi version matches or exceeds requirements).
  4. Guest OS Family: Linux Guest OS Version: Other 3.x or later Linux (64-bit).
  5. Assign resources (see table above).
  6. Under CD/DVD Drive, connect to the downloaded Photon ISO.
  7. Finish wizard and power on the VM.

Step 3: Install Photon OS

3.1 Boot Menu

When the VM boots, you’ll see a GRUB menu:

  • PhotonOS: Default—quiet boot.
  • PhotonOS (USB installer): If you’re on a physical machine.
  • Press Enter on the default entry (or edit for custom kernel args).

3.2 Language, Keyboard, and Networking

  1. Select your language (English, Español, Klingon—okay, maybe not Klingon).
  2. Choose keyboard layout. Default is US English.
  3. Set network configuration:
    • DHCP (recommended for lab environments).
    • Static (enter IP, gateway, DNS manually).

3.3 Disk Partitioning

Photon offers two partitioning schemes:

  • Automatic: Photon creates optimal root and swap partitions.
  • Custom: You can slice and dice your volumes—LVM included.

For simplicity, let’s go Automatic. If you love living dangerously, choose Custom and create separate partitions for /var or /opt.

3.4 User Accounts and Root Password

  1. Set root password (don’t forget it—no “Forgot Password” link here).
  2. Create an optional normal user:
    • Username
    • Password
    • Grant sudo privileges (recommended).

3.5 Begin Installation

Review your settings and confirm. The installer will copy files, configure packages, and print occasional progress bars. Grab a coffee—this takes only a few minutes.

Step 4: First Boot and Post-Install Configuration

4.1 Reboot and Remove ISO

The installer finishes, prompts for reboot—remove the ISO from the virtual drive so you don’t boot into the installer again. Press Reboot.

4.2 Login

At the console, log in as root (or your created user). Let’s make sure everything is up-to-date:

tdnf update -y

Note: tdnf is Photon’s Tiny Dandified Yum. It’s like yum, but smaller, faster, and can juggle flaming torches (maybe).

4.3 Enabling SSH (Optional but Practical)

  1. Edit /etc/ssh/sshd_config if you want to disable password login or change the port.
  2. Start and enable SSH:
    systemctl enable sshd
    systemctl start sshd
          
  3. Verify:
    systemctl status sshd

You should now be able to SSH into Photon OS from your workstation.

Step 5: Installing Docker and Kubernetes Tools

Photon OS shines for container workloads. Let’s get Docker and kubelet:

tdnf install -y docker docker-client kubernetes-kubelet kubeadm kubectl
  1. Enable Docker:
    systemctl enable docker
    systemctl start docker
          
  2. Verify Docker:
    docker version

For a quick test:

docker run --rm hello-world

Step 6: Security Hardening (Because We’re Serious)

Photon OS comes with some defaults, but let’s lock it down:

6.1 Enable SELinux

  1. Edit /etc/selinux/config:
    SELINUX=enforcing
  2. Reboot to apply SELinux changes.

6.2 Firewall (Photon ships with iptables/nft by default)

tdnf install -y iptables
systemctl enable iptables
systemctl start iptables

Basic rule to allow SSH:

iptables -A INPUT -p tcp --dport 22 -j ACCEPT

Step 7: Updating Photon OS

Keep it fresh and secure:

tdnf update -y  reboot

Consider automating updates with a cron job or an external management tool.

Troubleshooting Tips

  • No Network? Check /etc/systemd/network configuration, reboot systemctl restart systemd-networkd.
  • Package Not Found? Verify your repositories in /etc/yum.repos.d/photon.repo. Use tdnf repolist.
  • SELinux Denials? Check /var/log/audit/audit.log and use audit2allow.

Conclusion

Congratulations! You’ve triumphantly installed Photon OS. You now have a nimble, secure, container-optimized Linux platform that’s perfect for microservices, DevOps pipelines, and even your pet AI chatbot—if it pledges allegiance to tiny footprints. Keep exploring:

Now go forth and containerize the world—just don’t forget to send a postcard from the lightweight land of Photon OS!

Official Website of Photon OS

Download TXT




Leave a Reply

Your email address will not be published. Required fields are marked *