Skip to content
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

ERRO Error running post start: Nameserver not successfully set #1256

Closed
csofiah opened this issue May 27, 2020 · 10 comments
Closed

ERRO Error running post start: Nameserver not successfully set #1256

csofiah opened this issue May 27, 2020 · 10 comments

Comments

@csofiah
Copy link

csofiah commented May 27, 2020

I have this problem when I try to config CRC in my PC Windows 10 Pro.
I run:
crc setup
crc start
and I obtain this error

INFO Loading bundle: crc_hyperv_4.4.3.crcbundle ...
INFO Checking size of the disk image C:\Users\usuario\.crc\cache\crc_hyperv_4.4.3\crc.vhdx ...
INFO Creating CodeReady Containers VM for OpenShift 4.4.3...
INFO CodeReady Containers VM is running
INFO Verifying validity of the cluster certificates ...
INFO Will run as admin: add dns server address to interface vEthernet (Modificador predeterminado)
ERRO Nameserver not successfully set
ERRO Error running post start: Nameserver not successfully set

Please I need to help for install the CRC. Thanks

@gbraad
Copy link
Contributor

gbraad commented May 28, 2020

INFO Will run as admin: add dns server address to interface vEthernet (Modificador predeterminado)
ERRO Nameserver not successfully set
ERRO Error running post start: Nameserver not successfully set

An UAC request will popup that needs to be confirmed. This sets the DNS for the Virtual Switch to point to the VM. We have concluded after this step that this failed.

@csofiah
Copy link
Author

csofiah commented May 28, 2020

Hello gbraad, sorry I don't understood your answer. How can I set the nameserver in CRC?

@gbraad
Copy link
Contributor

gbraad commented May 29, 2020

This should happen automatically with an UAC request: Administrator privileges are requested. Did you see a "Yes, allow" or "Cancel" dialog? If not, please re-run and confirm if this happens or not.

That will be requested at:

INFO Will run as admin: add dns server address to interface vEthernet (Modificador predeterminado)

@csofiah
Copy link
Author

csofiah commented May 29, 2020

No, I didn't see any dialog for this question, only show the log that I sent you. Exist some way to set de DNS for the Virtsual Switch?Thanks

@skabashnyuk
Copy link
Contributor

I got into the same trouble. The reason for that was that system configured not to ask the user additional questions in case if application wants to make some adjustments.

@SkylarScaling
Copy link

I also ran into this issue, and here's what I did to resolve it for anyone who wants to try:
crc stop
crc config set nameserver 8.8.8.8 (This may be unnecessary, but I did it because I had deleted my DNS settings for the Virtual Switch)
crc delete --clear-cache
crc delete
crc setup (This now prompted again for the UAC confirmation)
crc start

Hope this helps! Took me 2 days to get it working again!

@praveenkumar
Copy link
Member

I am hoping it is working now for reporter, since there is no more communication, closing this now.

@vyom-soft
Copy link

I also ran into this issue, and here's what I did to resolve it for anyone who wants to try:
crc stop
crc config set nameserver 8.8.8.8 (This may be unnecessary, but I did it because I had deleted my DNS settings for the Virtual Switch)
crc delete --clear-cache
crc delete
crc setup (This now prompted again for the UAC confirmation)
crc start

Hope this helps! Took me 2 days to get it working again!

I am also facing the same issue with the latest version of CRC.
CodeReady Containers version: 1.19.0+94b0362
OpenShift version: 4.6.3 (embedded in executable)

at the step crc setup No prompt came up.
crc start (this prompted UAC confirmation)
But it did not helped
level=info msg="Will run as admin: add dns server address to interface vEthernet (Default Switch)"
Error running post start: Nameserver 192.168.145.68 not successfully set on interface vEthernet (Default Switch)

@guillaumerose
Copy link
Contributor

@vyom-soft Last crc release introduced a new network mode that should solve your issue. Can you try it ? https://github.com/code-ready/crc/wiki/VPN-support--with-an--userland-network-stack Thanks.

@vyom-soft
Copy link

vyom-soft commented Dec 3, 2020

@vyom-soft Last crc release introduced a new network mode that should solve your issue. Can you try it ? https://github.com/code-ready/crc/wiki/VPN-support--with-an--userland-network-stack Thanks.

Thank you. I tried the latest crc with same steps as mentiond.
I get the following error:
error: dial tcp: lookup api.crc.testing: no such host - verify you have provided the correct host and port and that the server is currently running.
$crc status
CRC VM: Running
OpenShift: Degraded (v4.6.3)
Disk Usage: 12.53GB of 32.72GB (Inside the CRC VM)
Cache Usage: 17.53GB
Cache Directory: C:\Users\don\.crc\cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants