Install prerequisites:
sudo apt update
sudo apt-get install -y qemu-kvm libvirt-daemon libvirt-daemon-system bridge-utils virt-manager virtiofsd
Navigate to OpenShift Local Homepage - login and download crc, usually it is placed in ~/Downloads
mkdir -p $HOME/local/bin
tar xvf crc-linux-amd64.tar.xz
mv crc-linux-2.51.0-amd64/crc ~/local/bin/
echo "export PATH=$HOME/local/bin:/usr/sbin/:$HOME/.crc/bin/oc/:$PATH:" >> $HOME/.bashrc
And re-login - your user should be in libvirt group.crc setup
Set additional configuration:
# CPU
crc config set cpus 8
# Memory
crc config set memory 14786
# VM disk size
crc config set disk-size 50
# Enable monitoring
crc config set enable-cluster-monitoring true
Try to start the virtual machine:
crc start
Paste the secret.crc console --credentials
To be able to run oc - issue:
eval $(crc oc-env)
Login as kubeadmin or developer like this:
oc login -u kubeadmin https://api.crc.testing:6443
oc login -u developer https://api.crc.testing:6443
Open the OpenShift CRC console in browser:
crc console