-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start CRC on windows #4639
Comments
|
@albfan Is it first time you try crc or it work before? Yes first time . Now i am getting this error : |
Now i ran this and getting below error even i run the crc setup already in a shell without admin rights as well
|
the issue seems to be that PS> ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new("S-1-5-32-578")))
PS> (Get-LocalGroupMember -SID 'S-1-5-32-578').Name
PS> [Security.Principal.WindowsIdentity]::GetCurrent() |
|
"S-1-5-32-578" is the Hyper-V Administrator group See "Hyper-V Administrators": So from your output your user is not in on that group Hyper-V Administrators Your user cannot get elevated permissions needed, and running as Administrator is not allowed You need to be included in that group. Is supposed crc installation does that for you: https://github.com/crc-org/crc/blob/main/packaging/windows/product.wxs.template#L91 You might try to reinstall and check those PS commands again. That's why we ask for restart before running crc Let us know if that works and close the issue |
@albfan Which PS command you are talking about . Please share the exact steps to install/uninsatll CRC .. |
But is something crc installer will do for you. You need to restart after that so your user reload its groups so you can run crc allowing it to do some stuff related to hyper-v Did you install crc using this installer: |
Yes . i am using same link and then downalod from there (https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/crc-windows-installer.zip) . Install it -->restart the laptop--> then run crc setup command
I checked in computer management-> Groups-> Hyper-V admin --> my user is listed there ..so you are right crc installation automatically added my user in Hyper-V admin group ..but why crc start command is not running properly @albfan |
One more query .if we successfully able to install this openshit local on my ocal laptop .can i instal oadp operator on this local ocp cluster and do data backup and recovery ? Is openshift local has that much of functionality to do these pocs? |
This are the 2 checks done: User being Hyper-V Administrator:
User being Administrator:
So probably you need to be in Administrator group, but not Administrator About OADP, yes it is available and you can install it |
My id is added in both group . please check This entry is added by CRC installer internally . Confused what is left ..Please suggest and let me know if you need more info for more debugging from my end @albfan Thanks for your quick reply and support ... |
@kansal-mukul my guess is that you are being assigned a different username (in the form we can verify if this is the case by checking if the following commands all return the same PS> (Get-LocalGroupMember -SID 'S-1-5-32-578').Name
GL0W7R3\10726982
PS> whoami
PS> ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).Name if possible could you please run these commands in both the domain connected and disconnected scenarios |
@anjannath Connected network : What do you mean disconnected ? is this without internet ? |
from the output of those commands it seems the user that is added to the hyper-v admins group is can you add this
by this i mean when you are not able to reach the corporate domain controller to authenticate, and using your machine with the local user account |
@kansal-mukul thanks for sharing those outputs, could you please try to add the |
@anjannath @albfan Please let me know once this will be fixed ..IN the mean time i am trying from my end whatever suggestion u gave me above |
Can we suppress the message |
This is the actual error currently coming from powershell when i ran crc start command : Error creating machine: error with pre-create check: Hyper-v commands have to be run as an Administrator |
@kansal-mukul crc installation try to do its best, but if finally:
is not in hyper-v administrators:
You need to fix that manually as the error message suggest PS: Please copy command output in text so we can search on your replies |
@albfan Now i am getting this error while running crc start command:
|
Yes, this is a windows config known error: https://www.revove.com/blog/fix-hyper-v-failed-to-change-state-with-error-code-32788/ You need to fix on your own |
this means also: "a user from the Hyper-V Administrators". Seems like this is not the case. The create could fail when the resources for running the VM is not sufficient. This might explain the 32788 (COM error, that we did not used to have with powershell). Can you create another VM from the Manager tool and see if this works? What might lead to the failure could be:
|
General information
crc setup configure successfully .
when i run crc start , it showing me "INFO Creating CRC VM for OpenShift 4.17.14...
Error creating machine: error with pre-create check: Hyper-v commands have to be run as an Administrator"
Operating System
Windows
Hypervisor
Hyper-V
Did you run
crc setup
beforecrc start
?no
Running on
Laptop
Steps to reproduce
CRC version
CRC status
CRC config
Host Operating System
Expected behavior
Its should start the CRC on local
Actual behavior
CRC Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: