Add unattended configuration for Windows 10 and 11

Automates some of the install/configuration steps for Windows 10 and 11, most notably essential drivers and disk formatting.
This commit is contained in:
Martin Wimpress 2021-10-08 02:04:30 +01:00
parent 8106026fd0
commit d191d0da44
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3
3 changed files with 163 additions and 4 deletions

View file

@ -666,6 +666,12 @@ function vm_boot() {
args+=(-drive media=cdrom,index=1,file="${fixed_iso}")
fi
# Attached the unattended configuration to Windows guests when booting from ISO
if [ -n "${iso}" ] && [ "${guest_os}" == "windows" ] && [ -e "${VMDIR}/unattended.iso" ]; then
# shellcheck disable=SC2054
args+=(-drive media=cdrom,index=2,file="${VMDIR}/unattended.iso")
fi
if [ "${guest_os}" == "macos" ]; then
# shellcheck disable=SC2054
args+=(-device ahci,id=ahci