"crc oc-env" returns "Only supported with OpenShift bundles"

Latest response

I am trying to get CRC working on a RHEL 8.5 environment.

`[rob@localhost ~]$ hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 86ff0c49cfc64a1799a8de93e0a9687b
           Boot ID: b3640620cfd04cfda9ee83f5f9270242
    Virtualization: oracle
  Operating System: Red Hat Enterprise Linux 8.5 (Ootpa)
       CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos
            Kernel: Linux 4.18.0-348.20.1.el8_5.x86_64
      Architecture: x86-64
[rob@localhost ~]$ `

The environment is running in a Virtualbox vm on a windows 10 PC.

The "crc start " log is in the attached text file.

after running the crc start I then try and run "crc oc-env" but I get this error

[rob@localhost ~]$ crc oc-env
Only supported with OpenShift bundles

Does anyone know what is going wrong and how to fix it ?





[rob@localhost ~]$ crc version
CodeReady Containers version: 2.0.1+bf3b1a6
OpenShift version: 4.10.3
Podman version: 3.4.4
[rob@localhost ~]$ crc status
CRC VM:          Running
Podman:          3.4.4
Disk Usage:      1.837GB of 32.74GB (Inside the CRC VM)
Cache Usage:     2.433GB
Cache Directory: /home/rob/.crc/cache
[rob@localhost ~]$ 
[rob@localhost ~]$  crc config view
- consent-telemetry                     : yes
- preset                                : podman
[rob@localhost ~]$ 
[rob@localhost ~]$  sudo virsh net-list
[sudo] password for rob: 
 Name      State    Autostart   Persistent
 crc       active   yes         yes
 default   active   yes         yes

[rob@localhost ~]$ 
[rob@localhost ~]$ sudo systemctl status dnsmasq -l
● dnsmasq.service - DNS caching server.
   Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[rob@localhost ~]$ virsh domiflist crc
error: failed to get domain 'crc'

[rob@localhost ~]$ virsh list --all
 Id   Name   State

[rob@localhost ~]$ sudo virsh list --all
 Id   Name   State
 4    crc    running

[rob@localhost ~]$ sudo virsh domiflist crc
 Interface   Type      Source   Model    MAC
 vnet3       network   crc      virtio   52:fd:fc:07:21:82

[rob@localhost ~]$ crc ip

I have the same problem after installation of the latest installation of the crc-linux-amd64. I installed it locally on RedHat 8.5, following the installation instructions here, https://access.redhat.com/documentation/en-us/red_hat_openshift_local/2.2/html/getting_started_guide/index. When running the crc start command everything seems to be ok, but when I do the crc console or crc console --credentials I get the response " Only supported with OpenShift bundles"

Same issue as Peter Nilsson mentioned,

[student@master crc-linux-2.2.2-amd64]$ ./crc oc-env Only supported with OpenShift bundles [student@master crc-linux-2.2.2-amd64]$

I had that problem. Problem was resolved by switch from podman to openshift: crc config set preset openshift crc delete crc setup crc start

Hello, Is there an update on this issue, I have the same problem on mac OS (M1). The solution from Martin to use:

crc config set preset openshift

Return that the config "preset does not exist" And indeed my config view return:

crc config view
- consent-telemetry                     : no

The same with @victor. Any supports?

Hey all. I dug into the release notes for OpenShift Local (CRC 2.5) and discovered the following:

The OpenShift Container Platform preset is not supported on the M1 architecture.

Hey, does anyone have updates regarding crc console on M1?

Thank you @Martin Willingham that worked for me (on PC thou, best of luck for you M1s :))