Openstack Install Windows Server (2016/2019) with image(iso)

Roy Tan
4 min readNov 11, 2019

Story: Install Windows Server 2019 on openstack instance with complied iso from PART I

Preparation

a. Openstack Create Windows Server (2016/2019) Image(iso) — Part I
b. An Openstack ready Cluster

Openstack

  1. upload windows server iso to openstack

2. Create instance

3. Choose the ISO image and Set Create New Volume = No

4. Select flavors & network

5. Power off the instance

6. Create a new Volume

7. edit the volume, make it bootable

8. Attach the volume to instance

9. power on the instance and begin installation

Windows Server Installation

  1. Select Custom: Install Windows only (advanced)

2. Load Network Driver, Choose your CDROM look for Drivers\NetKVM\

3. Then, VirtIO disk driver

4. The VirtIO disk is shown

5. Let’s start the Windows installation on Drive 0, continue Windows installation step by step until finish

Repack with Cloudinit

  1. Start PowerShell to open the firewall for RDP:
Enable-NetFirewallRule -name RemoteDesktop-UserMode-In-TCP
  • Click on Start > Settings, and search for remote desktop, now choose allow remote desktop access to your computer.
  • In the popup choose for Allow remote connections to this computer, Click OK to close the popup.
  • If you are using an unofficial- or older RDP client, remove the checkbox below.
  • Click on Apply and press OK.

2. To be able to use Cloud-Init (we need this to, for example, be able to set an admin passphrase when deploying) we have to configure this:

Set-ExecutionPolicy Unrestricted

3. Download Cloudbase-init installer & run the setup :
https://cloudbase.it/downloads/CloudbaseInitSetup_Stable_x64.msi

  • Click Next
  • To continue, you will have to read and accept the license terms
  • Click Next
  • The default settings will be fine, again click Next
  • Leave everything be except for the Serial port for logging, set that to COM1
  • Next…
  • Install

When the installation is finished, select both run Sysprep and Shutdown when Sysprep terminates.

If you click Finish the Windows installation will be prepared for use as an image and the VM will be closed.

Now you have a Windows image that is switched off, you can create a snapshot image for later use.

Related Topic:

https://medium.com/@yooniks9/openstack-create-windows-server-2016-2019-image-iso-29d9ec877a3b
https://medium.com/@yooniks9/openstack-create-windows-server-2016-2019-image-vmdk-part-ii-d4f24c880632

--

--