Page 1 of 1

Need help adding vioscsi to boot.wim

Posted: Fri Jan 10, 2025 9:37 pm
by shodan
Hello,

I am trying to add vioscsi drivers to the install phase of my windows 10 installer for fully automatted installation.

I have succeeded in injecting the files like this

Code: Select all

wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.sys /Windows/System32/drivers/vioscsi.sys"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.pdb /Windows/System32/drivers/vioscsi.pdb"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.sys /Windows/System32/drivers/vioscsi.sys"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.pdb /Windows/System32/drivers/vioscsi.pdb"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.inf /Windows/INF/vioscsi.inf"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 1 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.cat /Windows/INF/vioscsi.cat"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.inf /Windows/INF/vioscsi.inf"
wimlib-imagex update /mnt/iso/template/win10-iso-unzipped/sources/boot.wim 2 --command="add /mnt/iso/template/virtio-unzipped/vioscsi/w10/amd64/vioscsi.cat /Windows/INF/vioscsi.cat"
These commands succeed, when I boot into the installer, I can see these files

Code: Select all

x:\Windows\INF\vioscsi.inf
x:\Windows\INF\vioscsi.cat
x:\Windows\System32\drivers\vioscsi.pdb
x:\Windows\System32\drivers\vioscsi.sys
However I run diskpart and it does not see the disk.

if I try
pnputil /add-driver X:\Windows\INF\vioscsi.inf /install
drvload X:\Windows\INF\vioscsi.inf
both commands fail with file not found errors

If I load up the virtio ISO and run

pnputil /add-driver D:\vioscsi\w10\amd64\vioscsi.inf /install
drvload D:\vioscsi\w10\amd64\vioscsi.inf

both commands succeed and now I can see my drive in diskpart

Is there a better way to inject these drivers into boot.wim ?

thanks !