Configuring your Windows environment for use with OpenStack requires a little more effort – but the basic premise remains: we're configuring our desktop so that it has access to environment variables, as well as ensuring that our tools, written in Python, are able to execute properly.
The following applies to Windows 10. Ensure that you have followed the steps to install Python.
Carry out the following to load the required environment variables into your Windows session:
C:UsersUsernameOpenStack
):mkdir OpenStack cd OpenStack wget https://raw.githubusercontent.com/OpenStackCookbook/vagrant-openstack/master/Source-OpenRC.ps1 -UseBasicParsing -OutFile Source-OpenRC.ps1
openrc
to match the following example and execute the following in PowerShell:.Source-OpenRC.ps1 .openrc
Warning: You may get an error executing the PowerShell script. Most Windows 10 desktops appear to have a default policy of restricted, which excludes the running of PowerShell scripts that aren't signed – even the ones you have created yourself. To remove this for this session, execute the following and acknowledge the warning:
Set-ExecutionPolicy –ExecutionPolicy RemoteSigned Unrestricted -Scope CurrentUser
Configuring your Windows environment is a little more involved than it is for Unix/Linux environments. We have to have a mechanism for loading environment variables into our shell that isn't a native feature of Windows. We do this using a PowerShell script. However, we have to remove a restriction to allow this to work. Once we have this all set up correctly, we are able to use the OpenStack environment from our Windows desktop.
18.118.27.119