Closed moritzfl closed 4 months ago
yeah indeed this can be replicated consistently
PS C:\Users\MoritzFlöter> crc setup --log-level debug
DEBU CRC version: 2.37.1+36d451
DEBU OpenShift version: 4.15.14
DEBU Running 'crc setup'
INFO Using bundle path C:\Users\MoritzFlöter\.crc\cache\crc_hyperv_4.15.14_amd64.crcbundle
INFO Checking minimum RAM requirements
DEBU Total memory of system is 34358562816 bytes
INFO Check if Podman binary exists in: C:\Users\MoritzFlöter\.crc\bin\oc
INFO Checking if running in a shell with administrator rights
DEBU Running '$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent());$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)'
INFO Checking Windows release
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
INFO Checking Windows edition
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
DEBU Running on Windows Enterprise edition
INFO Checking if Hyper-V is installed and operational
DEBU Running '@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent'
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if Hyper-V service is enabled
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if crc-users group exists
DEBU Running 'Get-LocalGroup -Name crc-users'
INFO Checking if current user is in crc-users and Hyper-V admins group
DEBU Running '(Get-LocalGroupMember -Group 'crc-users').Name'
DEBU Checking current user is in the 'crc-user' group
DEBU group members: maptba4a3dfd\MoritzFl�ter
DEBU Could not find: moritzflöter in the 'crc-users' group
INFO Adding logon user to crc-users and Hyper-V admins group
INFO Will run as admin: adding current user to crc-users and Hyper-V admins group
DEBU Running 'C:\Users\MoritzFlöter\AppData\Local\Temp\crcScripts3862165135\runAsAdmin.ps1'
Please reboot your system and run 'crc setup' to complete the setup process
I fixed a similar issue several years ago https://github.com/crc-org/crc/commit/b00ee5b2e15f0d628bd4c03ee8acdb8d65cfb9c0
https://github.com/crc-org/crc/blob/25b6eb96fdf3ecb50ff8e156a8a3581b95bf5e60/pkg/crc/preflight/preflight_checks_windows.go#L160-L167 the function adding the user is also using powershell.ExecuteAsAdmin
which should add the utf-8 BOM
Hi @moritzfl could you please try out the installer from https://github.com/crc-org/crc/actions/runs/9789510458/artifacts/1666812981 and verify if it fixes the issue, thanks!
@anjannath seems to work fine. Thanks for the fix!
@anjannath seems to work fine. Thanks for the fix!
thanks very much for testing it! we'll try to include this in the next release
General information
crc setup
before starting it?: YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
A user in the crc-users group is created and recognized as such by crc.
Actual
A user in the crc-users group is created but not recognized as such by crc.
Logs