crc: CRC fails to start - Not able to get csr names

When I try to start the CRC on a linux (nested virt), I get the following error:

[cloud-user@tsedmik-rhel76 ~]$ ./crc start -b crc_libvirt_4.1.3.tar.xz
...
INFO Access the OpenShift web-console here: https://console-openshift-console.apps-crc.testing
INFO Login to the console with user: kubeadmin, password: ehbg7-zu5i6-JKt7V-PvJsm

ERRO Error approving the node csr Not able to get csr names (exit status 1 : The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 27 (16 by maintainers)

Most upvoted comments

**Unable to connect to the server: dial tcp: lookup api.crc.testing: no such host**
**Error approving the node csr Not able to get csr names**

This solution worked for me on Centos 7 after crc delete, and you can just add the IP address before using crc start.

You should add virtual machine ip to /etc/hosts file. Example; 192.168.130.11 api.crc.testing 192.168.130.11 oauth-openshift.apps-crc.testing 192.168.130.11 console-openshift-console.apps-crc.testing

You may need to restart or reboot your machine. Source: https://medium.com/@trlogic/how-to-setup-local-openshift-4-cluster-with-red-hat-codeready-containers-6c5aefba72ad