Skip to content

Instantly share code, notes, and snippets.

CodeReady Containers

Configuring CRC

$ ./crc config set consent-telemetry yes
$ ./crc config set disable-update-check false
# fetch etcd client credentials
FILES='
/etc/kubernetes/static-pod-resources/configmaps/etcd-serving-ca/ca-bundle.crt
/etc/kubernetes/static-pod-resources/secrets/etcd-client/tls.crt
/etc/kubernetes/static-pod-resources/secrets/etcd-client/tls.key
'
APISERVER_POD=$(oc get pod --namespace openshift-kube-apiserver --selector apiserver=true --output jsonpath='{.items[0].metadata.name}')

The CDROM ISO image is in LOCKED status. ssh to the RHEV Engine VM and unlock the particular disk:

/usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t disk 6032270c-1cf7-4050-af4a-e903dd94b727

Unlock all objects:

/usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh -t all

After RHVH restart, the RHEV Engine VM doesn't come up. SSH to RHVH:

Install GRUB modules for BIOS and EFI:

yum install grub2-pc-modules grub2-efi-x64-modules

Install xorriso and mtools rpms that are used by grub2-mkrescue while creating the ISO image:

yum install xorriso mtools