Prepare ISO image to work with the cloud platform
If you have uploaded an ISO image with an operating system distribution to the image store, we recommend that you make it fully compatible with the Servercore Cloud Platform. From a compatible image, you can create cloud servers with the same functionality as servers from off-the-shelf images.
Prepare a Windows image
- Prepare the ISO image locally.
- Upload the ISO image to the image repository.
- Modify the properties of the Windows image.
1. Prepare an ISO image locally
-
On the local computer unpack the archive with ISO-image into a separate directory using an archiver, e.g.
7-zip,WinRAR,tar. -
Download the VirtiO drivers as an ISO image from the Fedora People repository.
-
Create a Drivers directory.
-
Unpack the ISO-image with VirtiO-drivers into the Drivers directory using an archiver, e.g.
7-zip,WinRAR,UltraISO. -
Move the Drivers directory with the VirtiO drivers to the directory of the Windows ISO image you unpacked in step 1.
-
Install the DISM++ image management utility.
-
Open DISM++.
-
Build the installation image by going to the Toolkit section and selecting ISO Maker.
2. Upload the ISO image to the image repository
Use the Download and Create Image subsection from the Download and Create Image instruction file.
Specify:
- file - the image you prepared in step 1;
- OS - Windows;
- image format -
iso; - container format -
bare.
3. Modify the properties of the image
-
Output the IDs of the available images:
openstack image listA list of images will appear in the response. Copy the ID of the image you downloaded in step 2.
-
Optional: look at the image properties:
openstack image show -
Add the desired properties:
openstack image set \
--property hw_disk_bus=scsi \
--property hw_firmware_type=uefi \
--property hw_qemu_guest_agent=yes \
--property hw_scsi_model=virtio-scsi \
--property os_type=windows \
--property x_sel_image_agent_type=cloudbase-init \
--property x_sel_image_os_arch=amd64 \
--property x_sel_image_os_dist=windows \
--property x_sel_image_os_type=windows \
--property x_sel_image_type=master \
--property x_sel_kpti_patch=true \
<image_id>Specify
<image_id>is the ID of the image you copied in step 2.