aboutsummaryrefslogtreecommitdiffstats
path: root/coin/pre-provisioning/qtci-windows-11_21H2-x86_64/create_windows-11_image_with_virtio_drivers.txt
blob: f026095ffd4af193898bb4958772da2d3ec6f122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Create Windows 11 Tier1 image with Virtio drivers

# Create Ubuntu 20.04 and install virt-manager:
Create e.g. Ubuntu 20.04 VM
Connect to machine and download the ISO-image and virtio-drivers (http://ci-files01-hki.intra.qt.io/input/windows/virtio/virtio-win-0.1.204.iso or https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.204-1/)
sudo apt update
sudo apt install virt-manager
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
sudo reboot now

# Start virt-manager and add configurations for Windows 11:
virt-manager
File  - New virtual machine
Local install media - Select ISO-image - Unselect automatically detect and select 'Microsoft Windows server 2019'
Add memory and CPU
Disk space 550
customize configuration before install
from virtual machine manager - edit - Preferences - Enable system tray icon and Enable XML editing
Overview: Firmware: UEFI x86_64: /usr/share/OVMF/OVMG_CODE.fd - Apply (chipset Q35) (i440FX UEFI) 4: UEFI-secboot
XML: Remove these two lines:
    <timer name="rtc" tickpolicy="catchip"/>
    <timer name="pit" tickpolicy="delay"/>
    under these change 'no' to 'yes':
    <timer name="hpet" present="yes"
    Apply
Sata Disk 1: Disk bus: Virtio
    Apply
NIC: Device model: virtio
    Apply
Add Hardware: Storage: Device Type: CDROM Device
    Select or create custom storage - Manage - Browse local - virtio-win-0.1.204.iso - Open - Finish
Begin installation

# If note "This PC can't run Windows 11" appears
shift + F10 - regedit - add: HKEY_LOCAL_MACHINE/SYSTEM/Setup/LabConfig
    add DWORD value BypassTPMCheck with value 1
    add DWORD value BypassSecureBootCheck value 1

Load driver (select win10)

After reboot and startup open virtio-win-0.1.204.iso and run virtio-win-qt-x64