Creating Windows Instances
This guide explains how to create a Windows virtual machine (VM) using Radiant’s Horizon OpenStack Dashboard and the OpenStack CLI, and how to access it once it is running. Unlike other instances, a Windows VM requires an image that you supply yourself and must boot from a volume that you create first.
Warning
Radiant does not provide Windows licenses or images. You must obtain your own license and follow its terms. The Illinois WebStore is one place to look; your unit’s IT staff can advise on which license you need.
Before You Start
You need:
Your own licensed Windows image, in qcow2 format, with VirtIO drivers installed.
Enough flash storage quota for the Windows volume.
The OpenStack CLI, since one step can’t be done in the web portal. Download your credentials from the API Access page in Horizon.
Note
Radiant does not offer a virtual TPM. An instance that requests one with hw_tpm_version fails to schedule, so your image must install and boot without it.
Uploading your Image
Under Compute, select Images, then click Create Image.
Enter an Image Name, then click Browse and select your image file.
Set Format to QCOW2 - QEMU Emulator, then click Create Image.
openstack image create --disk-format qcow2 --container-format bare \
--file windows.qcow2 "My Windows Image"
Wait for the image to be active; a multi-gigabyte upload takes several minutes.
Creating a Volume from the Image
Create the volume as its own step. If you launch straight from a large Windows image, the build fails: it gives up before the volume finishes copying the image. Size the volume at least as large as the disk inside your image, which is larger than the image file itself.
Under Volumes, select Volumes, then click Create Volume.
Enter a Volume Name, set Volume Source to Image, and pick your image under Use image as a source.
Set Size (GiB), then click Create Volume.
openstack volume create --image "My Windows Image" --size 80 my-windows-volume
Wait for the volume to be available; copying the image takes a few minutes.
Setting the Volume’s Image Properties
Windows needs UEFI firmware and a q35 machine type. Creating a volume from an image doesn’t copy those properties, so set them on the volume yourself. This step needs the CLI, because the web portal can’t edit volume metadata.
Horizon is unsupported for this action. Must use the CLI.
openstack volume set \
--image-property hw_firmware_type=uefi \
--image-property hw_machine_type=q35 \
--image-property hw_disk_bus=virtio \
my-windows-volume
Set hw_disk_bus to match the storage drivers in your image (ie: virtio). If it doesn’t match, Windows won’t find its boot disk.
Launching the Instance from the Volume
Under Compute, select Instances, then click Launch Instance.
In the Source tab, set Select Boot Source to Volume, select your Windows volume, and set Delete Volume on Instance Delete to No.
Pick a flavor, network, and security groups, then click Launch Instance.
openstack server create --volume my-windows-volume --flavor m1.large \
--network bbXX-net my-windows-server
where bbXX is your project code
See Creating New Instances for choosing a flavor, network, and security groups.
Accessing your Instance
Windows instances have no SSH access, and they ignore key pairs unless the image was built with cloudbase-init. Use one of these instead:
Open the instance’s Console tab in Horizon. This needs no network setup, so it’s the easiest way to finish installing Windows.
For Remote Desktop, add a security group rule for TCP port 3389, restricted to your own host or network, and assign a floating IP (see Assigning a Floating IP to your Instance (Optional)).
Troubleshooting
For problems that aren’t specific to Windows, see the troubleshooting notes common to all instances.
Does the build fail with “Volume … did not finish being created”?
You launched from the image instead of the volume. Create the volume first, wait for it to be available, then launch from it.
Does the instance fail to boot or fail to find its boot disk?
Check the volume’s properties with openstack volume show my-windows-volume, and confirm they match the recommended volume image properties.
Does the instance fail to schedule with “No valid host was found”?
Remove any hw_tpm_version property from the volume or image; Radiant can’t satisfy it.