Difference between revisions of "Getting started with CRC"
(12 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
crc requires at least 9.664GB to run<br> | crc requires at least 9.664GB to run<br> | ||
This was on a Red Hat virtual machine with only 8G of RAM<br> | This was on a Red Hat virtual machine with only 8G of RAM<br> | ||
+ | <br> | ||
+ | The above was an attempt with a Linux system, looks like we will have to try WSL2 on Windows as, for me, that system has a lot more memory, lets see how it goes.<br> | ||
+ | '''Cancel that,''' I've managed to add virtual memory to the ESXi Red Hat vm so we can have another go<br> | ||
+ | Well, now I need to add space to the disk - '''"no space left on device"'''<br> | ||
+ | [[File:red_hat_expand_disk.png]]<br> | ||
+ | Now we can try again, this time everything works <br> | ||
+ | View[[ The output from "crc setup" ]] <br> | ||
+ | [[ View the output from "crc start"]] It failed to start <br> |
Latest revision as of 11:50, 15 February 2024
Prerequisites: you need to have a platform with working virtulisation eg KVM.
Reference: https://www.redhat.com/sysadmin/codeready-containers
Reference: https://www.okd.io/ (The OKD version)
Red Hat CodeReady Containers (CRC) provides a minimal, preconfigured OpenShift 4 cluster on a laptop or desktop machine for development and testing purposes. CRC is delivered as a platform inside of the VM.
"crc" is a binary file which is run like ./crc
By default the "crc" downloaded from Red Hat is configured to require a "pull-secret". We can configure it to nor require this by switching it to the OKD version as follows:
./crc config view to view the most important settings
./crc config set preset okd (switch to OKD version)
./crc config set consent-telemetry no (stop telemetry)
./crc --help (to see help) eg
./crc config --help
The first step is to run "./crc setup"
In my case we get the following error:
INFO Checking minimum RAM requirements
crc requires at least 9.664GB to run
This was on a Red Hat virtual machine with only 8G of RAM
The above was an attempt with a Linux system, looks like we will have to try WSL2 on Windows as, for me, that system has a lot more memory, lets see how it goes.
Cancel that, I've managed to add virtual memory to the ESXi Red Hat vm so we can have another go
Well, now I need to add space to the disk - "no space left on device"
Now we can try again, this time everything works
View The output from "crc setup"
View the output from "crc start" It failed to start