Downloading Software Online and Integrating an ISO Driver
Scenarios
Use a script to automatically download the software required by an image and integrate a VirtIO driver into an ISO file of an OS.
Prerequisites
Online download is highly dependent on the network. If the network connection is poor, you are advised to use offline download. For details, see the (Optional) Downloading Software Offline and Integrating an ISO Driver section.
Procedure
- Download an ISO file for creating an OS image as required, as shown in Table 1.
Table 1 OS description OS
How to Obtain
Windows 10
Windows Server 2016
Windows Server 2019
Windows Server 2022
Windows 11
- Windows 11 Enterprise 23H2
- Windows 11 Pro 24H2
- Windows 11 Enterprise 24H2
- Windows 11 Enterprise LTSC 2024
- Windows 11 Pro 25H2
25H2: Click here.
Other versions: Obtain proper OS ISO image files from Microsoft or other legal channels, depending on the user's desktop requirement type.
The ISO image file of the OS must be an official pure image obtained from an official channel. Do not use non-official images or private customized images. These images have many unknown modifications to the OS, which may cause template creation failures or incompatibility with Huawei Delivery Protocol (HDP).
- Obtain the automation script. It is used to automatically download all software packages required for creating an image and integrate a VirtIO driver into the OS ISO file, as shown in Table 2.
- Create a directory (for example, C:\Script) on the local PC and save the ISO file and script downloaded in Table 1 and Table 2 to the directory.
(Optional) If you need to install customized software, create a software folder in the C:\Script directory and place all of them in the folder.
- On the local PC, press Win + S, search for Windows PowerShell, right-click it, and choose Run as administrator. The Windows PowerShell window is displayed.
- Run the following command to go to the directory of the automation script:
cd C:\Script
- Run the following command to download the software and integrate the VirtIO driver into the ISO file:
powershell -ExecutionPolicy Bypass -File WorkspaceISO_Customizer_International.ps1
- You are advised to run this script in an environment with good network conditions to avoid freezing or failure. If the script fails to be executed, manually download the software by referring to Procedure.
- Run the preceding commands to run the script again. Do not close the script during the execution.
- Wait until the script execution is complete and press Enter to exit.
The ISO file of the OS will be generated in the output directory of the current directory (for example, C:\Script\output).
Perform this operation only for Windows 11 23H2.
- Go to the page and click
on the right to download the ISO script for updating Windows 11 23H2. - On the local Windows device, search for Windows PowerShell in the Start menu, right-click it, and choose Run as administrator to open the Windows PowerShell window.
- Run the following command to mount the ISO file:
Mount-DiskImage -ImagePath "C:\Media\Windows11xxx.iso"
Enter the actual ISO name.
- Run the following command to view the drive letter:
Get-DiskImage | Get-Volume
- Run the following command to execute the script to update the Windows 11 23H2 OS:
.\Make2023BootableMedia.ps1 -MediaPath "E:\" -TargetType ISO -ISOPath "C:\Media\Win11_Updated.iso"
E:\ is the result obtained in 11. Replace it with the actual one.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot