Need help adding vioscsi to boot.wim

Comments, questions, bug reports, etc.
Post Reply
shodan
Posts: 3
Joined: Tue Oct 11, 2022 6:14 am

Need help adding vioscsi to boot.wim

Post 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 !
Post Reply