action #121033
closed[WSL] Unattended Windows install
0%
Description
Motivation¶
The current installation of windows for testing WSL is unstable. But there is a new approach with automation.
Acceptance Criteria¶
- AC 1: Study the resources available to understand the procedure.
- AC 2: Create a test to probe that this could be possible
Suggestions¶
The installation of Windows OS can be unattended by adding an XML file called Autounattend.xml
in the root folder of the ISO image. That XML is different from UEFI to BIOS boot (attached example files), and can be generated in this website. More info provided by Microsoft can be found here.
By now, I've managed to create the ISO and run the install, these are the steps I have taken so far to get to that point:
- Download latest Windows ISO (Win10 or Win11)
- Extract the ISO to a local folder
- Copy the
Autounattend.xml
file into the root folder - Wrap the ISO again running this command inside the extracted folder
mkisofs -iso-level 4 -udf -R -D -U -b boot/etfsboot.com -no-emul-boot -boot-load-size 8 -boot-load-seg 1984 -eltorito-alt-boot -b efi/microsoft/boot/efisys.bin -no-emul-boot -o <OUTPUT_ISO> .
Problems found so far¶
- An error in the XML file related to disks (see image attached) is raised when installing
- There's need to choose the version to install (Windows XX Pro, Home, ...)
- In Win11, to install into a VM, there's need to modify some registry key values, as it's done in this part of the current installation. For this version, the Autounnatend.xml should be called from this console with the command
setup /unattend:<PATH_TO_FILE>
Files
Updated by pherranz about 2 years ago
- File autounattend_10-11UEFI.xml added
- File autounattend_10BIOS.xml added
- File 2022-11-28_09-19.png 2022-11-28_09-19.png added
Updated by pherranz about 2 years ago
- Related to action #105160: Automatic triggering of Windows Image Update test runs added
Updated by ph03nix over 1 year ago
- Subject changed from [research] Automate Windows install to [research] Unattended Windows install
Updated by pherranz over 1 year ago
Finally I've been able to run unattended installations for all the Windows. The issue was in the Autounattend.xml
. I'll change the attachments to this ticket with the proper files.
Updated by pherranz over 1 year ago
- File autounattend_UEFI.xml autounattend_UEFI.xml added
- File autounattend_BIOS.xml autounattend_BIOS.xml added
- File deleted (
autounattend_10-11UEFI.xml) - File deleted (
autounattend_10BIOS.xml)
Updated by pherranz over 1 year ago
- Status changed from Workable to In Progress
Updated by pherranz over 1 year ago
- Subject changed from [research] Unattended Windows install to [WSL] Unattended Windows install
The installation is done automatically now. The final XML files are uploaded to this ticket and also to the https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17865
PR (data/wsl folder).
Updated by pherranz over 1 year ago
Following @mloviska advice, I'm keeping the manual installation alongside the unattended one. I created a MR for modifying the qac-openqa-yaml
and adding the corresponding jobs:
https://gitlab.suse.de/qac/qac-openqa-yaml/-/merge_requests/1346
Updated by ph03nix about 1 year ago
- Related to coordination #138137: [WSL][epic] Improvement of the installation processes added
Updated by pherranz about 1 year ago
- Status changed from In Progress to Resolved