Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Best DevOps Tools in 2024

hereโ€™s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. ๐Ÿš€ Best DevOps Tools…

Read More

OpenShift Tutorial โ€“ Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLIย oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Jason Mitchell
Jason Mitchell
17 days 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