If any kubectl or oc command replies with
Error from server: the server has asked for the client to provide credentials
Execute:
[vagrant@rhel-cdk kubernetes]$ oc login -u openshift-dev -p devel
When your Windows username contains a space, vagrant will give the following message:
The directory where plugins are installed (the Vagrant home directory) has a space in it. On Windows, there is a bug in Ruby when compiling plugins into directories with spaces. Please move your Vagrant home directory to a path without spaces and try again.
The workaround is set the vagrant home in other folder that doesn’t contain spaces. You can do that with the following command:
C:\> set VAGRANT_HOME=C:\