If you followed the previous guide on how to deploy an OpenStack environment on Hyper-V, this guide shows you how to upload the Windows Server 2012 R2 image available from Cloudbase Solutions
first of all go to this web page: https://cloudbase.it/windows-cloud-images/#download
accept the EULA and the recaptcha and then you should see the downloads
Click on "Microsoft Hyper-V" to download the image in vhdx format compatible with the Hyperv hypervisor
After downloading the image you will need to create a network share in the Downloads folder
Open a Powershell window as administrator and type the following command
New-SmbShare -Name Downloads -Path C:\Users\username\Downloads\
now log in to the OpenStack Controller and mount the directory
sudo su
mount //ipaddress/Downloads /mnt -o username=usernamehost,password=passwordhost
finally upload the image to Glance
source admin-openrc.sh
gunzip -cd /mnt/windows_server_2012_r2_standard_eval_hyperv_20170321.vhdx.gz | glance image-create --property hypervisor_type=hyperv --name "Windows Server 2012 R2 Std Eval" --container-format bare --disk-format vhd
And by accessing the OpenStack dashboard you will be able to see the image uploaded
Well that's all now you will be able to launch new Windows Server 2012 R2 instances!