Windows 11 installation notes
===
virtio driver
---
- 相關資訊主頁: https://github.com/virtio-win/virtio-win-pkg-scripts
- 最新版本下載點:https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/
open cmd.exe
---
`shift` + `F10` to popup cmd.exe
show all mounted disk
---
```
wmic logicaldisk get caption
```
load driver
---
```
drvload E:\viostor\w11\amd64\viostor.inf
```
disk partition
---
diskpart
list vol -> to check volume letter
list disk -> list all disk
select disk 0
list par
list all partition on disk 0
you should check every disk on the machine in order to know which disk is the one you want to install windows 11 on
select disk 0 -> select the disk you want to install windows 11 on
conv gpt -> convert the selected disk to gpt format
create par efi size=512 -> create boot partition
format fs=fat32 quick -> format boot partition in quick mode
assign letter g
create par pri -> create main partition
format quick -> format main partition in quick mode
assign letter h
exit
apply installation image to main partition
---
- list index of the installation image
```
DISM /Get-ImageInfo /imagefile:D:\sources\install.wim
```
- remember the index of the version you want to install
- Index `6`: Windows 11 Pro
- Index `10`: Windows 11 Pro for Workstations
- apply installation image to main partition
```
DISM /apply-image /imagefile:D:\sources\install.wim /index:6 /applydir:H:\
```
create boot partition
---
```
bcdboot H:\Windows /s G: /f all
```
done 🎉
---
close all the window, and your machine should be able to reboot, and then boot into fresh windows 11 install.