Skip to main content
Version: 2.5

Build Windows Image

Preparation

Obtain the followoing files before attempting to create a new Windows cloud image.

Virtual Machine Manager

Create New Virtual Machine

/assets/windows/01.jpg

Choose your downloaded Windows installation iso

/assets/windows/02.jpg

Configure your VM

/assets/windows/03.jpg

Create a disk with raw format

/assets/windows/04.jpg

/assets/windows/05.jpg

Customize VM

Check Customize configuration before install

/assets/windows/06.jpg

[Disk] Change the Disk bus using virtIO

/assets/windows/07.jpg

[Disk] Create another Disk using scsi (for driver attachment)

/assets/windows/08.jpg

[CDROM] Make sure CDROM is loaded with Windows installation iso

/assets/windows/09.jpg

[CDROM] Create another CDROM and loaded with virtIO driver iso

/assets/windows/10.jpg

[Network] Change the network interface using virtio

/assets/windows/11.jpg

All done, Let begin installation

/assets/windows/12.jpg

Windows Server Installation

Select Custom: Install Windows only (advanced)

/assets/windows/13.jpg

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

/assets/windows/14.jpg /assets/windows/15.jpg

/assets/windows/16.jpg

Then, VirtIO disk driver

/assets/windows/17.jpg

/assets/windows/18.jpg

The VirtIO disk is shown

/assets/windows/19.jpg

Install Scsi Disk Driver (to make sure scsi drive is supported as well)

/assets/windows/20.jpg /assets/windows/21.jpg

Disk Sumary

/assets/windows/22.jpg

Let’s start the Windows installation on Drive 0

/assets/windows/23.jpg

  • continue Windows installation step by step until finish

Windows Remote Desktop(RDP) setting

  • Allow RDP from the firewall, open PowerShell as Administrator and run:
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.
  • uncheck - NLA (Network Level Authentication)
  • Click on Apply and OK.

/assets/windows/24.jpg

Cloudbase initialization permission

  • 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
  • Open PowerShell as Administrator and run:
Set-ExecutionPolicy Unrestricted

Driver Installation

/assets/windows/25.jpg /assets/windows/26.jpg /assets/windows/27.jpg /assets/windows/28.jpg

Install Qemu-guest-agent

/assets/windows/29.jpg /assets/windows/30.jpg /assets/windows/31.jpg

Delete recovery partition

/assets/windows/32.jpg

Run powershell as administrator

/assets/windows/33.jpg

Use diskpart to remove the partition

/assets/windows/34.jpg /assets/windows/35.jpg

Download Cloudbase-init installer & run the setup

  • Cloudbase IT Download

  • The default settings will be fine, again click Next

  • Check everything be except for the Serial port for logging, set that to COM1

  • In my case, the username has set to Admin , Openstack password retriever(private key) will work on this account

  • The default account Administrator require setting a new password before using it, you must use the horizon compute console to change the password

/assets/windows/36.jpg /assets/windows/37.jpg