Skip to main content

Enabling OKD 4.15 on Fedora 40

I'm using the tutorial from this OKD on Fedora Workstation with CRC article.

I skipped the first command because my KDE Spin already got a Network Manager. Later I found out that the CRC will install them when missing.

The command I followed:

wget https://developers.redhat.com/content-gateway/rest/mirror2/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
tar xvfJ crc-linux-amd64.tar.xz -C /tmp/
install /tmp/crc-linux-*-amd64/crc ~/.local/bin/crc

At the time of writing, CRC is on version 2.37.1. And I have added my ${HOME}/.local/bin to my PATH in .bashrc

Next setup:

crc config set consent-telemetry no
crc config set preset okd
crc setup
crc start
This part I get this error:
...
INFO Loading bundle: crc_okd_libvirt_4.15.0-0.okd-2024-02-23-163410_amd64... 
INFO Creating CRC VM for OKD 4.15.0-0.okd-2024-02-23-163410... 
INFO Generating new SSH key pair...               
INFO Generating new password for the kubeadmin user 
INFO Starting CRC VM for okd 4.15.0-0.okd-2024-02-23-163410... 
INFO CRC instance is running with IP 192.168.130.11 
INFO CRC VM is running                            
INFO Updating authorized keys...                  
INFO Configuring shared directories               
Error running post start: Executing systemctl action failed:  ssh command error:
command : sudo systemctl enable dnsmasq.service
err     : Process exited with status 1
: Failed to enable unit: Unit file /etc/systemd/system/dnsmasq.service is masked.

A user, mlei, commented to manually remove the masking inside of the crc host. Here's how to do it:

ssh core@192.168.130.11 -i ~/.crc/machines/crc/id_ecdsa -i ~/.crc/cache/crc_okd_libvirt_4.15.0-0.okd-2024-02-23-163410_amd64/id_ecdsa_crc  "sudo systemctl unmask dnsmasq"

And then, restart OKDL

crc stop
crc start

And the component started as usual.

Comments