Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Sorecchione07435/d9397ac1d4e17c28da1c4a173164c3aa to your computer and use it in GitHub Desktop.

Select an option

Save Sorecchione07435/d9397ac1d4e17c28da1c4a173164c3aa to your computer and use it in GitHub Desktop.
How to upload Windows Server 2012 R2 image to OpenStack Hyper-V

How to upload Windows Server 2012 R2 image to OpenStack Hyper-V

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

Downloading the Windows Server 2012 R2 Image

first of all go to this web page: https://cloudbase.it/windows-cloud-images/#download

a1

accept the EULA and the recaptcha and then you should see the downloads

a2

Click on "Microsoft Hyper-V" to download the image in vhdx format compatible with the Hyperv hypervisor

Uploading the image to OpenStack

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

a3

Well that's all now you will be able to launch new Windows Server 2012 R2 instances!

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