Crc: Latest CRC setup fails

Created on 2 Jun 2020  Â·  4Comments  Â·  Source: code-ready/crc

I'm running Ubuntu 18.04. I had been using CRC 1.10 then ran into the cert renewal issue yesterday. Reverted to 1.8 yesterday but had other issues. Noticed today that a new version (1.11) is available and downloaded and extracted:

$ ls -l
total 17003000
-rwxrwxr-x 1 eace eace 2195573725 May 31 23:55 crc
-rw-rw-r-- 1 eace eace 2179670828 Jun  2 12:38 crc-linux-amd64.tar.xz

Before downloading, I removed the 1.8 VM with crc delete. Then:

$ ./crc version
crc version: 1.11.0+883ca49
OpenShift version: 4.4.5 (embedded in binary)

Then:

$ ./crc setup --log-level=debug
INFO Checking if oc binary is cached              
DEBU oc binary already cached                     
INFO Checking if podman remote binary is cached   
DEBU Currently podman remote is not supported     
INFO Checking if goodhosts binary is cached       
DEBU goodhost binary already cached               
DEBU /home/eace/.crc/bin/goodhosts does not have the SUID bit set (-r-x------) 
INFO Caching goodhosts binary                     
DEBU goodhost binary cached                       
DEBU Making /home/eace/.crc/bin/goodhosts suid    
INFO Will use root access: change ownership of /home/eace/.crc/bin/goodhosts 
DEBU Running '/usr/bin/sudo chown root:wheel /home/eace/.crc/bin/goodhosts' 
DEBU Command failed: exit status 1                
DEBU stdout:                                      
DEBU stderr: chown: invalid group: ‘root:wheel’   
FATA Unable to set ownership of /home/eace/.crc/bin/goodhosts to root:wheel:  exit status 1: chown: invalid group: ‘root:wheel’ 

So:

$ mv /home/eace/.crc/bin/goodhosts /home/eace/.crc/bin/goodhosts.save
eace@ubuntu-desktop:~/codeready$ ./crc setup --log-level=debug
INFO Checking if oc binary is cached              
DEBU oc binary already cached                     
INFO Checking if podman remote binary is cached   
DEBU Currently podman remote is not supported     
INFO Checking if goodhosts binary is cached       
DEBU goodhost binary is not cached                
INFO Caching goodhosts binary                     
DEBU Trying to extract oc from crc binary         
DEBU Extracting embedded 'goodhosts-cli-linux-amd64.tar.xz' from /home/eace/codeready/crc to /tmp/crc468885978/goodhosts-cli-linux-amd64.tar.xz 
DEBU Uncompressing /tmp/crc468885978/goodhosts-cli-linux-amd64.tar.xz to /tmp/crc468885978 
DEBU Copying '/tmp/crc468885978/goodhosts' to '/home/eace/.crc/bin/goodhosts' 
DEBU goodhost binary cached                       
DEBU Making /home/eace/.crc/bin/goodhosts suid    
INFO Will use root access: change ownership of /home/eace/.crc/bin/goodhosts 
DEBU Running '/usr/bin/sudo chown root:wheel /home/eace/.crc/bin/goodhosts' 
DEBU Command failed: exit status 1                
DEBU stdout:                                      
DEBU stderr: chown: invalid group: ‘root:wheel’   
FATA Unable to set ownership of /home/eace/.crc/bin/goodhosts to root:wheel:  exit status 1: chown: invalid group: ‘root:wheel’ 

Can you offer some guidance? Thanks

Most helpful comment

If you have urgency and want to solve this problem in Ubuntu or Debian or Kali, just run
sudo groupadd wheel

All 4 comments

I'm seeing the exact same issue. Just downloaded the crc binary today. Why is wheel group hardcoded?

crc version
crc version: 1.11.0+883ca49
OpenShift version: 4.4.5 (embedded in binary)
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic
grep wheel /etc/group | wc -l
0

I had issues with 1.10 failing to renew certs on a fresh start so had to rollback to 1.9.0 to get back up and running.

If you have urgency and want to solve this problem in Ubuntu or Debian or Kali, just run
sudo groupadd wheel

Thank you marcelomrwin, It works. but after that I am getting "FATA You need to enable virtualization in BIOS. can you help". How can I solve this?

Was this page helpful?
0 / 5 - 0 ratings