You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO Checking if user is part of libvirt group
WARN Preflight checks failed during `crc start`, please try to run `crc setup` first in case you haven't done so yet
Failed to get the groups user 'lars' belongs to
This appears to be caused by building crc with CGO_ENABLED=0. You
can reproduce the problem yourself with this code:
package main
import (
"fmt""log""os/user"
)
funcmain() {
currentUser, err:=user.Current()
iferr!=nil {
log.Printf("user.Current() failed: %v", err)
return
}
gids, err:=currentUser.GroupIds()
iferr!=nil {
log.Printf("Failed to get the groups user '%s' belongs to", currentUser.Username)
return
}
fmt.Printf("gids: %s\n", gids)
}
$ CGO_ENABLED=0 go build
$ ./example
2022/01/05 15:15:59 Failed to get the groups user 'lars' belongs to
Logs
With --log-level debug, the relevant logs are:
INFO Checking if user is part of libvirt group
DEBU Checking if current user is part of the libvirt group
DEBU Failed to get the groups user 'lars' belongs to
WARN Preflight checks failed during `crc start`, please try to run `crc setup` first in case you haven't done so yet
Failed to get the groups user 'lars' belongs to
The text was updated successfully, but these errors were encountered:
General information
crc setup
before starting it (Yes/No)? YesCRC version
CodeReady Containers version: 1.99.0+c9e2be01 OpenShift version: 4.9.10 (not embedded in executable)
CRC status
CRC config
Host Operating System
Steps to reproduce
Successfully run
crc setup
Attempt to start crc with
crc start
Watch crc fail with:
This appears to be caused by building crc with
CGO_ENABLED=0
. Youcan reproduce the problem yourself with this code:
With CGO enabled:
With CGO disabled:
Logs
With
--log-level debug
, the relevant logs are:The text was updated successfully, but these errors were encountered: