Note: It's not yet allowed to do this tutorial on Fuga Cloud Release 2.
When the VM is created, do not start it yet. We first have to fine-tune certain things in the settings screen:
Now you have a VM you can boot.
The two ISOs now have the correct start-up sequence, after booting, your VM will start to install from the ISO.
After booting the VM, the installation of Windows will start automatically.
Windows wants to be aware of some regional settings, after which it will ask which version of Windows to install.
Now you have the option to install the viostor SCSI drivers, these are necessary, even though we use the IDE controller of VirtualBox at this moment.
To see the drivers, navigate to e:\viostor\2k16\amd64\, and remove the checkbox so you can see everything.
Choose the disc and let the installer do its job.
Finally, Windows will ask for a passphrase, after that the installation will be finished. Because you want to create an image, you now have to edit your own settings. There are many manuals available on rules about what you can and cannot edit, and why. We will limit ourselves to the necessary settings.
What stands out is that the network isn’t working, this is because the drivers have not been installed.
After this, the NIC will work, we will need this in a while but now we know for sure that the necessary IO drivers are installed.
To be able to use RDP later on, which makes maintenance easier, we have to change two things:
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 to 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.
You can now test the RDP connection, which should work by now.
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:
After this, download and install Cloud-Init:
Invoke-WebRequest -UseBasicParsing https://cloudbase.it/downloads/CloudbaseInitSetup_Stable_x64.msi -OutFile cloudbaseinit.msi
The download is approximately 40MB
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, based upon a qcow file which we can upload to OpenStack.
When the upload speed of your internet connection isn't that high (because Windows images are mostly around 10GB) I suggest you use the OpenStack CLI tools for this (see below).
It's not yet allowed to upload Windows images on Fuga Cloud Release 2.
Now, the web-interface will upload the entire image, after which it will be processed and put inside the list of available images.
Make sure that the OpenStack CLI tools are installed on your system. If not, you can follow our CLI tutorials.
To be able to create a new image you have to enter the following command in the terminal:
openstack image create "imagename" --disk-format qcow2 --min-ram 2048 --min-disk 20 --file /path/to/image/imagename.qcow
If uploading will take longer than an hour you will get a 401-error, you get this error because in the meanwhile your token has expired. You can ignore this error. Enter the following command to make sure your image has been added to the list of available images in OpenStack:
openstack image list
If you don’t see the new image in the list, try to create it once more.
To launch a Windows instance now, you have to follow the normal procedure except for two differences: