Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

OpenShift Install & Configurations using OpenShift Local in Linux laptops/desktops

Here is the correct and updated step-by-step guide to install and configure OpenShift Local (formerly CRC – CodeReady Containers) on Linux laptops/desktops for local development and testing.


🐧 OpenShift Local on Linux – Overview

FeatureDescription
Product NameOpenShift Local (formerly CodeReady Containers – CRC)
CLI Tool Namecrc
Cluster TypeSingle-node OpenShift 4.x cluster
VirtualizationUses QEMU/KVM + libvirt
Ideal ForDevelopers testing OpenShift workloads locally

āœ… System Requirements

RequirementValue
OSFedora, RHEL, CentOS, Ubuntu, Debian
CPUMin 4 cores
RAMMin 9 GB (16 GB recommended)
Disk SpaceMin 35+ GB free
VirtualizationKVM/QEMU enabled, libvirt installed
Pull SecretRequired from Red Hat account

🧰 Step 1: Install Required Packages

šŸ”¹ Fedora / RHEL / CentOS:

sudo dnf install @virtualization libvirt libvirt-daemon-kvm qemu-kvm
sudo systemctl enable --now libvirtd
sudo usermod -a -G libvirt $(whoami)
Code language: JavaScript (javascript)

šŸ”¹ Ubuntu / Debian:

sudo apt update
sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
sudo systemctl enable --now libvirtd
sudo usermod -aG libvirt $(whoami)
Code language: JavaScript (javascript)

šŸ” Logout and re-login to apply group changes.


šŸ“„ Step 2: Download OpenShift Local (CRC) & Pull Secret

  1. Visit: https://console.redhat.com/openshift/create/local
  2. Sign in or register with a free Red Hat account.
  3. Download:
    • Linux CRC archive (e.g. crc-linux-amd64.tar.xz)
    • Pull Secret and save it as pull-secret.txt

šŸ“¦ Step 3: Install the crc Binary

tar -xvf crc-linux-*.tar.xz
sudo mv crc-linux-*/crc /usr/local/bin/crc
Code language: JavaScript (javascript)

Check the version:

crc version

šŸ”§ Step 4: Setup the Cluster

crc setup --pull-secret ~/Downloads/pull-secret.txt
Code language: JavaScript (javascript)

Replace the path to the actual location of your pull secret.


ā–¶ļø Step 5: Start the OpenShift Cluster

crc start
  • This initializes and boots the OpenShift VM
  • Takes 5–15 minutes to fully start

🌐 Step 6: Access the Web Console

After the cluster starts, it will output a URL like:

https://console-openshift-console.apps-crc.testing
Code language: JavaScript (javascript)

Login Credentials:

RoleUsernamePassword
AdminkubeadminPrinted in terminal output
Developerdeveloperdeveloper

Open the URL in your browser and login using the credentials.


🧪 Step 7: Use the OpenShift CLI

Configure CLI access:

eval $(crc oc-env)
Code language: JavaScript (javascript)

Login via CLI:

oc login -u developer -p developer https://api.crc.testing:6443
Code language: JavaScript (javascript)

You can now deploy workloads, create namespaces, and test apps locally.


šŸ” Cluster Management Commands

ActionCommand
Stop clustercrc stop
Delete clustercrc delete
Check statuscrc status

āš ļø Common Issues & Fixes

IssueFix
libvirt permission errorsEnsure you are in the libvirt group (groups command)
DNS resolution failsDisable VPN or firewall; restart NetworkManager
CRC start fails with bundle errorUse latest CRC version from Red Hat site
No CRC commandReboot OR ensure /usr/local/bin is in your PATH

šŸ“Ž Notes

  • CRC installs a single-node OpenShift cluster optimized for development.
  • It’s not meant for production or multi-node use.
  • Automatically sets up a VM using libvirt with a .crc domain.

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x