MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Complete Tutorial: Use Two GitHub Accounts on One Mac with SSH

This tutorial explains how to configure two GitHub accounts on the same MacBook using separate SSH keys, without repeatedly switching accounts or breaking your existing Git configuration….

Read More

How to Install and Configure pre-commit on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install and Configure pre-commit on Mac, Windows & Linux (2026) Meta Description: Learn how to install and configure pre-commit Git hooks on macOS,…

Read More

How to Install Datadog CLI on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install Datadog CLI on Mac, Windows & Linux – Complete 2026 Tutorial Meta Description: Learn how to install Datadog Pup CLI and Datadog…

Read More

How to Install GitHub CLI (gh) on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install GitHub CLI (gh) on Mac, Windows & Linux – 2026 Guide Meta Description: Learn how to install GitHub CLI (gh) on macOS,…

Read More

How to Install MongoDB Atlas CLI on Mac, Windows, and Linux: Complete Step-by-Step Tutorial

SEO Title: Install MongoDB Atlas CLI on macOS, Windows & Linux – Complete Guide Meta Description: Learn how to install MongoDB Atlas CLI on macOS, Windows, Ubuntu,…

Read More

How to Install Confluent CLI on macOS, Windows, and Linux: Complete Step-by-Step Guide

Meta Title: How to Install Confluent CLI on Mac, Windows & Linux (2026) Meta Description: Learn how to install and configure Confluent CLI on macOS, Windows, Ubuntu,…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Jason Mitchell
Jason Mitchell
4 months ago

A worthwhile topic to expand on is the practical limitations of OpenShift Local when compared to a full OpenShift cluster. Although it is well suited for development, experimentation, and application testing, its single-node setup cannot accurately represent scenarios involving high availability, workload distribution, persistent storage behavior, or cluster upgrade processes. Including recommendations for optimizing resource usage on developer machines, handling image storage efficiently, and incorporating OpenShift Local into automated testing workflows would help readers better understand where it fits within the broader application delivery lifecycle.

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