Last week I presented at OpenStack Day Seattle – and did a short demonstration of OpenStack managing Hyper-V.
Today I want to show you how to get a basic OpenStack + Hyper-V deployment up and running quickly.
The process is as follows:
- Install Windows Server 2012 R2 / Windows Server 2016 TP3 on a physical computer
- Enable the Hyper-V role, and configure virtual networking to your preference
- Make sure your current user is a member of the Hyper-V administrators group
- Make sure you have a block of “public IP addresses” available for your network
- Download V-Magine (from http://www.cloudbase.it/v-magine/)
- Run V-Magine
- Answer the questions that you are asked
- Go get a coffee (or two)
- Download the Windows Server 2012 R2 evaluation cloud image (from http://www.cloudbase.it/windows-cloud-images/)
- Setup a network share – I use PowerShell to do this by running the following commands (substitute paths and names as appropriate):
new-smbshare -name CloudBase -path C:\CloudBase
Set-netfirewallrule -DisplayGroup “File and Printer Sharing” -Enabled True
- Login to the OpenStack controller virtual machine with the username “root” and the password you provided while installing V-Magine.
- Run the following commands inside the virtual machine:
mount //192.168.2.36/CloudBase /mnt -o username=benjamin,password=P@ssw0rd
gunzip -cd /mnt/windows_server_2012_r2_standard_eval_hyperv_20140530.vhdx.gz | glance image-create --property hypervisor_type=hyperv --name "Windows Server 2012 R2 Eval" --container-format bare --disk-format vhd --visibility public
Obviously – replace IP addresses, paths, usernames and passwords with the right ones for your environment